mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 17:19:58 +00:00
50 lines
960 B
Nix
50 lines
960 B
Nix
{
|
|
lib,
|
|
ocaml,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
checkseum,
|
|
optint,
|
|
cmdliner,
|
|
alcotest,
|
|
camlzip,
|
|
base64,
|
|
fmt,
|
|
crowbar,
|
|
bstr,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "decompress";
|
|
version = "1.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/decompress/releases/download/v${finalAttrs.version}/decompress-${finalAttrs.version}.tbz";
|
|
hash = "sha256-yYmMvJhTXV3R1NdUkuwnwRBbj2zOX3naXTQFP9pAxYU=";
|
|
};
|
|
|
|
buildInputs = [ cmdliner ];
|
|
propagatedBuildInputs = [
|
|
optint
|
|
checkseum
|
|
];
|
|
checkInputs = [
|
|
alcotest
|
|
fmt
|
|
camlzip
|
|
base64
|
|
crowbar
|
|
bstr
|
|
];
|
|
# bstr is not available for OCaml < 4.13
|
|
doCheck = lib.versionAtLeast ocaml.version "4.13";
|
|
|
|
meta = {
|
|
description = "Pure OCaml implementation of Zlib";
|
|
homepage = "https://github.com/mirage/decompress";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
mainProgram = "decompress.pipe";
|
|
};
|
|
})
|