package.nix (772B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "libsockcanpp"; 10 version = "1.5.0"; 11 12 src = fetchFromGitHub { 13 owner = "SimonCahill"; 14 repo = "libsockcanpp"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-qIjFEbBRnVFZ5NQlFgjljgtWutWCn2EEymfpJ5LuLQU="; 17 }; 18 19 postPatch = '' 20 substituteInPlace CMakeLists.txt \ 21 --replace-fail ''$\{CMAKE_INSTALL_PREFIX\}/ "" 22 ''; 23 24 nativeBuildInputs = [ cmake ]; 25 26 meta = { 27 description = "A C++ wrapper around Linux's socketcan featureset"; 28 homepage = "https://github.com/SimonCahill/libsockcanpp"; 29 license = lib.licenses.asl20; 30 maintainers = [ lib.maintainers.sikmir ]; 31 platforms = lib.platforms.linux; 32 skip.ci = stdenv.isDarwin; 33 }; 34 })