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
11
pkgs/development/ocaml-modules/cstruct/async.nix
Normal file
11
pkgs/development/ocaml-modules/cstruct/async.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, buildDunePackage, cstruct, async_unix }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "cstruct-async";
|
||||
inherit (cstruct) src version meta useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async_unix
|
||||
cstruct
|
||||
];
|
||||
}
|
||||
28
pkgs/development/ocaml-modules/cstruct/default.nix
Normal file
28
pkgs/development/ocaml-modules/cstruct/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchurl, buildDunePackage, bigarray-compat, alcotest, ocaml }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "cstruct";
|
||||
version = "6.0.1";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.03";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
||||
sha256 = "4a67bb8f042753453c59eabf0e47865631253ba694091ce6062aac05d47a9bed";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ bigarray-compat ];
|
||||
|
||||
# alcotest isn't available for OCaml < 4.05 due to fmt
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
||||
checkInputs = [ alcotest ];
|
||||
|
||||
meta = {
|
||||
description = "Access C-like structures directly from OCaml";
|
||||
license = lib.licenses.isc;
|
||||
homepage = "https://github.com/mirage/ocaml-cstruct";
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
};
|
||||
}
|
||||
14
pkgs/development/ocaml-modules/cstruct/lwt.nix
Normal file
14
pkgs/development/ocaml-modules/cstruct/lwt.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ lib, buildDunePackage, cstruct, lwt }:
|
||||
|
||||
if lib.versionOlder (cstruct.version or "1") "3"
|
||||
then cstruct
|
||||
else
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cstruct-lwt";
|
||||
inherit (cstruct) version src useDune2 meta;
|
||||
|
||||
minimumOCamlVersion = "4.03";
|
||||
|
||||
propagatedBuildInputs = [ cstruct lwt ];
|
||||
}
|
||||
19
pkgs/development/ocaml-modules/cstruct/ppx.nix
Normal file
19
pkgs/development/ocaml-modules/cstruct/ppx.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims
|
||||
, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp
|
||||
}:
|
||||
|
||||
if lib.versionOlder (cstruct.version or "1") "3"
|
||||
then cstruct
|
||||
else
|
||||
|
||||
buildDunePackage {
|
||||
pname = "ppx_cstruct";
|
||||
inherit (cstruct) version src useDune2 meta;
|
||||
|
||||
minimalOCamlVersion = "4.08";
|
||||
|
||||
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
|
||||
}
|
||||
18
pkgs/development/ocaml-modules/cstruct/sexp.nix
Normal file
18
pkgs/development/ocaml-modules/cstruct/sexp.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }:
|
||||
|
||||
if lib.versionOlder (cstruct.version or "1") "3"
|
||||
then cstruct
|
||||
else
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "cstruct-sexp";
|
||||
inherit (cstruct) version src useDune2 meta;
|
||||
|
||||
minimumOCamlVersion = "4.03";
|
||||
|
||||
# alcotest is only available on OCaml >= 4.05 due to fmt
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
||||
checkInputs = [ alcotest ];
|
||||
|
||||
propagatedBuildInputs = [ cstruct sexplib ];
|
||||
}
|
||||
14
pkgs/development/ocaml-modules/cstruct/unix.nix
Normal file
14
pkgs/development/ocaml-modules/cstruct/unix.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ lib, buildDunePackage, cstruct }:
|
||||
|
||||
if lib.versionOlder (cstruct.version or "1") "3"
|
||||
then cstruct
|
||||
else
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cstruct-unix";
|
||||
inherit (cstruct) version src useDune2 meta;
|
||||
|
||||
minimumOCamlVersion = "4.06";
|
||||
|
||||
propagatedBuildInputs = [ cstruct ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue