Sam Stites

Nixing (notes)

July 18, 2018

Reviewing Gabriel439/haskell-nix to prepare myself for a travelling development workflow. Here are some short notes:

  • nix-shell requires an env attribute.
  • build.nix files should return a set.
  • build.nix files, in project0, should specify projects to build in with project0 = pkgs.haskellPackages.callPackage ./default.nix {} elements
    • In the above case, you enter a nix-shell with nix-shell --attr project0.env release2.nix
    • you can default this with a shell.nix of (import ./release2.nix).project0.env