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