1
0
Fork 0

Fix Haskell scripts

This commit is contained in:
Malte Brandy 2019-10-25 02:09:42 +02:00
parent f11fd8b780
commit e972d1d819
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ in rec {
getNivPath dir name = get_niv_path ([i|#{dir :: String}/nix/sources.nix|] :: String) name |> captureTrim
getNivAssign dir name = process <$> getNivPath dir name
where process str = ["-I", [i|#{name :: String}=#{str :: LBS.ByteString}|]]
where process str = ["-I" :: String, [i|#{name :: String}=#{str :: LBS.ByteString}|]]
main = do
(configDir:hostname:args) <- getArgs

View file

@ -11,7 +11,7 @@ in rec {
getNivPath name = get_niv_path "${configPath}/nix/sources.nix" name |> captureTrim
getNivAssign name = tag <$> getNivPath name
where tag str = ["-I", [i|#{name :: String}=#{str :: LBS.ByteString}|]]
where tag str = ["-I" :: String, [i|#{name :: String}=#{str :: LBS.ByteString}|]]
main = do
paths <- fmap concat . mapM getNivAssign $ ["nixpkgs", "unstable", "home-manager"]