mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
65152acbae
The existing URL looks like version 2.0.0, but actually downloads the contents of ounit-1.2.0.tar.gz into a file named ounit-2.0.0.tar.gz
35 lines
739 B
Nix
35 lines
739 B
Nix
{stdenv, fetchurl, ocaml, findlib, camlp4}:
|
|
|
|
let
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ounit-2.0.0";
|
|
|
|
src = fetchurl {
|
|
url = https://forge.ocamlcore.org/frs/download.php/1258/ounit-2.0.0.tar.gz;
|
|
sha256 = "118xsadrx84pif9vaq13hv4yh22w9kmr0ypvhrs0viir1jr0ajjd";
|
|
};
|
|
|
|
buildInputs = [ocaml findlib camlp4];
|
|
|
|
dontAddPrefix = true;
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
homepage = http://www.xs4all.nl/~mmzeeman/ocaml/;
|
|
description = "Unit test framework for OCaml";
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = ocaml.meta.platforms;
|
|
maintainers = [
|
|
stdenv.lib.maintainers.z77z
|
|
];
|
|
};
|
|
}
|