Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 mkRocqDerivation, 4 rocq-core, 5 stdlib, 6 version ? null, 7}: 8 9mkRocqDerivation { 10 pname = "bignums"; 11 owner = "rocq-community"; 12 inherit version; 13 defaultVersion = 14 let 15 case = case: out: { inherit case out; }; 16 in 17 with lib.versions; 18 lib.switch rocq-core.rocq-version [ 19 (case (range "9.0" "9.1") "9.0.0+rocq${rocq-core.rocq-version}") 20 ] null; 21 22 release."9.0.0+rocq9.0".sha256 = "sha256-ctnwpyNVhryEUA5YEsAImrcJsNMhtBgDSOz+z5Z4R78="; 23 release."9.0.0+rocq9.1".sha256 = "sha256-MSjlfJs3JOakuShOj+isNlus0bKlZ+rkvzRoKZQK5RQ="; 24 releaseRev = v: "v${v}"; 25 26 mlPlugin = true; 27 28 propagatedBuildInputs = [ stdlib ]; 29 30 meta = { 31 license = lib.licenses.lgpl2; 32 }; 33}