uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/development/ocaml-modules/luv/default.nix
Normal file
35
pkgs/development/ocaml-modules/luv/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, buildDunePackage, fetchurl
|
||||
, ctypes, result
|
||||
, alcotest
|
||||
, file
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "luv";
|
||||
version = "0.5.11";
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/aantron/luv/releases/download/${version}/luv-${version}.tar.gz";
|
||||
sha256 = "sha256-zOz0cxGzhLi3Q36qyStNCz8JGXHtECQfZysMKiyKOkM=";
|
||||
};
|
||||
|
||||
postConfigure = ''
|
||||
for f in src/c/vendor/configure/{ltmain.sh,configure}; do
|
||||
substituteInPlace "$f" --replace /usr/bin/file file
|
||||
done
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ file ];
|
||||
propagatedBuildInputs = [ ctypes result ];
|
||||
checkInputs = [ alcotest ];
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/aantron/luv";
|
||||
description = "Binding to libuv: cross-platform asynchronous I/O";
|
||||
# MIT-licensed, extra licenses apply partially to libuv vendor
|
||||
license = with licenses; [ mit bsd2 bsd3 cc-by-sa-40 ];
|
||||
maintainers = with maintainers; [ locallycompact sternenseemann ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue