mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
ff45ea743f
Closes #16202.
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ stdenv, fetchzip, git, gnupg, makeQtWrapper, pass, qtbase, qtsvg, qttools, qmakeHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qtpass-${version}";
|
|
version = "1.1.3";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/IJHack/qtpass/archive/v${version}.tar.gz";
|
|
sha256 = "114rqvd2jl98c75zmhdwfmp44kxa4v459naiivb4w020d60ziq7l";
|
|
};
|
|
|
|
buildInputs = [ git gnupg pass qtbase qtsvg qttools ];
|
|
|
|
nativeBuildInputs = [ makeQtWrapper qmakeHook ];
|
|
|
|
preConfigure = ''
|
|
qmakeFlags="$qmakeFlags CONFIG+=release DESTDIR=$out"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out/bin
|
|
mv $out/qtpass $out/bin
|
|
install -D {,$out/share/applications/}qtpass.desktop
|
|
install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
|
|
runHook postInstall
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapQtProgram $out/bin/qtpass \
|
|
--suffix PATH : ${git}/bin \
|
|
--suffix PATH : ${gnupg}/bin \
|
|
--suffix PATH : ${pass}/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A multi-platform GUI for pass, the standard unix password manager";
|
|
homepage = https://qtpass.org;
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.hrdinka ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|