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>
30 lines
733 B
Nix
30 lines
733 B
Nix
{ lib, buildDunePackage, fetchurl, base64, either, fmt, jsonm, uutf, optint }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "repr";
|
|
version = "0.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/${pname}/releases/download/${version}/${pname}-fuzz-${version}.tbz";
|
|
sha256 = "1y9qnbaxcyxz7bzkkq5lwjrv715mvp2vphzcrd8vbvjhp7df3l1f";
|
|
};
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
useDune2 = true;
|
|
|
|
propagatedBuildInputs = [
|
|
base64
|
|
either
|
|
fmt
|
|
jsonm
|
|
uutf
|
|
optint
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Dynamic type representations. Provides no stability guarantee";
|
|
homepage = "https://github.com/mirage/repr";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
};
|
|
}
|