qtpass: fix darwin output (#416886)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
qttools,
|
||||
qmake,
|
||||
wrapQtAppsHook,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -42,6 +43,7 @@ stdenv.mkDerivation rec {
|
||||
qmake
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
qmakeFlags = [
|
||||
@@ -60,6 +62,14 @@ stdenv.mkDerivation rec {
|
||||
}"
|
||||
];
|
||||
|
||||
installPhase = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/Applications
|
||||
cp -r main/QtPass.app $out/Applications
|
||||
makeWrapper $out/Applications/QtPass.app/Contents/MacOS/QtPass $out/bin/qtpass
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -D qtpass.desktop -t $out/share/applications
|
||||
install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
|
||||
|
||||
Reference in New Issue
Block a user