qtpass: 1.1.6 -> 1.2.1
This commit is contained in:
parent
4e990c25e3
commit
028068a274
@ -2,32 +2,27 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "qtpass-${version}";
|
name = "qtpass-${version}";
|
||||||
version = "1.1.6";
|
version = "1.2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "IJHack";
|
owner = "IJHack";
|
||||||
repo = "QtPass";
|
repo = "QtPass";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0jq5a1cvqvsjwld0nldl6kmcz9g59hiccmbg98xwji04n8174y7j";
|
sha256 = "0pp38b3fifkfwqcb6vi194ccgb8j3zc8j8jq8ww5ib0wvhldzsg8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ git gnupg pass qtbase qtsvg qttools ];
|
buildInputs = [ git gnupg pass qtbase qtsvg qttools ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper qmake ];
|
nativeBuildInputs = [ makeWrapper qmake ];
|
||||||
|
|
||||||
preConfigure = ''
|
postPatch = ''
|
||||||
qmakeFlags="$qmakeFlags DESTDIR=$out"
|
substituteInPlace qtpass.pro --replace "SUBDIRS += src tests main" "SUBDIRS += src main"
|
||||||
'';
|
substituteInPlace qtpass.pro --replace "main.depends = tests" "main.depends = src"
|
||||||
|
|
||||||
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 = ''
|
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 \
|
wrapProgram $out/bin/qtpass \
|
||||||
--suffix PATH : ${git}/bin \
|
--suffix PATH : ${git}/bin \
|
||||||
--suffix PATH : ${gnupg}/bin \
|
--suffix PATH : ${gnupg}/bin \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user