File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,15 @@ let
138
138
if sha256map != null
139
139
then sha256map . ${ attrs . url } or null
140
140
else null ) ;
141
- in rec {
142
- # This is `some-name` from the `repository some-name` line in the `cabal.project` file.
143
- name = builtins . unsafeDiscardStringContext ( __head lines ) ;
144
141
addContext = s :
145
142
let storeDirMatch = builtins . match ".*(${ builtins . storeDir } /[^/]+).*" s ;
146
143
in if storeDirMatch == null
147
144
then s
148
145
else builtins . appendContext s { ${ builtins . head storeDirMatch } = { path = true ; } ; } ;
149
146
# The $HOME/.cabal/packages/${name} after running `cabal v2-update` to download the repository
147
+ in rec {
148
+ # This is `some-name` from the `repository some-name` line in the `cabal.project` file.
149
+ name = builtins . unsafeDiscardStringContext ( __head lines ) ;
150
150
repoContents = if inputMap ? ${ attrs . url }
151
151
# If there is an input use it to make `file:` url and create a suitable `.cabal/packages/${name}` directory
152
152
then evalPackages . runCommand name ( {
You can’t perform that action at this time.
0 commit comments