mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-17 09:57:27 +03:00
33e8d115f7
- 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 ];
|
|
});
|
|
}
|