Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 30 lines 846 B view raw
1{ stdenv, fetchFromGitHub, coq, bignums }: 2 3stdenv.mkDerivation rec { 4 5 name = "coq${coq.coq-version}-math-classes-${version}"; 6 version = "8.11.0"; 7 8 src = fetchFromGitHub { 9 owner = "coq-community"; 10 repo = "math-classes"; 11 rev = version; 12 sha256 = "1hjgncvm1m46lw6264w4dqsy8dbh74vhmzq52x0fba2yqlvy94sf"; 13 }; 14 15 buildInputs = [ coq bignums ]; 16 enableParallelBuilding = true; 17 installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ]; 18 19 meta = with stdenv.lib; { 20 homepage = "https://math-classes.github.io"; 21 description = "A library of abstract interfaces for mathematical structures in Coq."; 22 maintainers = with maintainers; [ siddharthist jwiegley ]; 23 platforms = coq.meta.platforms; 24 }; 25 26 passthru = { 27 compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" ]; 28 }; 29 30}