foo
This is a dummy package for testing incremental Haskell builds with Nix.
useful commands
nix run github:NixOS/nixpkgs/release-21.11#cabal2nix .
nix run github:NixOS/nixpkgs/release-21.11#cabal2nix -- --no-haddock .
nix build --no-link
nix flake show
nix flake info
nix derivation show
nix derivation show | nix run nixpkgs#jq -- '.[].outputs'
# links
- [flake references](https://zero-to-nix.com/concepts/flakes)
- [Using nixpkgs.legacyPackages.${system} vs import](https://discourse.nixos.org/t/using-nixpkgs-legacypackages-system-vs-import/17462)
- [Haskell section of the Nixpkgs manual](https://nixos.org/manual/nixpkgs/unstable/#haskell). [incremental builds](https://nixos.org/manual/nixpkgs/unstable/#haskell-incremental-builds)
> when you want to override the arguments passed to haskellPackages.mkDerivation. For this, the function overrideCabal from haskell.lib.compose is used