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 = "coinduction"; 11 owner = "damien-pous"; 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.19" "8.19"; 20 out = "1.9"; 21 } 22 ] null; 23 release = { 24 "1.9".sha256 = "sha256-bBU+xDklnzJBeN41GarW5KXzD8eKsOYtb//ULYumwWE="; 25 }; 26 releaseRev = v: "v${v}"; 27 28 propagatedBuildInputs = [ stdlib ]; 29 30 mlPlugin = true; 31 32 meta = { 33 description = "Library for doing proofs by (enhanced) coinduction"; 34 license = lib.licenses.lgpl3Plus; 35 }; 36}