Skip to content

Instantly share code, notes, and snippets.

@kuznero
Created September 9, 2017 16:55
Show Gist options
  • Save kuznero/e1f6e53a2ec386a45e579f63b45f53db to your computer and use it in GitHub Desktop.
Save kuznero/e1f6e53a2ec386a45e579f63b45f53db to your computer and use it in GitHub Desktop.
Start nix-shell with specific haskell packages
nix-shell -p "haskell.packages.ghc821.ghcWithPackages (pkgs: with pkgs; [ hakyll pandoc ])"
@sgraf812
Copy link

(I can't believe I google this every time, why is this so hard)

@yaitskov
Copy link

yaitskov commented May 1, 2021

ghc821 is obsolete

 nix-shell -p "haskell.packages.ghc8104.ghcWithPackages (pkgs: with pkgs; [ hakyll pandoc ])"

@Atemu
Copy link

Atemu commented Jun 22, 2021

nix-shell -p "ghc.withPackages (pkgs: with pkgs; [ hakyll pandoc ])"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment