File tree Expand file tree Collapse file tree 10 files changed +20
-35
lines changed
pkgs/development/coq-modules Expand file tree Collapse file tree 10 files changed +20
-35
lines changed Original file line number Diff line number Diff line change 33 mkCoqDerivation ,
44 coq ,
55 mathcomp ,
6- stdlib ,
76 version ? null ,
87} :
98
@@ -68,7 +67,6 @@ mkCoqDerivation {
6867 mathcomp . algebra
6968 mathcomp . ssreflect
7069 mathcomp . fingroup
71- stdlib
7270 ] ;
7371
7472 meta = with lib ; {
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ hb.overrideAttrs (o:
4949 else
5050 { installFlags = [ "VFILES=structures.v" ] ++ o . installFlags ; } )
5151 //
52- lib . optionalAttrs ( lib . versions . isLe "1.8.1" o . version )
52+ lib . optionalAttrs ( o . version != null && o . version == "1.8.1" )
5353 { propagatedBuildInputs = o . propagatedBuildInputs ++ [ stdlib ] ; }
5454)
Original file line number Diff line number Diff line change 33 mkCoqDerivation ,
44 coq ,
55 mathcomp ,
6+ mathcomp-algebra-tactics ,
67 mathcomp-word ,
78 version ? null ,
89} :
@@ -23,6 +24,7 @@ mkCoqDerivation {
2324 release . "2024.07.2" . sha256 = "sha256-aF8SYY5jRxQ6iEr7t6mRN3BEmIDhJ53PGhuZiJGB+i8=" ;
2425
2526 propagatedBuildInputs = [
27+ mathcomp-algebra-tactics
2628 mathcomp-word
2729 ] ;
2830
Original file line number Diff line number Diff line change 55 mathcomp-finmap ,
66 mathcomp-bigenough ,
77 hierarchy-builder ,
8+ stdlib ,
89 single ? false ,
910 coqPackages ,
1011 coq ,
@@ -176,26 +177,11 @@ let
176177 ] ;
177178 intra-deps = lib . optionals ( package != "single" ) ( map mathcomp_ packages . ${ package } ) ;
178179 pkgpath = lib . switch package [
179- {
180- case = "single" ;
181- out = "." ;
182- }
183- {
184- case = "analysis" ;
185- out = "theories" ;
186- }
187- {
188- case = "experimental-reals" ;
189- out = "experimental_reals" ;
190- }
191- {
192- case = "reals-stdlib" ;
193- out = "reals_stdlib" ;
194- }
195- {
196- case = "analysis-stdlib" ;
197- out = "analysis_stdlib" ;
198- }
180+ { case = "single" ; out = "." ; }
181+ { case = "analysis" ; out = "theories" ; }
182+ { case = "experimental-reals" ; out = "experimental_reals" ; }
183+ { case = "reals-stdlib" ; out = "reals_stdlib" ; }
184+ { case = "analysis-stdlib" ; out = "analysis_stdlib" ; }
199185 ] package ;
200186 pname = if package == "single" then "mathcomp-analysis-single" else "mathcomp-${ package } " ;
201187 derivation = mkCoqDerivation ( {
226212 ++ lib . optionals ( lib . elem package [
227213 "analysis"
228214 "single"
229- ] ) analysis-deps ;
215+ ] ) analysis-deps
216+ ++ lib . optional ( lib . elem package [
217+ "reals-stdlib"
218+ "analysis-stdlib"
219+ "single"
220+ ] ) stdlib ;
230221
231222 preBuild = ''
232223 cd ${ pkgpath }
Original file line number Diff line number Diff line change 22 coq ,
33 mkCoqDerivation ,
44 mathcomp ,
5- stdlib ,
65 lib ,
76 version ? null ,
87} :
@@ -108,7 +107,7 @@ mkCoqDerivation {
108107 "1.0.0" . sha256 = "0sah7k9qm8sw17cgd02f0x84hki8vj8kdz7h15i7rmz08rj0whpa" ;
109108 } ;
110109
111- propagatedBuildInputs = [ mathcomp . ssreflect stdlib ] ;
110+ propagatedBuildInputs = [ mathcomp . ssreflect ] ;
112111
113112 meta = {
114113 description = "Finset and finmap library" ;
Original file line number Diff line number Diff line change 33 mkCoqDerivation ,
44 mathcomp ,
55 mathcomp-bigenough ,
6- stdlib ,
76 lib ,
87 version ? null ,
98} :
@@ -116,7 +115,6 @@ mkCoqDerivation {
116115 mathcomp . fingroup
117116 mathcomp . solvable
118117 mathcomp-bigenough
119- stdlib
120118 ] ;
121119
122120 meta = {
Original file line number Diff line number Diff line change 33 mkCoqDerivation ,
44 mathcomp-ssreflect ,
55 mathcomp-fingroup ,
6- stdlib ,
76 lib ,
87 version ? null ,
98} @args :
@@ -53,7 +52,6 @@ mkCoqDerivation {
5352 propagatedBuildInputs = [
5453 mathcomp-ssreflect
5554 mathcomp-fingroup
56- stdlib
5755 ] ;
5856
5957 meta = {
Original file line number Diff line number Diff line change 33 coq ,
44 mkCoqDerivation ,
55 mathcomp ,
6+ stdlib ,
67 lib ,
78 version ? null ,
89} :
@@ -80,6 +81,7 @@ mkCoqDerivation {
8081 mathcomp . algebra
8182 mathcomp . ssreflect
8283 mathcomp . fingroup
84+ stdlib
8385 ] ;
8486
8587 meta = with lib ; {
Original file line number Diff line number Diff line change 8080 mlPlugin = lib . versions . isLe "8.6" coq . coq-version ;
8181 nativeBuildInputs = lib . optionals withDoc [ graphviz lua ] ;
8282 buildInputs = [ ncurses ] ;
83- propagatedBuildInputs = [ stdlib ] ++ mathcomp-deps ;
83+ propagatedBuildInputs = mathcomp-deps ;
8484
8585 buildFlags = lib . optional withDoc "doc" ;
8686
144144 }
145145 ) ;
146146 patched-derivation4 = patched-derivation3 . overrideAttrs ( o :
147- lib . optionalAttrs ( o . version != null
148- && lib . versions . isLe "2.3.0" o . version )
147+ lib . optionalAttrs ( o . version != null && o . version == "2.3.0" )
149148 {
150149 propagatedBuildInputs = o . propagatedBuildInputs ++ [ stdlib ] ;
151150 }
Original file line number Diff line number Diff line change 22 lib ,
33 mkCoqDerivation ,
44 mathcomp ,
5- stdlib ,
65 version ? null ,
76} :
87
@@ -46,7 +45,6 @@ mkCoqDerivation {
4645 mathcomp . solvable
4746 mathcomp . field
4847 mathcomp . all
49- stdlib
5048 ] ;
5149
5250 meta = with lib ; {
You can’t perform that action at this time.
0 commit comments