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
50
pkgs/development/ocaml-modules/mirage-nat/default.nix
Normal file
50
pkgs/development/ocaml-modules/mirage-nat/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, buildDunePackage, fetchurl
|
||||
, ipaddr, cstruct, lwt, logs, lru
|
||||
, tcpip, ethernet, stdlib-shims
|
||||
, alcotest, mirage-clock-unix
|
||||
, ppxlib, ppx_deriving
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "mirage-nat";
|
||||
version = "2.2.5";
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
# due to cstruct
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
||||
sha256 = "01xp0z4mywhawz7rxizi9ph342mqqwyfa5hqgvs8lhqzcym5d104";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ppxlib
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ipaddr
|
||||
cstruct
|
||||
lwt
|
||||
logs
|
||||
lru
|
||||
tcpip
|
||||
ethernet
|
||||
stdlib-shims
|
||||
ppx_deriving
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
alcotest
|
||||
mirage-clock-unix
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mirage-nat is a library for network address translation to be used with MirageOS";
|
||||
homepage = "https://github.com/mirage/${pname}";
|
||||
license = licenses.isc;
|
||||
maintainers = [ maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue