danidiaz / foo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

(manual)


# 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

About

License:Other


Languages

Language:Haskell 78.8%Language:Nix 21.2%