jetperch/package/joulescope-driver/default.nix
Jonas Rabenstein e3b0136650 initial commit
2025-09-30 12:07:41 +02:00

29 lines
596 B
Nix

let
v."1.10.0" = "sha256-deMxbLHnD1jDvQaAzhGiCF1vt11IpF6Ao2OF6zJuJ9A=";
in {
callPackage,
jetperch,
name ? "joulescope-driver",
version ? "1.10.0",
hash ? v.${version} or "",
stdenv,
#dependencies
cmake,
udev,
}: stdenv.mkDerivation {
pname = name;
version = version;
src = callPackage ../source.nix {
repo = "joulescope_driver";
inherit version;
inherit hash;
};
postPatch = ''
echo 'install(TARGETS jsdrv DESTINATION lib)' >>CMakeLists.txt
'';
nativeBuildInputs = [ cmake ];
hardeningDisable = [ "format" ];
buildInputs = [ udev.dev ];
}