From 70eeaa185f724e535242fa039764a8fa3568de56 Mon Sep 17 00:00:00 2001 From: Elec3137 Date: Sun, 15 Feb 2026 13:33:25 -0800 Subject: [PATCH] fix missing desktop files for mpv and helix --- lib/default.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 6df860f..6610aa3 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -12,17 +12,23 @@ configArg ? "-c ", excecutable ? "${package}/bin/${name}", }: - pkgs.writeShellApplication { + pkgs.symlinkJoin { inherit name; + paths = [ + (pkgs.writeShellApplication { + inherit name; - runtimeInputs = [ package ]; + runtimeInputs = [ package ]; - text = '' - if test -r "${userConfig}"; then - exec -a "$0" "${excecutable}" "$@" - else - exec -a "$0" "${excecutable}" ${configArg}"${globalConfig}" "$@" - fi - ''; + text = '' + if test -r "${userConfig}"; then + exec -a "$0" "${excecutable}" "$@" + else + exec -a "$0" "${excecutable}" ${configArg}"${globalConfig}" "$@" + fi + ''; + }) + package + ]; }; }