aboutsummaryrefslogtreecommitdiff
path: root/nix.wiki
blob: 915fc6e4b73e62e4b13fbf6ed81f50261d3810c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
= Nix =

- `nix-env -qa` : List all available packages (query, available)
- `nix-env -i hello` : Install package "hello"
- `nix-env -e hello` : Uninstall package
- `nix-shell -p hello` : Drop into a new shell where the selected
  package is installed.
  
{{{
nix-env -f "<nixpkgs>" -qaP -A haskellPackages Cabal
}}}

{{{
nix-env -iA nixpkgs.xmonad
}}}

=== Hackage ===
haskellPackages.<pkg> :: <pkg>

=== ... ===

https://nixos.org/nixpkgs/manual/#how-to-install-a-compiler-with-libraries