qtpass: use qt5's mkDerivation

See #65399
This commit is contained in:
Chris Rendle-Short 2019-08-08 20:15:50 +10:00
parent 83fdb5f748
commit da346db5de

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, git, gnupg, pass, qtbase, qtsvg, qttools, qmake, makeWrapper }:
{ stdenv, mkDerivation, fetchFromGitHub, git, gnupg, pass, qtbase, qtsvg, qttools, qmake, makeWrapper }:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "qtpass";
version = "1.2.3";
@ -17,13 +17,15 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
qtWrapperArgs = [
"--suffix PATH : ${git}/bin"
"--suffix PATH : ${gnupg}/bin"
"--suffix PATH : ${pass}/bin"
];
postInstall = ''
install -D qtpass.desktop $out/share/applications/qtpass.desktop
install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
wrapProgram $out/bin/qtpass \
--suffix PATH : ${git}/bin \
--suffix PATH : ${gnupg}/bin \
--suffix PATH : ${pass}/bin
'';
meta = with stdenv.lib; {