mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
9 lines
233 B
Nix
9 lines
233 B
Nix
|
{ cabal-install }:
|
||
|
|
||
|
{
|
||
|
# Add cabal as a buildInput for a haskell derivation. Useful for nix-shell.
|
||
|
addCabalInstall = drv: drv.overrideAttrs (oldAttrs: {
|
||
|
buildInputs = (oldAttrs.buildInputs or []) ++ [ cabal-install ];
|
||
|
});
|
||
|
}
|