Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 mkCoqDerivation, 4 coq, 5 stdlib, 6 version ? null, 7}: 8 9mkCoqDerivation { 10 pname = "rewriter"; 11 owner = "mit-plv"; 12 inherit version; 13 defaultVersion = 14 let 15 inherit (lib.versions) range; 16 in 17 lib.switch coq.coq-version [ 18 { 19 case = range "8.17" "8.19"; 20 out = "0.0.11"; 21 } 22 ] null; 23 release = { 24 "0.0.11".sha256 = "sha256-aYoO08nwItlOoE5BnKRGib2Zk4Fz4Ni/L4QaqkObPow="; 25 }; 26 releaseRev = v: "v${v}"; 27 28 propagatedBuildInputs = [ stdlib ]; 29 30 mlPlugin = true; 31 32 meta = { 33 description = "Reflective PHOAS rewriting/pattern-matching-compilation framework for simply-typed equalities and let-lifting, experimental and tailored for use in Fiat Cryptography"; 34 license = lib.licenses.mit; 35 }; 36}