coqPackages.VST: adapt to master

authored by Pierre Roux and committed by Vincent Laporte 2107c026 82bf4690

+30 -36
+30 -36
pkgs/development/coq-modules/VST/default.nix
··· 34 repo = "VST"; 35 inherit version; 36 defaultVersion = 37 with lib.versions; 38 lib.switch coq.coq-version [ 39 - { 40 - case = range "8.19" "8.20"; 41 - out = "2.15"; 42 - } 43 - { 44 - case = range "8.15" "8.19"; 45 - out = "2.14"; 46 - } 47 - { 48 - case = range "8.15" "8.17"; 49 - out = "2.13"; 50 - } 51 - { 52 - case = range "8.14" "8.16"; 53 - out = "2.10"; 54 - } 55 - { 56 - case = range "8.13" "8.15"; 57 - out = "2.9"; 58 - } 59 - { 60 - case = range "8.12" "8.13"; 61 - out = "2.8"; 62 - } 63 ] null; 64 release."2.15".sha256 = "sha256-51k2W4efMaEO4nZ0rdkRT9rA8ZJLpot1YpFmd6RIAXw="; 65 release."2.14".sha256 = "sha256-NHc1ZQ2VmXZy4lK2+mtyeNz1Qr9Nhj2QLxkPhhQB7Iw="; ··· 73 buildInputs = [ ITree ]; 74 propagatedBuildInputs = [ compcert ]; 75 76 - preConfigure = '' 77 - patchShebangs util 78 - substituteInPlace Makefile \ 79 - --replace 'COQVERSION= ' 'COQVERSION= 8.20.1 or-else 8.19.2 or-else 8.17.1 or-else 8.16.1 or-else 8.16.0 or-else 8.15.2 or-else 8.15.1 or-else '\ 80 - --replace 'FLOYD_FILES=' 'FLOYD_FILES= ${toString extra_floyd_files}' 81 - ''; 82 83 - makeFlags = [ 84 - "BITSIZE=64" 85 - "COMPCERT=inst_dir" 86 - "COMPCERT_INST_DIR=${compcert.lib}/lib/coq/${coq.coq-version}/user-contrib/compcert" 87 - "INSTALLDIR=$(out)/lib/coq/${coq.coq-version}/user-contrib/VST" 88 - ]; 89 90 postInstall = '' 91 for d in msl veric floyd sepcomp progs64
··· 34 repo = "VST"; 35 inherit version; 36 defaultVersion = 37 + let 38 + case = case: out: { inherit case out; }; 39 + in 40 with lib.versions; 41 lib.switch coq.coq-version [ 42 + (case (range "8.19" "8.20") "2.15") 43 + (case (range "8.15" "8.19") "2.14") 44 + (case (range "8.15" "8.17") "2.13") 45 + (case (range "8.14" "8.16") "2.10") 46 + (case (range "8.13" "8.15") "2.9") 47 + (case (range "8.12" "8.13") "2.8") 48 ] null; 49 release."2.15".sha256 = "sha256-51k2W4efMaEO4nZ0rdkRT9rA8ZJLpot1YpFmd6RIAXw="; 50 release."2.14".sha256 = "sha256-NHc1ZQ2VmXZy4lK2+mtyeNz1Qr9Nhj2QLxkPhhQB7Iw="; ··· 58 buildInputs = [ ITree ]; 59 propagatedBuildInputs = [ compcert ]; 60 61 + preConfigure = 62 + '' 63 + patchShebangs util 64 + '' 65 + + 66 + lib.optionalString 67 + (coq.coq-version != null && coq.coq-version != "dev" && lib.versions.isLe "8.20" coq.coq-version) 68 + '' 69 + substituteInPlace Makefile \ 70 + --replace-fail 'COQVERSION= ' 'COQVERSION= 8.20.1 or-else 8.19.2 or-else 8.17.1 or-else 8.16.1 or-else 8.16.0 or-else 8.15.2 or-else 8.15.1 or-else '\ 71 + --replace-fail 'FLOYD_FILES=' 'FLOYD_FILES= ${toString extra_floyd_files}' 72 + ''; 73 74 + makeFlags = 75 + [ 76 + "BITSIZE=64" 77 + "COMPCERT=inst_dir" 78 + "COMPCERT_INST_DIR=${compcert.lib}/lib/coq/${coq.coq-version}/user-contrib/compcert" 79 + "INSTALLDIR=$(out)/lib/coq/${coq.coq-version}/user-contrib/VST" 80 + ] 81 + ++ lib.optional (coq.coq-version == "dev") "IGNORECOQVERSION=true" 82 + ++ lib.optional (coq.coq-version == "dev") "IGNORECOMPCERTVERSION=true"; 83 84 postInstall = '' 85 for d in msl veric floyd sepcomp progs64