From 41e58b3982533d781f7b2a5b9970dab0d6cb4872 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 3 Jul 2010 08:06:01 +0000 Subject: [PATCH] Add convmv svn path=/nixpkgs/trunk/; revision=22444 --- pkgs/tools/misc/convmv/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/misc/convmv/default.nix diff --git a/pkgs/tools/misc/convmv/default.nix b/pkgs/tools/misc/convmv/default.nix new file mode 100644 index 000000000000..c49e25a4dc57 --- /dev/null +++ b/pkgs/tools/misc/convmv/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, perl }: + +stdenv.mkDerivation rec { + name = "convmv-1.14"; + + src = fetchurl { + url = "http://www.j3e.de/linux/convmv/${name}.tar.gz"; + sha256 = "1vvwrbys5kkfpn6kvn0sj3hls5v03d6gr7j7d5phbj8p9bigb5cn"; + }; + + preBuild='' + makeFlags="PREFIX=$out" + ''; + + patchPhase='' + tar -xf testsuite.tar + patchShebangs . + ''; + + doCheck = true; + checkTarget = "test"; + + buildInputs = [ perl ]; + + meta = with stdenv.lib; { + platforms = platforms.all; + maintainers = [ maintainers.urkud ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a37493c6d675..fa43a42e980b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -555,6 +555,10 @@ let inherit fetchurl stdenv ppl; }; + convmv = import ../tools/misc/convmv { + inherit stdenv fetchurl perl; + }; + coreutils_real = makeOverridable (if stdenv ? isDietLibC then import ../tools/misc/coreutils-5 else import ../tools/misc/coreutils)