17321c9f85
Without the change the eval fails as:
$ nix eval --impure --expr 'with import <nixpkgs> {}; coqPackages_9_1.verified-extraction.meta.maintainers'
error:
… while evaluating the attribute 'verified-extraction.meta.maintainers'
at pkgs/stdenv/generic/check-meta.nix:558:7:
557| # if you add a new maintainer or team attribute please ensure that this expectation is still met.
558| maintainers = unique (
| ^
559| attrs.meta.maintainers or [ ] ++ concatMap (team: team.members or [ ]) attrs.meta.teams or [ ]
… while calling the 'foldl'' builtin
at pkgs/stdenv/generic/check-meta.nix:558:21:
557| # if you add a new maintainer or team attribute please ensure that this expectation is still met.
558| maintainers = unique (
| ^
559| attrs.meta.maintainers or [ ] ++ concatMap (team: team.members or [ ]) attrs.meta.teams or [ ]
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: undefined variable 'mattam82'
at pkgs/development/coq-modules/verified-extraction/default.nix:62:7:
61| maintainers = with maintainers; [
62| mattam82
| ^
63| _4ever2
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
mkCoqDerivation,
|
|
coq,
|
|
dune,
|
|
ceres-bs,
|
|
equations,
|
|
metarocq-erasure-plugin,
|
|
version ? null,
|
|
}:
|
|
|
|
mkCoqDerivation {
|
|
pname = "verified-extraction";
|
|
owner = "MetaRocq";
|
|
repo = "rocq-verified-extraction";
|
|
opam-name = "rocq-verified-extraction";
|
|
|
|
inherit version;
|
|
defaultVersion =
|
|
let
|
|
case = coq: mr: out: {
|
|
cases = [
|
|
coq
|
|
mr
|
|
];
|
|
inherit out;
|
|
};
|
|
in
|
|
lib.switch
|
|
[
|
|
coq.coq-version
|
|
metarocq-erasure-plugin.version
|
|
]
|
|
[
|
|
(case "9.1" "1.5.1-9.1" "1.0.0-9.1")
|
|
]
|
|
null;
|
|
release = {
|
|
"1.0.0-9.1".hash = "sha256-0eKpchQtnPI12rcsb9+qN1pdNX9KY8VryZP0oqHuYeU=";
|
|
};
|
|
releaseRev = v: "v${v}";
|
|
|
|
mlPlugin = true;
|
|
|
|
buildInputs = [ dune ];
|
|
propagatedBuildInputs = [
|
|
coq.ocamlPackages.findlib
|
|
coq.ocamlPackages.malfunction
|
|
equations
|
|
metarocq-erasure-plugin
|
|
ceres-bs
|
|
];
|
|
|
|
prePatch = ''
|
|
patchShebangs plugin/plugin/clean_extraction.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://metarocq.github.io/";
|
|
description = "Verified Extraction from Rocq to OCaml. Including a bootstrapped extraction plugin";
|
|
maintainers = with maintainers; [
|
|
_4ever2
|
|
];
|
|
};
|
|
}
|