From 53b389327e34de319dc0dbda2b6bcab1a69db69d Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sun, 17 Jan 2016 23:04:40 +0000 Subject: refactor to use autoreconfHook where possible Close #12446. --- pkgs/tools/archivers/runzip/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/tools/archivers/runzip/default.nix b/pkgs/tools/archivers/runzip/default.nix index 9b2fd0eda594..1ed453f0d4f8 100644 --- a/pkgs/tools/archivers/runzip/default.nix +++ b/pkgs/tools/archivers/runzip/default.nix @@ -1,21 +1,20 @@ -{stdenv, fetchFromGitHub, libzip, autoconf, automake, libtool, m4}: +{ stdenv, fetchFromGitHub, libzip, autoreconfHook }: + stdenv.mkDerivation rec { - baseName = "runzip"; version = "1.4"; - name = "${baseName}-${version}"; - buildInputs = [libzip autoconf automake libtool m4]; + name = "runzip-${version}"; + + buildInputs = [ libzip autoreconfHook ]; + src = fetchFromGitHub { owner = "vlm"; repo = "zip-fix-filename-encoding"; rev = "v${version}"; sha256 = "0l5zbb5hswxczigvyal877j0aiq3fc01j3gv88bvy7ikyvw3lc07"; }; - preConfigure = '' - autoreconf -iv - ''; + meta = { - inherit version; - description = ''A tool to convert filename encoding inside a ZIP archive''; + description = "A tool to convert filename encoding inside a ZIP archive"; license = stdenv.lib.licenses.bsd2 ; maintainers = [stdenv.lib.maintainers.raskin]; platforms = stdenv.lib.platforms.linux; -- cgit 1.4.1