fstl: install desktop entry (#489682)

This commit is contained in:
Sandro
2026-02-17 21:54:44 +00:00
committed by GitHub
+12
View File
@@ -4,15 +4,23 @@
fetchFromGitHub,
cmake,
libsForQt5,
xdg-utils,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fstl";
version = "0.11.1";
postPatch = ''
patchShebangs --build xdg/xdg_install.sh
substituteInPlace xdg/fstlapp-fstl.desktop \
--replace-fail 'Exec=fstl' 'Exec=${placeholder "out"}/bin/fstl'
'';
nativeBuildInputs = [
cmake
libsForQt5.wrapQtAppsHook
xdg-utils
];
installPhase = lib.optionalString stdenv.hostPlatform.isDarwin ''
@@ -24,6 +32,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
postInstall = ''
env --chdir ../xdg XDG_DATA_HOME=$out/share ./xdg_install.sh fstl
'';
src = fetchFromGitHub {
owner = "fstl-app";
repo = "fstl";