initial commit

This commit is contained in:
Jonas Rabenstein 2025-09-30 12:07:41 +02:00
commit e3b0136650
9 changed files with 245 additions and 0 deletions

View file

@ -0,0 +1,29 @@
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 ];
}