lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

coq-mathcomp: refactor

+52 -54
-26
pkgs/development/coq-modules/mathcomp/1.5.nix
··· 1 - {stdenv, fetchurl, coq, ssreflect}: 2 - 3 - stdenv.mkDerivation { 4 - 5 - name = "coq-mathcomp-1.5-8.5b2"; 6 - 7 - src = fetchurl { 8 - url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.5.coq85beta2.tar.gz; 9 - sha256 = "03bnq44ym43x8shi7whc02l0g5vy6rx8f1imjw478chlgwcxazqy"; 10 - }; 11 - 12 - propagatedBuildInputs = [ coq ssreflect ]; 13 - 14 - enableParallelBuilding = true; 15 - 16 - installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; 17 - 18 - meta = with stdenv.lib; { 19 - homepage = http://ssr.msr-inria.inria.fr/; 20 - license = licenses.cecill-b; 21 - maintainers = [ maintainers.vbgl maintainers.jwiegley ]; 22 - platforms = coq.meta.platforms; 23 - hydraPlatforms = []; 24 - }; 25 - 26 - }
+16 -27
pkgs/development/coq-modules/mathcomp/default.nix
··· 1 - { stdenv, fetchurl, coq, ssreflect 2 - , graphviz, ocaml, withDoc ? true 3 - }: 1 + { callPackage, coq, fetchurl }: 4 2 5 - stdenv.mkDerivation { 3 + let src = 4 + if coq.coq-version == "8.4" then 6 5 7 - name = "coq-mathcomp-1.5"; 6 + fetchurl { 7 + url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.5.tar.gz; 8 + sha256 = "1297svwi18blrlyd8vsqilar2h5nfixlvlifdkbx47aljq4m5bam"; 9 + } 8 10 9 - src = fetchurl { 10 - url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.5.tar.gz; 11 - sha256 = "1297svwi18blrlyd8vsqilar2h5nfixlvlifdkbx47aljq4m5bam"; 12 - }; 11 + else if coq.coq-version == "8.5" then 13 12 14 - nativeBuildInputs = stdenv.lib.optionals withDoc [ graphviz ocaml ]; 15 - propagatedBuildInputs = [ coq ssreflect ]; 13 + fetchurl { 14 + url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.5.coq85beta2.tar.gz; 15 + sha256 = "03bnq44ym43x8shi7whc02l0g5vy6rx8f1imjw478chlgwcxazqy"; 16 + } 16 17 17 - enableParallelBuilding = true; 18 + else throw "No mathcomp package for Coq version ${coq.coq-version}"; 18 19 19 - buildFlags = stdenv.lib.optionalString withDoc "doc"; 20 + in 20 21 21 - installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; 22 - 23 - postInstall = stdenv.lib.optionalString withDoc '' 24 - make -f Makefile.coq install-doc DOCDIR=$out/share/coq/${coq.coq-version}/ 25 - ''; 26 - 27 - meta = with stdenv.lib; { 28 - homepage = http://ssr.msr-inria.inria.fr/; 29 - license = licenses.cecill-b; 30 - maintainers = [ maintainers.vbgl maintainers.jwiegley ]; 31 - platforms = coq.meta.platforms; 32 - hydraPlatforms = []; 33 - }; 34 - 22 + callPackage ./generic.nix { 23 + inherit src; 35 24 }
+33
pkgs/development/coq-modules/mathcomp/generic.nix
··· 1 + { stdenv, fetchurl, coq, ssreflect 2 + , graphviz, ocamlPackages, withDoc ? true 3 + , src 4 + }: 5 + 6 + stdenv.mkDerivation { 7 + 8 + name = "coq-${coq.coq-version}-mathcomp-1.5"; 9 + 10 + inherit src; 11 + 12 + nativeBuildInputs = stdenv.lib.optionals withDoc 13 + ([ graphviz ] ++ (with ocamlPackages; [ ocaml camlp5_transitional ])); 14 + propagatedBuildInputs = [ ssreflect ]; 15 + 16 + enableParallelBuilding = true; 17 + 18 + buildFlags = stdenv.lib.optionalString withDoc "doc"; 19 + 20 + installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; 21 + 22 + postInstall = stdenv.lib.optionalString withDoc '' 23 + make -f Makefile.coq install-doc DOCDIR=$out/share/coq/${coq.coq-version}/ 24 + ''; 25 + 26 + meta = with stdenv.lib; { 27 + homepage = http://ssr.msr-inria.inria.fr/; 28 + license = licenses.cecill-b; 29 + maintainers = [ maintainers.vbgl maintainers.jwiegley ]; 30 + platforms = coq.meta.platforms; 31 + }; 32 + 33 + }
+3 -1
pkgs/top-level/all-packages.nix
··· 14048 14048 14049 14049 mkCoqPackages_8_4 = self: let callPackage = newScope self; in { 14050 14050 14051 + inherit callPackage; 14052 + 14051 14053 bedrock = callPackage ../development/coq-modules/bedrock {}; 14052 14054 14053 14055 contribs = ··· 14094 14096 14095 14097 coq = coq_8_5; 14096 14098 14097 - mathcomp = callPackage ../development/coq-modules/mathcomp/1.5.nix { }; 14099 + mathcomp = callPackage ../development/coq-modules/mathcomp { }; 14098 14100 14099 14101 ssreflect = callPackage ../development/coq-modules/ssreflect { }; 14100 14102