From 6c0032f7d4c475764cd52d86effe17549494b6ff Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Wed, 6 Oct 2004 13:17:06 +0000 Subject: [PATCH] emacs, vim, nano ... Nix is af. svn path=/nixpkgs/trunk/; revision=1545 --- pkgs/applications/editors/nano/builder.sh | 4 ++++ pkgs/applications/editors/nano/default.nix | 13 +++++++++++++ pkgs/system/all-packages-generic.nix | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 pkgs/applications/editors/nano/builder.sh create mode 100644 pkgs/applications/editors/nano/default.nix diff --git a/pkgs/applications/editors/nano/builder.sh b/pkgs/applications/editors/nano/builder.sh new file mode 100644 index 000000000000..4e2b8c15b247 --- /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 000000000000..da63babb60ee --- /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 d3fc84c2d00b..c1b141dff1fc 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; };