2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, zip, gettext, perl
|
2020-11-12 09:05:59 +00:00
|
|
|
, wxGTK30, libXext, libXi, libXt, libXtst, xercesc
|
2020-04-24 23:36:52 +00:00
|
|
|
, qrencode, libuuid, libyubikey, yubikey-personalization
|
|
|
|
, curl, openssl, file
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pwsafe";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "3.55.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-+Vfwz8xGmSzFNdiN5XYkRqGmFuBVIgexXdH3B+XYY3o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
cmake gettext perl pkg-config zip
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
libXext libXi libXt libXtst wxGTK30
|
2020-04-24 23:36:52 +00:00
|
|
|
curl qrencode libuuid openssl xercesc
|
|
|
|
libyubikey yubikey-personalization
|
|
|
|
file
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DNO_GTEST=ON"
|
|
|
|
"-DCMAKE_CXX_FLAGS=-I${yubikey-personalization}/include/ykpers-1"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A password database utility";
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "https://pwsafe.org/";
|
|
|
|
maintainers = with maintainers; [ c0bw3b pjones ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.artistic2;
|
|
|
|
};
|
|
|
|
}
|