From cf08d94d1887849ee170bc13d87ae3e292a4fb1b Mon Sep 17 00:00:00 2001 From: Kranium Gikos Mendoza Date: Sat, 23 Jul 2016 12:37:10 +0800 Subject: [PATCH] pwsafe: 0.95 -> 0.99 --- pkgs/applications/misc/pwsafe/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/pwsafe/default.nix b/pkgs/applications/misc/pwsafe/default.nix index 3faf127d88db..f65435ba7b23 100644 --- a/pkgs/applications/misc/pwsafe/default.nix +++ b/pkgs/applications/misc/pwsafe/default.nix @@ -1,14 +1,16 @@ -{ stdenv, fetchurl, wxGTK, libuuid, xercesc, zip , libXt, libXtst +{ stdenv, fetchFromGitHub, wxGTK, libuuid, xercesc, zip , libXt, libXtst , libXi, xextproto, gettext, perl, pkgconfig, libyubikey, ykpers }: stdenv.mkDerivation rec { name = "pwsafe-${version}"; - version = "0.95"; + version = "0.99"; - src = fetchurl { - url = "mirror://sourceforge/passwordsafe/pwsafe-${version}BETA-src.tgz"; - sha256 = "f0b081bc358fee97fce20f352e360960d2813989023b837102b90ba6ed787d46"; + src = fetchFromGitHub { + owner = "pwsafe"; + repo = "pwsafe"; + rev = "${version}BETA"; + sha256 = "1bkimz4g9v9kfjkqr3dqddh4jps7anzc1hgmirmmhwpac0xdp60g"; }; makefile = "Makefile.linux"; @@ -30,6 +32,9 @@ stdenv.mkDerivation rec { substituteInPlace $f --replace /usr/share/ $out/share/ done + # Fix hard coded zip path. + substituteInPlace help/Makefile.linux --replace /usr/bin/zip ${zip}/bin/zip + for f in `grep -Rl /usr/bin/ .`; do substituteInPlace $f --replace /usr/bin/ "" done @@ -45,7 +50,7 @@ stdenv.mkDerivation rec { $out/share/locale (cd help && make -f Makefile.linux) - cp help/help.zip $out/share/doc/passwordsafe/help + cp help/help*.zip $out/share/doc/passwordsafe/help (cd src/ui/wxWidgets/I18N && make mos) cp -dr src/ui/wxWidgets/I18N/mos/* $out/share/locale/