ocamlPackages.hidapi: use Dune 2
This commit is contained in:
parent
eb0980855d
commit
d99c24d00a
@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, fetchurl, buildDunePackage, pkg-config
|
||||
{ pkgs, lib, fetchurl, buildDunePackage, pkg-config, dune-configurator
|
||||
, bigstring,
|
||||
}:
|
||||
|
||||
@ -6,6 +6,8 @@ buildDunePackage rec {
|
||||
pname = "hidapi";
|
||||
version = "1.1.1";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz";
|
||||
sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
|
||||
@ -13,7 +15,7 @@ buildDunePackage rec {
|
||||
|
||||
minimumOCamlVersion = "4.03";
|
||||
|
||||
buildInputs = [ pkgs.hidapi pkg-config ];
|
||||
buildInputs = [ pkgs.hidapi pkg-config dune-configurator ];
|
||||
propagatedBuildInputs = [ bigstring ];
|
||||
|
||||
doCheck = true;
|
||||
|
Loading…
Reference in New Issue
Block a user