@@ -1,15 +1,17 @@
1−{ stdenv, fetchurl, git, gnupg, makeQtWrapper, pass, qtbase, qtsvg, qttools, qmakeHook }:
1+{ stdenv, fetchzip, git, gnupg, makeQtWrapper, pass, qtbase, qtsvg, qttools, qmakeHook }:
22
33stdenv.mkDerivation rec {
44 name = "qtpass-${version}";
5− version = "1.1.0";
5+ version = "1.1.1";
66
7− src = fetchurl {
7+ src = fetchzip {
88 url = "https://github.com/IJHack/qtpass/archive/v${version}.tar.gz";
9− sha256 = "60b458062f54184057e55dbd9c93958a8bf845244ffd70b9cb31bf58697f0dc6";
9+ sha256 = "1x1ic9as0a60gz664sf8d1qiq64ji7q60g19x0rlm3bvcp2612c8";
1010 };
1111
12− buildInputs = [ git gnupg makeQtWrapper pass qtbase qtsvg qttools qmakeHook ];
12+ buildInputs = [ git gnupg pass qtbase qtsvg qttools ];
13+
14+ nativeBuildInputs = [ makeQtWrapper qmakeHook ];
1315
1416 preConfigure = ''
1517 qmakeFlags="$qmakeFlags CONFIG+=release DESTDIR=$out"
@@ -18,9 +20,12 @@ stdenv.mkDerivation rec {
1820 installPhase = ''
1921 mkdir $out/bin
2022 mv $out/qtpass $out/bin
23+ install -D {,$out/share/applications/}qtpass.desktop
24+ install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
25+ runHook postInstall
2126 '';
2227
23− postFixup = ''
28+ postInstall = ''
2429 wrapQtProgram $out/bin/qtpass \
2530 --suffix PATH : ${git}/bin \
2631 --suffix PATH : ${gnupg}/bin \
@@ -29,7 +34,7 @@ stdenv.mkDerivation rec {
2934
3035 meta = with stdenv.lib; {
3136 description = "A multi-platform GUI for pass, the standard unix password manager";
32− homepage = https://github.com/IJHack/qtpass;
37+ homepage = https://qtpass.org;
3338 license = licenses.gpl3;
3439 maintainers = [ maintainers.hrdinka ];
3540 platforms = platforms.all;