From 8c9f87cd0c81e9b26883aadce15007d793844434 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Wed, 23 Jan 2008 09:58:07 +0000 Subject: [PATCH] Added midnight commander package svn path=/nixpkgs/trunk/; revision=10257 --- pkgs/tools/misc/mc/builder.sh | 7 +++++++ pkgs/tools/misc/mc/default.nix | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/tools/misc/mc/builder.sh create mode 100644 pkgs/tools/misc/mc/default.nix diff --git a/pkgs/tools/misc/mc/builder.sh b/pkgs/tools/misc/mc/builder.sh new file mode 100644 index 000000000000..28b5d68b55aa --- /dev/null +++ b/pkgs/tools/misc/mc/builder.sh @@ -0,0 +1,7 @@ +source $stdenv/setup + +tar xfvz $src +cd mc-* +./configure --prefix=$out --with-screen=ncurses +make +make install diff --git a/pkgs/tools/misc/mc/default.nix b/pkgs/tools/misc/mc/default.nix new file mode 100644 index 000000000000..9400cbbf4436 --- /dev/null +++ b/pkgs/tools/misc/mc/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, pkgconfig, glib, ncurses, libX11}: + +stdenv.mkDerivation { + name = "mc-4.6.1"; + src = fetchurl { + url = http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-4.6.1.tar.gz; + md5 = "18b20db6e40480a53bac2870c56fc3c4"; + }; + buildInputs = [pkgconfig glib ncurses libX11]; + builder = ./builder.sh; +}