default.nix 385 Bytes
Newer Older
Rommel MARTINEZ's avatar
Rommel MARTINEZ committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
{ system ? builtins.currentSystem, pkgs ? import <nixpkgs> {} }:

with pkgs;

stdenv.mkDerivation {
  name = "shell";

  buildInputs = [
    rlwrap
    gnumake
    readline
    python27Packages.python
    python27Packages.lxml
  ];

  shellHook = ''
    export PS1="\[\033[1;32m\][\u \h \w]\n>\[\033[0m\] "
    function rl () { rlwrap -s 1000000 -c -b "(){}[].,=&^%0\;|" $@; }
  '';
}