Skip to content

Instantly share code, notes, and snippets.

@kuznero
Last active April 25, 2021 19:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuznero/19675f3c11363e0c5b424005938bc302 to your computer and use it in GitHub Desktop.
Save kuznero/19675f3c11363e0c5b424005938bc302 to your computer and use it in GitHub Desktop.
How to build haskell project in NixOS with stack

In order to upgrade Haskell stack tool on NixOS without enabling nixos-unstable for all packages it is possible to install just one single package from unstable channel like following:

nix-env -f https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -iA stack

If it happens that it is still older version, try unstable-small channel instead which gets updated more often:

nix-env -f https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable-small.tar.gz -iA stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment