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
39
pkgs/development/ocaml-modules/curly/default.nix
Normal file
39
pkgs/development/ocaml-modules/curly/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, lib, buildDunePackage, fetchurl, ocaml
|
||||
, result, alcotest, cohttp-lwt-unix, odoc, curl, cacert
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "curly";
|
||||
version = "0.2.0";
|
||||
|
||||
minimumOCamlVersion = "4.02";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/rgrinberg/curly/releases/download/${version}/curly-${version}.tbz";
|
||||
sha256 = "07vqdrklar0d5i83ip7sjw2c1v18a9m3anw07vmi5ay29pxzal6k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ result ];
|
||||
checkInputs = [ alcotest cohttp-lwt-unix cacert ];
|
||||
# test dependencies are only available for >= 4.08
|
||||
# https://github.com/mirage/ca-certs/issues/16
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08"
|
||||
# Some test fails in macOS sandbox
|
||||
# > Fatal error: exception Unix.Unix_error(Unix.EPERM, "bind", "")
|
||||
&& !stdenv.isDarwin;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/curly.ml \
|
||||
--replace "exe=\"curl\"" "exe=\"${curl}/bin/curl\""
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Curly is a brain dead wrapper around the curl command line utility";
|
||||
homepage = "https://github.com/rgrinberg/curly";
|
||||
license = licenses.isc;
|
||||
maintainers = [ maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue