aboutsummaryrefslogtreecommitdiff
path: root/nix.wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2018-11-05 00:01:37 +0100
committerHugo Hörnquist <hugo@hornquist.se>2018-11-05 00:01:37 +0100
commit07684b1d9d2132f9ed978e5729fc1d379db129b2 (patch)
tree978fe74c0652a5457bf5e17aab869af443d9cb6a /nix.wiki
parentThu, 01 Nov 2018 00:37:42 +0100 (diff)
downloadwiki-public-07684b1d9d2132f9ed978e5729fc1d379db129b2.tar.gz
wiki-public-07684b1d9d2132f9ed978e5729fc1d379db129b2.tar.xz
Mon, 05 Nov 2018 00:01:37 +0100
Diffstat (limited to 'nix.wiki')
-rw-r--r--nix.wiki22
1 files changed, 22 insertions, 0 deletions
diff --git a/nix.wiki b/nix.wiki
new file mode 100644
index 0000000..915fc6e
--- /dev/null
+++ b/nix.wiki
@@ -0,0 +1,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