From 26f6d80db4abb4641afb7ee4083d5da1e075aa49 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Tue, 29 Aug 2006 23:40:29 +0000 Subject: [PATCH] statically linked nano. For some reason I had to use the --enable-tiny configure flag, so the full blown normal glibc dynamically linked version is a bit less functional now, but it is only intended to be used in rescue mode anyway, since normal people use vi. svn path=/nixpkgs/trunk/; revision=6318 --- pkgs/applications/editors/nano/default.nix | 1 + pkgs/top-level/all-packages.nix | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index da673fd6e5d..ae81546798a 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -7,6 +7,7 @@ stdenv.mkDerivation { md5 = "f2b3efbf1cf356d736740d531b6b22c4"; }; buildInputs = [ncurses]; + configureFlags = "--enable-tiny"; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e5f356f2b6f..7f2ef22f7c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2556,6 +2556,12 @@ rec { inherit fetchurl stdenv ncurses; }; + nanoDiet = (import ../applications/editors/nano) { + inherit fetchurl; + ncurses = ncursesDiet; + stdenv = overrideGCC stdenv dietgcc; + }; + vim = (import ../applications/editors/vim) { inherit fetchurl stdenv ncurses; };