2018-10-12 17:04:09 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, zip, gettext, perl
|
|
|
|
, wxGTK31, libXi, libXt, libXtst, xercesc, xextproto
|
2019-01-01 16:19:07 +00:00
|
|
|
, qrencode, libuuid, libyubikey, yubikey-personalization
|
2015-01-22 22:46:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-12 17:04:09 +00:00
|
|
|
pname = "pwsafe";
|
|
|
|
version = "1.06";
|
|
|
|
name = "${pname}-${version}";
|
2015-01-22 22:46:40 +00:00
|
|
|
|
2016-07-23 04:37:10 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-10-12 17:04:09 +00:00
|
|
|
owner = "${pname}";
|
|
|
|
repo = "${pname}";
|
2016-07-23 04:37:10 +00:00
|
|
|
rev = "${version}BETA";
|
2018-10-12 17:04:09 +00:00
|
|
|
sha256 = "1q3xi7i4r3nmz3hc79lx8l15sr1nqhwbi3lrnfqr356nv6aaf03y";
|
2015-01-22 22:46:40 +00:00
|
|
|
};
|
|
|
|
|
2018-10-12 17:04:09 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig zip ];
|
|
|
|
buildInputs = [
|
2019-01-01 16:19:07 +00:00
|
|
|
gettext perl qrencode libuuid
|
2018-10-12 17:04:09 +00:00
|
|
|
libXi libXt libXtst wxGTK31 xercesc xextproto
|
|
|
|
libyubikey yubikey-personalization
|
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DNO_GTEST=ON"
|
|
|
|
"-DCMAKE_CXX_FLAGS=-I${yubikey-personalization}/include/ykpers-1"
|
|
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
2015-01-22 22:46:40 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Fix perl scripts used during the build.
|
|
|
|
for f in `find . -type f -name '*.pl'`; do
|
|
|
|
patchShebangs $f
|
|
|
|
done
|
|
|
|
|
|
|
|
# Fix hard coded paths.
|
|
|
|
for f in `grep -Rl /usr/share/ src`; do
|
|
|
|
substituteInPlace $f --replace /usr/share/ $out/share/
|
|
|
|
done
|
|
|
|
|
2016-07-23 04:37:10 +00:00
|
|
|
# Fix hard coded zip path.
|
|
|
|
substituteInPlace help/Makefile.linux --replace /usr/bin/zip ${zip}/bin/zip
|
|
|
|
|
2015-01-22 22:46:40 +00:00
|
|
|
for f in `grep -Rl /usr/bin/ .`; do
|
|
|
|
substituteInPlace $f --replace /usr/bin/ ""
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-10-12 17:04:09 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2015-01-22 22:46:40 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 15:05:14 +00:00
|
|
|
description = "A password database utility";
|
2015-01-22 22:46:40 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Password Safe is a password database utility. Like many other
|
|
|
|
such products, commercial and otherwise, it stores your
|
|
|
|
passwords in an encrypted file, allowing you to remember only
|
|
|
|
one password (the "safe combination"), instead of all the
|
|
|
|
username/password combinations that you use.
|
|
|
|
'';
|
|
|
|
|
2018-10-12 17:04:09 +00:00
|
|
|
homepage = https://pwsafe.org/;
|
|
|
|
maintainers = with maintainers; [ c0bw3b pjones ];
|
2015-01-22 22:46:40 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.artistic2;
|
|
|
|
};
|
|
|
|
}
|