about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-25T16·13+0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-25T16·13+0200
commit40daf0d800d6a248a57bae0fff8c3989d4814840 (patch)
treec1e0da0cd5bd87225875cb459b2a702a65c72ceb /README.md
parentfee93541a441b35cb62b11dd1c2c787a5df63b15 (diff)
Cleanup in preparation of merging nix-repl repo into nix repo
Diffstat (limited to 'README.md')
-rw-r--r--README.md108
1 files changed, 0 insertions, 108 deletions
diff --git a/README.md b/README.md
deleted file mode 100644
index ac5ad98cf53c..000000000000
--- a/README.md
+++ /dev/null
@@ -1,108 +0,0 @@
-nix-repl
-========
-
-`nix-repl` is a simple read–eval–print loop (REPL) for the Nix package
-manager.
-
-Installation
-------------
-
-Assuming you have Nix installed, just do
-
-    $ git clone https://github.com/edolstra/nix-repl.git
-    $ cd nix-repl
-    $ nix-env -f . -i nix-repl
-
-Example
--------
-
-Here is a typical `nix-repl` session:
-
-    $ nix-repl
-    Welcome to Nix version 1.6pre3215_2c1ecf8. Type :? for help.
-
-    nix-repl> 3 * 4
-    12
-
-    nix-repl> :l <nixpkgs>
-    Added 3337 variables.
-
-    nix-repl> lib.range 1 5
-    [ 1 2 3 4 5 ]
-
-    nix-repl> :a lib
-    Added 299 variables.
-
-    nix-repl> range 1 5
-    [ 1 2 3 4 5 ]
-
-    nix-repl> xs = range 1 5
-
-    nix-repl> map (x: x * x) xs
-    [ 1 4 9 16 25 ]
-
-    nix-repl> :l <nixpkgs/nixos>
-    Added 7 variables.
-
-    nix-repl> config.services.dhcpd
-    { configFile = null; enable = false; extraConfig = ""; interfaces = [ ... ]; machines = [ ... ]; }
-
-    nix-repl> :p config.services.dhcpd
-    { configFile = null; enable = false; extraConfig = ""; interfaces = [ "eth0" ]; machines = [ ]; }
-
-    nix-repl> config.fileSystems
-    { "/" = { ... }; "/boot" = { ... }; }
-
-    nix-repl> mapAttrsToList (n: v: v.device) config.fileSystems
-    [ "/dev/disk/by-label/nixos" "/dev/disk/by-label/boot" ]
-
-    nix-repl> :b libjson
-    these derivations will be built:
-      /nix/store/h910xqb36pysxcxkayb1zkr1zcvvk1zy-libjson_7.6.1.zip.drv
-      /nix/store/iv0rdx08di0fg704zyxklkvdz6i96lm8-libjson-7.6.1.drv
-    ...
-    this derivation produced the following outputs:
-      out -> /nix/store/ys6bvgfia81rjwqxjlgkwnx6jhsml8h9-libjson-7.6.1
-
-    nix-repl> :t makeFontsConf
-    a function
-
-    nix-repl> :b makeFontsConf { fontDirectories = [ "${freefont_ttf}/share/fonts/truetype" ]; }
-    ...
-    this derivation produced the following outputs:
-      out -> /nix/store/jkw848xj0gkbhmvxi0hwpnhzn2716v3c-fonts.conf
-
-    nix-repl> :s pan
-    # Builds dependencies of the ‘pan’ derivation, then starts a shell
-    # in which the environment variables of the derivation are set
-
-    [nix-shell:/tmp/nix-repl]$ echo $src
-    /nix/store/0ibx15r02nnkwiclmfbpzrzjm2y204fh-pan-0.139.tar.bz2
-
-    [nix-shell:/tmp/nix-repl]$ exit
-
-    nix-repl>
-
-Tab completion works on variables in scope and on attribute sets.  For
-example:
-
-    $ nix-repl  '<nixpkgs>' '<nixpkgs/nixos>'
-    Welcome to Nix version 1.6pre3215_2c1ecf8. Type :? for help.
-
-    nix-repl> thunder<TAB> => thunderbird
-
-    nix-repl> <TAB>
-    Display all 3634 possibilities? (y or n)
-
-    nix-repl> lib<TAB>
-    Display all 291 possibilities? (y or n)
-
-    nix-repl> xorg.libX<TAB>
-    xorg.libXdamage  xorg.libXdmcp
-
-    nix-repl> config.networking.use<TAB>
-    config.networking.useDHCP   config.networking.usePredictableInterfaceNames
-
-Input history is preserved by readline in ~/.nix-repl-history
-The readline "application name" is nix-repl. This allows for nix-repl specific
-settings in ~/.inputrc