mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|