package.nix (801B)
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 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "SimonCahill"; 16 repo = "libsockcanpp"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-qIjFEbBRnVFZ5NQlFgjljgtWutWCn2EEymfpJ5LuLQU="; 19 }; 20 21 postPatch = '' 22 substituteInPlace CMakeLists.txt \ 23 --replace-fail ''$\{CMAKE_INSTALL_PREFIX\}/ "" 24 ''; 25 26 nativeBuildInputs = [ cmake ]; 27 28 meta = { 29 description = "A C++ wrapper around Linux's socketcan featureset"; 30 homepage = "https://github.com/SimonCahill/libsockcanpp"; 31 license = lib.licenses.asl20; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.linux; 34 skip.ci = stdenv.isDarwin; 35 }; 36 })
