mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
d113661156
- put `findlib` in `buildInputs` of `mkCoqDerivation` to make sure `coq` packages find their ocaml plugin dependencies, - use `propagatedBuildInputs` to make sure ocaml plugin dependencies are in path, - updated `coqPackage.heq` (broken url), - fixed use of `DESTDIR` and `COQMF_COQLIB` in mkCoqDerivation, - adding `COQCORELIB` environement variable to put ocaml plugin files in the right place, - make `metaFetch` available from `coqPackages`
27 lines
842 B
Nix
27 lines
842 B
Nix
{ lib, mkCoqDerivation, coq, coq-ext-lib, version ? null }:
|
|
|
|
with lib; mkCoqDerivation {
|
|
pname = "simple-io";
|
|
owner = "Lysxia";
|
|
repo = "coq-simple-io";
|
|
inherit version;
|
|
defaultVersion = with versions; switch coq.coq-version [
|
|
{ case = range "8.11" "8.15"; out = "1.7.0"; }
|
|
{ case = range "8.7" "8.13"; out = "1.3.0"; }
|
|
] null;
|
|
release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci";
|
|
release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax";
|
|
mlPlugin = true;
|
|
nativeBuildInputs = [ coq.ocamlPackages.cppo ];
|
|
propagatedBuildInputs = [ coq-ext-lib coq.ocamlPackages.ocamlbuild ];
|
|
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
description = "Purely functional IO for Coq";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.vbgl ];
|
|
};
|
|
}
|