Skip to content

Commit

Permalink
fix exports of lib/deps/api.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Aug 3, 2023
1 parent 33f8c50 commit 1564ed3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/deps/api.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
self,
super,
}:
with builtins;
with pkgs.lib;
let
inherit (pkgs.lib) flip;

modifiers = import ./modifiers.nix { inherit pkgs; };
spec = import ./spec.nix { inherit (pkgs) lib; };
c2n = import ./cabal2nix.nix { inherit pkgs; };

inherit (spec) transform transform_ decl drv;
inherit (spec) transform transform_ transformDrv drv;
hl = pkgs.haskell.lib;

transformers = {
Expand All @@ -34,13 +34,14 @@ let

reset = drv null;

noHpack = option "cabal2nix" "Cabal2nix option --no-hpack" "--no-hpack";
noHpack = spec.option "cabal2nix" "Cabal2nix option --no-hpack" "--no-hpack";

cabalOverrides = option "cabal2nix-overrides" "Cabal2nix overrides";
cabalOverrides = spec.option "cabal2nix-overrides" "Cabal2nix overrides";

in transformers // {
inherit (c2n) hackage source;
inherit self super pkgs reset transform transform_ transformDrv option noHpack cabalOverrides drv;
inherit self super pkgs reset transform transform_ transformDrv noHpack cabalOverrides drv;
inherit (spec) option;
hsLib = hl;
inherit (pkgs) system lib;
ghcName = self.ghc.name;
Expand Down

0 comments on commit 1564ed3

Please sign in to comment.