mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
5eb7ca4e5d
pwsafe: add c0bw3b as maintainer
68 lines
1.9 KiB
Nix
68 lines
1.9 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, zip, gettext, perl
|
|
, wxGTK31, libXi, libXt, libXtst, xercesc, xextproto
|
|
, libqrencode, libuuid, libyubikey, yubikey-personalization
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pwsafe";
|
|
version = "1.06";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "${pname}";
|
|
repo = "${pname}";
|
|
rev = "${version}BETA";
|
|
sha256 = "1q3xi7i4r3nmz3hc79lx8l15sr1nqhwbi3lrnfqr356nv6aaf03y";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig zip ];
|
|
buildInputs = [
|
|
gettext perl libqrencode libuuid
|
|
libXi libXt libXtst wxGTK31 xercesc xextproto
|
|
libyubikey yubikey-personalization
|
|
];
|
|
cmakeFlags = [
|
|
"-DNO_GTEST=ON"
|
|
"-DCMAKE_CXX_FLAGS=-I${yubikey-personalization}/include/ykpers-1"
|
|
];
|
|
enableParallelBuilding = true;
|
|
|
|
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=$(out)" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
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;
|
|
};
|
|
}
|