initial commit
This commit is contained in:
commit
e3b0136650
9 changed files with 245 additions and 0 deletions
33
package/pyjoulescope-driver/default.nix
Normal file
33
package/pyjoulescope-driver/default.nix
Normal 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;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue