File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -196,17 +196,17 @@ packages2nix args pkgs =
196
196
let path = dir </> subdir
197
197
cabalFiles <- liftIO $ findCabalFiles (argHpackUse args) path
198
198
forM cabalFiles $ \ cabalFile -> do
199
- let pkg = cabalFilePkgName cabalFile
200
- nix = pkg <.> " nix"
201
- nixFile = argOutputDir args </> nix
202
- subdir' = if subdir == " ." then Nothing
203
- else Just subdir
204
- src = Just $ C2N. Git url rev (Just sha256) subdir'
205
- liftIO $ createDirectoryIfMissing True (takeDirectory nixFile)
206
- liftIO $ writeDoc nixFile =<<
207
- prettyNix <$> cabal2nix True (argDetailLevel args) src cabalFile
208
- liftIO $ appendCache (argCacheFile args) url rev subdir sha256 pkg nix
209
- return (fromString pkg, fromString pkg $= mkPath False nix)
199
+ let pkg = cabalFilePkgName cabalFile
200
+ nix = pkg <.> " nix"
201
+ nixFile = argOutputDir args </> nix
202
+ subdir' = if subdir == " ." then Nothing
203
+ else Just subdir
204
+ src = Just $ C2N. Git url rev (Just sha256) subdir'
205
+ createDirectoryIfMissing True (takeDirectory nixFile)
206
+ writeDoc nixFile =<<
207
+ prettyNix <$> cabal2nix True (argDetailLevel args) src cabalFile
208
+ appendCache (argCacheFile args) url rev subdir sha256 pkg nix
209
+ return (fromString pkg, fromString pkg $= mkPath False nix)
210
210
211
211
defaultNixContents :: String
212
212
defaultNixContents = unlines
You can’t perform that action at this time.
0 commit comments