From 31f074cb86d6b113361afe8098914ec02f719a5c Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Tue, 8 Mar 2022 07:03:20 +0100 Subject: [PATCH] Fix build --- overlays/writeHaskellScript.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/overlays/writeHaskellScript.nix b/overlays/writeHaskellScript.nix index 66f7a9e5..810b2ef7 100644 --- a/overlays/writeHaskellScript.nix +++ b/overlays/writeHaskellScript.nix @@ -87,8 +87,8 @@ in { -- Load binaries from Nix packages. The dependencies will be captured -- in the closure. loadFromBins (${ - self.haskellList - (builtins.map toString (bins ++ [self.coreutils self.nix])) + pkgs.haskellList + (builtins.map toString (bins ++ [pkgs.coreutils pkgs.nix])) } :: [String]) getNivPath :: Text -> Text -> IO Text @@ -108,7 +108,7 @@ in { getNivAssign (name, repo) = tag name <$> getNivPath path repo myNixPath :: Text -> IO [String] - myNixPath = aNixPath "${self.home-manager-channel}" "${self.nixpkgs-channel}" + myNixPath = aNixPath "${pkgs.home-manager-channel}" "${pkgs.nixpkgs-channel}" buildSystemParams :: [String] buildSystemParams = ["", "-A", "system"] @@ -119,7 +119,7 @@ in { main :: IO () ${code} ''; - get-niv-path = self.writeHaskellScript {name = "get-niv-path";} '' + get-niv-path = pkgs.writeHaskellScript {name = "get-niv-path";} '' main = do [sources, channel] <- fmap toText <$> getArgs path <- getNivPath sources channel