nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 47 lines 1.7 kB view raw
1{ lib, mkCoqDerivation, coq, version ? null }: 2with lib; 3 4mkCoqDerivation rec { 5 pname = "semantics"; 6 owner = "coq-community"; 7 releaseRev = v: "v${v}"; 8 9 release."8.14.0".sha256 = "sha256-TB12C3hX9XucbsXr+UL+8jM19NOFXASW/lcytwy6uVE="; 10 release."8.13.0".sha256 = "sha256-8bDr/Ovl6s8BFaRcHeS5H33/K/pYdeKfSN+krVuKulQ="; 11 release."8.11.1".sha256 = "sha256-jTPgcXSNn1G2mMDC7ocFcmqs8svB7Yo1emXP15iuxiU="; 12 release."8.9.0".sha256 = "sha256-UBsvzlDEZsZsVkbUI0GbFEhpxnnLCiaqlqDyWVC5I6s="; 13 release."8.8.0".sha256 = "sha256-k2nQyNw9KT3wY7bGy8KGILF44sLxkBYqdFpzFE9fgyw="; 14 release."8.7.0".sha256 = "sha256-k2nQyNw9KT3wY7bGy8KGILF44sLxkBYqdFpzFE9fgyw="; 15 release."8.6.0".sha256 = "sha256-GltkGQ3tJqUPAbdDkqqvKLLhMOap50XvGaCkjshiNdY="; 16 17 inherit version; 18 defaultVersion = with versions; switch coq.coq-version [ 19 { case = range "8.10" "8.15"; out = "8.14.0"; } 20 { case = "8.9"; out = "8.9.0"; } 21 { case = "8.8"; out = "8.8.0"; } 22 { case = "8.7"; out = "8.7.0"; } 23 { case = "8.6"; out = "8.6.0"; } 24 ] null; 25 26 mlPlugin = true; 27 extraNativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]); 28 extraBuildInputs = (with coq.ocamlPackages; [ num ]); 29 30 postPatch = '' 31 for p in Make Makefile.coq.local 32 do 33 substituteInPlace $p --replace "-libs nums" "-use-ocamlfind -package num" || true 34 done 35 ''; 36 37 meta = { 38 description = "A survey of programming language semantics styles in Coq"; 39 longDescription = '' 40 A survey of semantics styles in Coq, from natural semantics through 41 structural operational, axiomatic, and denotational semantics, to 42 abstract interpretation 43 ''; 44 maintainers = with maintainers; [ siraben ]; 45 license = licenses.mit; 46 }; 47}