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
69
pkgs/development/ocaml-modules/carton/default.nix
Normal file
69
pkgs/development/ocaml-modules/carton/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib, buildDunePackage, fetchurl
|
||||
, ke, duff, decompress, cstruct, optint, bigstringaf, stdlib-shims
|
||||
, bigarray-compat, checkseum, logs, psq, fmt
|
||||
, result, rresult, fpath, base64, bos, digestif, mmap, alcotest
|
||||
, crowbar, alcotest-lwt, lwt, findlib, mirage-flow, cmdliner, hxd
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "carton";
|
||||
version = "0.4.3";
|
||||
|
||||
useDune2 = true;
|
||||
minimalOCamlVersion = "4.08";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-git/releases/download/${pname}-v${version}/${pname}-${pname}-v${version}.tbz";
|
||||
sha256 = "sha256:0qz9ds5761wx4m7ly3av843b6dii7lmjpx2nnyijv8rm8aw95jgr";
|
||||
};
|
||||
|
||||
# remove changelogs for mimic and the git* packages
|
||||
postPatch = ''
|
||||
rm CHANGES.md
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
cmdliner
|
||||
digestif
|
||||
mmap
|
||||
result
|
||||
rresult
|
||||
fpath
|
||||
bos
|
||||
hxd
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
ke
|
||||
duff
|
||||
decompress
|
||||
cstruct
|
||||
optint
|
||||
bigstringaf
|
||||
stdlib-shims
|
||||
bigarray-compat
|
||||
checkseum
|
||||
logs
|
||||
psq
|
||||
fmt
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
nativeBuildInputs = [
|
||||
findlib
|
||||
];
|
||||
checkInputs = [
|
||||
base64
|
||||
alcotest
|
||||
alcotest-lwt
|
||||
crowbar
|
||||
lwt
|
||||
mirage-flow
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of PACKv2 file in OCaml";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/mirage/ocaml-git";
|
||||
maintainers = [ maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
28
pkgs/development/ocaml-modules/carton/git.nix
Normal file
28
pkgs/development/ocaml-modules/carton/git.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ buildDunePackage, carton, carton-lwt
|
||||
, bigarray-compat, bigstringaf, lwt, fpath, result
|
||||
, mmap, fmt, decompress, astring
|
||||
, alcotest, alcotest-lwt, cstruct, logs
|
||||
, mirage-flow, rresult, ke
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "carton-git";
|
||||
|
||||
inherit (carton) version src useDune2 postPatch;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
carton
|
||||
carton-lwt
|
||||
bigarray-compat
|
||||
bigstringaf
|
||||
lwt
|
||||
fpath
|
||||
result
|
||||
mmap
|
||||
fmt
|
||||
decompress
|
||||
astring
|
||||
];
|
||||
|
||||
inherit (carton) meta;
|
||||
}
|
||||
46
pkgs/development/ocaml-modules/carton/lwt.nix
Normal file
46
pkgs/development/ocaml-modules/carton/lwt.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ buildDunePackage, carton
|
||||
, lwt, decompress, optint, bigstringaf
|
||||
, alcotest, alcotest-lwt, cstruct, fmt, logs
|
||||
, mirage-flow, result, rresult, bigarray-compat
|
||||
, ke, base64, bos, checkseum, digestif, fpath, mmap
|
||||
, stdlib-shims
|
||||
, git-binary # pkgs.git
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "carton-lwt";
|
||||
|
||||
inherit (carton) version src useDune2 postPatch;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
carton
|
||||
lwt
|
||||
decompress
|
||||
optint
|
||||
bigstringaf
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
git-binary
|
||||
alcotest
|
||||
alcotest-lwt
|
||||
cstruct
|
||||
fmt
|
||||
logs
|
||||
mirage-flow
|
||||
result
|
||||
rresult
|
||||
bigarray-compat
|
||||
ke
|
||||
base64
|
||||
bos
|
||||
checkseum
|
||||
digestif
|
||||
fpath
|
||||
mmap
|
||||
stdlib-shims
|
||||
];
|
||||
|
||||
inherit (carton) meta;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue