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,33 @@
let
v."1.10.0" = "sha256-deMxbLHnD1jDvQaAzhGiCF1vt11IpF6Ao2OF6zJuJ9A=";
in {
callPackage,
jetperch,
name ? "pyjoulescope-driver",
version ? "1.10.0",
hash ? v.${version} or "",
udev,
}: (callPackage ../python.nix {
inherit name;
inherit jetperch;
inherit version;
inherit hash;
repo = "joulescope_driver";
pydeps = py: with py; [
numpy
requests
psutil
];
}
).overrideAttrs (final: prev: {
nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [
[ udev udev.dev ]
];
NIX_CFLAGS_COMPILE = (prev.NIX_CFLAGS_COMPILE or []) ++ [
"-I${udev.dev}/include"
];
NIX_LDFLAGS = (prev.NIX_LDFLAGS or []) ++ [
"-L${udev}/lib"
];
dontUseCmakeConfigure = true;
})