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
17
pkgs/development/ocaml-modules/git/cohttp-unix.nix
Normal file
17
pkgs/development/ocaml-modules/git/cohttp-unix.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ buildDunePackage, git, git-cohttp
|
||||
, cohttp-lwt-unix, cohttp-lwt, fmt, lwt, result, rresult, uri
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "git-cohttp-unix";
|
||||
|
||||
inherit (git) version src minimumOCamlVersion useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
git git-cohttp cohttp-lwt-unix cohttp-lwt fmt lwt result rresult uri
|
||||
];
|
||||
|
||||
meta = git.meta // {
|
||||
description = "A package to use HTTP-based ocaml-git with Unix backend";
|
||||
};
|
||||
}
|
||||
19
pkgs/development/ocaml-modules/git/cohttp.nix
Normal file
19
pkgs/development/ocaml-modules/git/cohttp.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ buildDunePackage, git
|
||||
, cohttp, cohttp-lwt, fmt, lwt, result, rresult, uri
|
||||
, alcotest, alcotest-lwt, bigstringaf, cstruct, logs
|
||||
, mirage-flow, ke
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "git-cohttp";
|
||||
|
||||
inherit (git) version minimumOCamlVersion src useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
git cohttp cohttp-lwt fmt lwt result rresult uri
|
||||
];
|
||||
|
||||
meta = git.meta // {
|
||||
description = "A package to use HTTP-based ocaml-git with Unix backend";
|
||||
};
|
||||
}
|
||||
45
pkgs/development/ocaml-modules/git/default.nix
Normal file
45
pkgs/development/ocaml-modules/git/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, lib, fetchurl, buildDunePackage
|
||||
, alcotest, mtime, mirage-crypto-rng, tls, git-binary
|
||||
, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt, checkseum
|
||||
, fpath, ke, logs, lwt, ocamlgraph, uri, rresult, base64, hxd
|
||||
, result, bigstringaf, optint, mirage-flow, domain-name, emile
|
||||
, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "git";
|
||||
version = "3.5.0";
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
||||
sha256 = "bcd5a0aef9957193cbaeeb17c22201e5ca4e815e67bbc696e88efdb38c25ec03";
|
||||
};
|
||||
|
||||
# remove changelog for the carton package
|
||||
postPatch = ''
|
||||
rm CHANGES.carton.md
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
base64
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath
|
||||
ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow
|
||||
domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd
|
||||
];
|
||||
checkInputs = [
|
||||
alcotest alcotest-lwt mtime mirage-crypto-rng tls git-binary crowbar
|
||||
];
|
||||
doCheck = !stdenv.isAarch64;
|
||||
|
||||
meta = {
|
||||
description = "Git format and protocol in pure OCaml";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = with lib.maintainers; [ sternenseemann vbgl ];
|
||||
homepage = "https://github.com/mirage/ocaml-git";
|
||||
};
|
||||
}
|
||||
57
pkgs/development/ocaml-modules/git/paf.nix
Normal file
57
pkgs/development/ocaml-modules/git/paf.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib, buildDunePackage
|
||||
, git
|
||||
, mimic
|
||||
, paf
|
||||
, ca-certs-nss
|
||||
, fmt
|
||||
, ipaddr
|
||||
, logs
|
||||
, lwt
|
||||
, mirage-clock
|
||||
, mirage-stack
|
||||
, mirage-time
|
||||
, result
|
||||
, rresult
|
||||
, tls
|
||||
, uri
|
||||
, bigarray-compat
|
||||
, bigstringaf
|
||||
, domain-name
|
||||
, httpaf
|
||||
, mirage-flow
|
||||
, tls-mirage
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "git-paf";
|
||||
|
||||
inherit (git) version src minimumOCamlVersion useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
git
|
||||
mimic
|
||||
paf
|
||||
ca-certs-nss
|
||||
fmt
|
||||
lwt
|
||||
result
|
||||
rresult
|
||||
ipaddr
|
||||
logs
|
||||
mirage-clock
|
||||
mirage-stack
|
||||
mirage-time
|
||||
tls
|
||||
uri
|
||||
bigarray-compat
|
||||
bigstringaf
|
||||
domain-name
|
||||
httpaf
|
||||
mirage-flow
|
||||
tls-mirage
|
||||
];
|
||||
|
||||
meta = git.meta // {
|
||||
description = "A package to use HTTP-based ocaml-git with MirageOS backend";
|
||||
};
|
||||
}
|
||||
43
pkgs/development/ocaml-modules/git/unix.nix
Normal file
43
pkgs/development/ocaml-modules/git/unix.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ buildDunePackage, git
|
||||
, mmap, rresult, result, bigstringaf
|
||||
, fmt, bos, fpath, uri, digestif, logs, lwt, git-cohttp-unix
|
||||
, mirage-clock, mirage-clock-unix, astring, awa, cmdliner
|
||||
, cohttp-lwt-unix, decompress, domain-name, ipaddr, mtime
|
||||
, tcpip, awa-mirage, mirage-flow
|
||||
, alcotest, alcotest-lwt, base64, cstruct
|
||||
, ke, mirage-crypto-rng, ocurl, git-binary
|
||||
, ptime, mimic, ca-certs-nss, tls, tls-mirage
|
||||
, cacert
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "git-unix";
|
||||
inherit (git) version src minimumOCamlVersion;
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
buildInputs = [
|
||||
awa awa-mirage cmdliner git-cohttp-unix
|
||||
mirage-clock mirage-clock-unix tcpip
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
mmap rresult result bigstringaf
|
||||
fmt bos fpath uri digestif logs lwt
|
||||
astring cohttp-lwt-unix decompress
|
||||
domain-name ipaddr mtime mirage-flow
|
||||
cstruct ptime mimic ca-certs-nss
|
||||
tls tls-mirage
|
||||
];
|
||||
checkInputs = [
|
||||
alcotest alcotest-lwt base64 ke
|
||||
mirage-crypto-rng git-binary
|
||||
cohttp-lwt-unix
|
||||
cacert # sets up NIX_SSL_CERT_FILE
|
||||
];
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Unix backend for the Git protocol(s)";
|
||||
inherit (git.meta) homepage license maintainers;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue