File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 90
90
subdirs = if repo ? subdir
91
91
then pkgs . lib . filter ( x : x != "" ) ( pkgs . lib . splitString " " repo . subdir )
92
92
else [ "." ] ;
93
+ # All repos served via ssh or git protocols are usually private
94
+ is-private = pkgs . lib . substring 0 4 repo . location != "http" ;
93
95
} ;
94
96
95
97
# Parse a source-repository-package and return data of `type: git` repositories
Original file line number Diff line number Diff line change @@ -227,13 +227,16 @@ let
227
227
( if inputMap . ${ repoData. url } . rev != repoData . ref
228
228
then throw "${ inputMap . ${ repoData. url } . rev } may not match ${ repoData . ref } for ${ repoData . url } use \" ${ repoData . url } /${ repoData . ref } \" as the inputMap key if ${ repoData . ref } is a branch or tag that points to ${ inputMap . ${ repoData. url } . rev } ."
229
229
else inputMap . ${ repoData . url } )
230
- else if repoData . sha256 != null
230
+ else if repoData . sha256 != null && ! repoData . is-private
231
231
then fetchgit repoData
232
232
else
233
- let drv = builtins . fetchGit { inherit ( repoData ) url ref ; } ;
234
- in __trace "WARNING: No sha256 found for source-repository-package ${ repoData . url } ${ repoData . ref } download may fail in restricted mode (hydra)"
235
- ( __trace "Consider adding `--sha256: ${ hashPath drv } ` to the ${ cabalProjectFileName } file or passing in a sha256map argument"
236
- drv ) ;
233
+ let
234
+ drv = builtins . fetchGit repoData ;
235
+ maybeTrace = x : if repoData . sha256 != null then x else
236
+ __trace "WARNING: No sha256 found for source-repository-package ${ repoData . url } ${ repoData . ref } download may fail in restricted mode (hydra)"
237
+ ( __trace "Consider adding `--sha256: ${ hashPath drv } ` to the ${ cabalProjectFileName } file or passing in a sha256map argument"
238
+ x ) ;
239
+ in maybeTrace drv ;
237
240
in {
238
241
# Download the source-repository-package commit and add it to a minimal git
239
242
# repository that `cabal` will be able to access from a non fixed output derivation.
Original file line number Diff line number Diff line change 45
45
"gstreamer-plugins-base-0.10" = [ "gst-plugins-base" ] ;
46
46
"gstreamer-video-1.0" = [ "gst-plugins-base" ] ;
47
47
"gtk-x11-2.0" = [ "gtk_x11" ] ;
48
+ "ical" = [ "libical" ] ;
48
49
"icudata" = [ "icu" ] ;
49
50
"icui18n" = [ "icu" ] ;
50
51
"icuuc" = [ "icu" ] ;
@@ -5742,4 +5743,4 @@ pkgs:
5742
5743
else if pkgs ? gdk_pixbuf
5743
5744
then [ pkgs . gdk_pixbuf ]
5744
5745
else [ ] ;
5745
- }
5746
+ }
Original file line number Diff line number Diff line change 95
95
# compile C sources (https://github.com/fpco/odbc/blob/master/cbits/odbc.c)
96
96
odbc = [ unixODBC ] ;
97
97
opencv = [ opencv3 ] ;
98
+ ical = [ libical ] ;
98
99
icuuc = [ icu ] ;
99
100
icui18n = [ icu ] ;
100
101
icu-i18n = [ icu ] ;
114
115
GeoIP = [ geoip ] ;
115
116
pulse-simple = [ libpulseaudio ] ;
116
117
oath = [ liboauth ] ;
118
+ mcrypt = [ libmcrypt ] ;
117
119
}
118
120
# -- windows
119
121
// { advapi32 = null ; gdi32 = null ; imm32 = null ; msimg32 = null ;
You can’t perform that action at this time.
0 commit comments