on e94de40 help sign in
haskell.nix/test/util.nix
8 lines 233 B history raw
1{ cabal-install }:
3{
4 # Add cabal as a buildInput for a haskell derivation. Useful for nix-shell.
5 addCabalInstall = drv: drv.overrideAttrs (oldAttrs: {
6 buildInputs = (oldAttrs.buildInputs or []) ++ [ cabal-install ];
7 });
8}