Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, mkCoqDerivation, coq, stdpp, version ? null }: 2 3mkCoqDerivation rec { 4 pname = "iris"; 5 domain = "gitlab.mpi-sws.org"; 6 owner = "iris"; 7 inherit version; 8 defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 { case = range "8.13" "8.16"; out = "4.0.0"; } 10 { case = range "8.12" "8.14"; out = "3.5.0"; } 11 { case = range "8.11" "8.13"; out = "3.4.0"; } 12 { case = range "8.9" "8.10"; out = "3.3.0"; } 13 ] null; 14 release."4.0.0".sha256 = "sha256-Jc9TmgGvkiDaz9IOoExyeryU1E+Q37GN24NIM397/Gg="; 15 release."3.6.0".sha256 = "sha256:02vbq597fjxd5znzxdb54wfp36412wz2d4yash4q8yddgl1kakmj"; 16 release."3.5.0".sha256 = "0hh14m0anfcv65rxm982ps2vp95vk9fwrpv4br8bxd9vz0091d70"; 17 release."3.4.0".sha256 = "0vdc2mdqn5jjd6yz028c0c6blzrvpl0c7apx6xas7ll60136slrb"; 18 release."3.3.0".sha256 = "0az4gkp5m8sq0p73dlh0r7ckkzhk7zkg5bndw01bdsy5ywj0vilp"; 19 releaseRev = v: "iris-${v}"; 20 21 propagatedBuildInputs = [ stdpp ]; 22 23 preBuild = '' 24 if [[ -f coq-lint.sh ]] 25 then patchShebangs coq-lint.sh 26 fi 27 ''; 28 29 meta = with lib; { 30 description = "The Coq development of the Iris Project"; 31 license = licenses.bsd3; 32 maintainers = [ maintainers.vbgl ]; 33 }; 34}