default.nix (844B)
1 { lib, stdenv, fetchFromGitHub, cmake }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "libsockcanpp"; 5 version = "0-unstable-2024-02-21"; 6 7 src = fetchFromGitHub { 8 owner = "SimonCahill"; 9 repo = "libsockcanpp"; 10 rev = "621383ebefab3c154c05778315acc7e781924fdb"; 11 hash = "sha256-ohxSqM4fjti+02Z6ld3tKX/kzZgWn+spvHpPbq/KBSU="; 12 }; 13 14 postPatch = '' 15 substituteInPlace CMakeLists.txt \ 16 --replace-fail ''$\{CMAKE_INSTALL_PREFIX\}/ "" 17 ''; 18 19 nativeBuildInputs = [ cmake ]; 20 21 preInstall = '' 22 mv {,lib}sockcanppConfigVersion.cmake 23 ''; 24 25 meta = with lib; { 26 description = "A C++ wrapper around Linux's socketcan featureset"; 27 inherit (finalAttrs.src.meta) homepage; 28 license = licenses.asl20; 29 maintainers = [ maintainers.sikmir ]; 30 platforms = platforms.linux; 31 skip.ci = stdenv.isDarwin; 32 }; 33 })