From 3c6b2f7501529603b0e9588e1292208154711eb2 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sat, 10 Aug 2013 02:32:21 +0200 Subject: [PATCH] vifm: update to 0.7.5 and enabling new options --- pkgs/applications/misc/vifm/default.nix | 53 +++++++++---------------- pkgs/top-level/all-packages.nix | 4 +- 2 files changed, 21 insertions(+), 36 deletions(-) diff --git a/pkgs/applications/misc/vifm/default.nix b/pkgs/applications/misc/vifm/default.nix index 6f270f5c7cf2..7230e84601e4 100644 --- a/pkgs/applications/misc/vifm/default.nix +++ b/pkgs/applications/misc/vifm/default.nix @@ -1,48 +1,31 @@ -x@{builderDefsPackage - , ncurses - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ pkgs, fetchurl, stdenv, ncurses, utillinux, file, libX11 }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="vifm"; - version="0.6.3"; - name="${baseName}-${version}"; - url="mirror://sourceforge/project/${baseName}/${baseName}/${name}.tar.bz2"; - hash="1v5kiifjk7iyqrzjd94wn6a5dz4j3krl06pbp1ps9g3zdq2w2skv"; - }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; +let + name = "vifm-${version}"; + version = "0.7.5"; + +in stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url="mirror://sourceforge/project/vifm/vifm/${name}.tar.bz2"; + sha256 ="1r1d92zrff94rfx011dw2qsgdwd2ksqlz15la74d6h7sfcsnyd01"; }; - inherit (sourceInfo) name version; - inherit buildInputs; + #phaseNames = ["doConfigure" "doMakeInstall"]; + buildInputs = [ utillinux ncurses file libX11 ]; - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; - meta = { description = "A vi-like file manager"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; - license = a.lib.licenses.gpl2; + maintainers = with pkgs.lib.maintainers; [ raskin garbas ]; + platforms = pkgs.lib.platforms.linux; + license = pkgs.lib.licenses.gpl2; }; + passthru = { updateInfo = { downloadPage = "http://vifm.sf.net"; }; }; -}) x +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 249be7cb90d4..f13b150bd173 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1830,7 +1830,9 @@ let vfdecrypt = callPackage ../tools/misc/vfdecrypt { }; - vifm = callPackage ../applications/misc/vifm {}; + vifm = callPackage ../applications/misc/vifm { + inherit (xlibs) libX11; + }; viking = callPackage ../applications/misc/viking { inherit (gnome) scrollkeeper;