parent
c429b2b389
commit
5eb7ca4e5d
@ -1,25 +1,31 @@
|
|||||||
{ stdenv, fetchFromGitHub, wxGTK, libuuid, xercesc, zip , libXt, libXtst
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, zip, gettext, perl
|
||||||
, libXi, xextproto, gettext, perl, pkgconfig, libyubikey, yubikey-personalization
|
, wxGTK31, libXi, libXt, libXtst, xercesc, xextproto
|
||||||
|
, libqrencode, libuuid, libyubikey, yubikey-personalization
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pwsafe-${version}";
|
pname = "pwsafe";
|
||||||
version = "0.99";
|
version = "1.06";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pwsafe";
|
owner = "${pname}";
|
||||||
repo = "pwsafe";
|
repo = "${pname}";
|
||||||
rev = "${version}BETA";
|
rev = "${version}BETA";
|
||||||
sha256 = "1bkimz4g9v9kfjkqr3dqddh4jps7anzc1hgmirmmhwpac0xdp60g";
|
sha256 = "1q3xi7i4r3nmz3hc79lx8l15sr1nqhwbi3lrnfqr356nv6aaf03y";
|
||||||
};
|
};
|
||||||
|
|
||||||
makefile = "Makefile.linux";
|
nativeBuildInputs = [ cmake pkgconfig zip ];
|
||||||
makeFlags = "YBPERS_LIBPATH=${yubikey-personalization}/lib";
|
buildInputs = [
|
||||||
|
gettext perl libqrencode libuuid
|
||||||
buildFlags = "unicoderelease";
|
libXi libXt libXtst wxGTK31 xercesc xextproto
|
||||||
buildInputs = [ wxGTK libuuid gettext perl zip
|
libyubikey yubikey-personalization
|
||||||
xercesc libXt libXtst libXi xextproto
|
];
|
||||||
pkgconfig libyubikey yubikey-personalization ];
|
cmakeFlags = [
|
||||||
|
"-DNO_GTEST=ON"
|
||||||
|
"-DCMAKE_CXX_FLAGS=-I${yubikey-personalization}/include/ykpers-1"
|
||||||
|
];
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Fix perl scripts used during the build.
|
# Fix perl scripts used during the build.
|
||||||
@ -40,31 +46,7 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
mkdir -p $out/bin \
|
|
||||||
$out/share/applications \
|
|
||||||
$out/share/pwsafe/xml \
|
|
||||||
$out/share/icons/hicolor/48x48/apps \
|
|
||||||
$out/share/doc/passwordsafe/help \
|
|
||||||
$out/share/man/man1 \
|
|
||||||
$out/share/locale
|
|
||||||
|
|
||||||
(cd help && make -f Makefile.linux)
|
|
||||||
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/
|
|
||||||
# */
|
|
||||||
|
|
||||||
cp README.txt docs/ReleaseNotes.txt docs/ChangeLog.txt \
|
|
||||||
LICENSE install/copyright $out/share/doc/passwordsafe
|
|
||||||
|
|
||||||
cp src/ui/wxWidgets/GCCUnicodeRelease/pwsafe $out/bin/
|
|
||||||
cp install/graphics/pwsafe.png $out/share/icons/hicolor/48x48/apps
|
|
||||||
cp docs/pwsafe.1 $out/share/man/man1
|
|
||||||
cp xml/* $out/share/pwsafe/xml
|
|
||||||
# */
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A password database utility";
|
description = "A password database utility";
|
||||||
@ -77,8 +59,8 @@ stdenv.mkDerivation rec {
|
|||||||
username/password combinations that you use.
|
username/password combinations that you use.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
homepage = http://passwordsafe.sourceforge.net/;
|
homepage = https://pwsafe.org/;
|
||||||
maintainers = with maintainers; [ pjones ];
|
maintainers = with maintainers; [ c0bw3b pjones ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.artistic2;
|
license = licenses.artistic2;
|
||||||
};
|
};
|
||||||
|
@ -4327,9 +4327,7 @@ with pkgs;
|
|||||||
|
|
||||||
pulsemixer = callPackage ../tools/audio/pulsemixer { };
|
pulsemixer = callPackage ../tools/audio/pulsemixer { };
|
||||||
|
|
||||||
pwsafe = callPackage ../applications/misc/pwsafe {
|
pwsafe = callPackage ../applications/misc/pwsafe { };
|
||||||
wxGTK = wxGTK30;
|
|
||||||
};
|
|
||||||
|
|
||||||
niff = callPackage ../tools/package-management/niff { };
|
niff = callPackage ../tools/package-management/niff { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user