mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
- Make the cabal-simple executable depend on the library component -- a better exercise for the merged all component build. - Test building cabal-simple with "cabal new-build" in nix-shell. - Check the contents of components.all.depends for the with-packages test.
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 ];
|
|
});
|
|
}
|