Skip to content

Commit

Permalink
add OC for using an arbitrary drv transformer without giving a name
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Jul 29, 2023
1 parent 5193e8f commit c310054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/deps/api.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ let
hl = pkgs.haskell.lib;

transformers = {
transformDrv = transform_ "transform-drv";
jailbreak = transform_ "jailbreak" modifiers.jailbreak;
configure = flag: transform_ "configure" (flip hl.appendConfigureFlag flag);
configures = flags: transform_ "configures" (flip hl.appendConfigureFlags flags);
Expand All @@ -39,7 +40,7 @@ let

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

0 comments on commit c310054

Please sign in to comment.