diff options
-rw-r--r-- | pkgs/applications/editors/nano/builder.sh | 4 | ||||
-rw-r--r-- | pkgs/applications/editors/nano/default.nix | 13 | ||||
-rw-r--r-- | pkgs/system/all-packages-generic.nix | 4 |
3 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/applications/editors/nano/builder.sh b/pkgs/applications/editors/nano/builder.sh new file mode 100644 index 00000000000..4e2b8c15b24 --- /dev/null +++ b/pkgs/applications/editors/nano/builder.sh @@ -0,0 +1,4 @@ +. $stdenv/setup + +export CFLAGS="$CFLAGS -I$ncurses/include/ncurses" +genericBuild diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix new file mode 100644 index 00000000000..da63babb60e --- /dev/null +++ b/pkgs/applications/editors/nano/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, ncurses}: + +stdenv.mkDerivation { + name = "nano-1.2.4"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.nano-editor.org/dist/v1.2/nano-1.2.4.tar.gz; + md5 = "2c513310ec5e8b63abaecaf48670ac7a"; + }; + + inherit ncurses; + buildInputs = [ncurses]; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index d3fc84c2d00..c1b141dff1f 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -872,6 +872,10 @@ rec { inherit fetchurl stdenv; }; + nano = (import ../applications/editors/nano) { + inherit fetchurl stdenv ncurses; + }; + vim = (import ../applications/editors/vim) { inherit fetchurl stdenv ncurses; }; |