git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17195 from womfoo/bump/pwsafe-0.99

pwsafe: fix build and 0.95 -> 0.99

commit06d1723c4e520d84be69a30b36e6d7c909e0fcf3 authorJoachim F <joachifm@users.noreply.github.com> dateSat 23 Jul 2016, 20:42 (10 years ago) parent3b317b1cf08d94
1 file changed+11−6
pkgs/applications/misc/pwsafe/default.nix+11−6
pkgs/applications/misc/pwsafe/default.nix+11−6
@@ -1,14 +1,16 @@
1−{ stdenv, fetchurl, wxGTK, libuuid, xercesc, zip , libXt, libXtst
1+{ stdenv, fetchFromGitHub, wxGTK, libuuid, xercesc, zip , libXt, libXtst
22, libXi, xextproto, gettext, perl, pkgconfig, libyubikey, ykpers
33}:
44
55stdenv.mkDerivation rec {
66 name = "pwsafe-${version}";
7− version = "0.95";
7+ version = "0.99";
88
9− src = fetchurl {
10− url = "mirror://sourceforge/passwordsafe/pwsafe-${version}BETA-src.tgz";
11− sha256 = "f0b081bc358fee97fce20f352e360960d2813989023b837102b90ba6ed787d46";
9+ src = fetchFromGitHub {
10+ owner = "pwsafe";
11+ repo = "pwsafe";
12+ rev = "${version}BETA";
13+ sha256 = "1bkimz4g9v9kfjkqr3dqddh4jps7anzc1hgmirmmhwpac0xdp60g";
1214 };
1315
1416 makefile = "Makefile.linux";
@@ -30,6 +32,9 @@ stdenv.mkDerivation rec {
3032 substituteInPlace $f --replace /usr/share/ $out/share/
3133 done
3234
35+ # Fix hard coded zip path.
36+ substituteInPlace help/Makefile.linux --replace /usr/bin/zip ${zip}/bin/zip
37+
3338 for f in `grep -Rl /usr/bin/ .`; do
3439 substituteInPlace $f --replace /usr/bin/ ""
3540 done
@@ -45,7 +50,7 @@ stdenv.mkDerivation rec {
4550 $out/share/locale
4651
4752 (cd help && make -f Makefile.linux)
48− cp help/help.zip $out/share/doc/passwordsafe/help
53+ cp help/help*.zip $out/share/doc/passwordsafe/help
4954
5055 (cd src/ui/wxWidgets/I18N && make mos)
5156 cp -dr src/ui/wxWidgets/I18N/mos/* $out/share/locale/