From 60d71b8a446906db16b33bc3081507d077d39b6c Mon Sep 17 00:00:00 2001 From: nydragon Date: Mon, 3 Feb 2025 13:30:52 +0100 Subject: [PATCH] feat: update grayjay-desktop with a desktop entry --- flake.nix | 4 +++- pkgs/grayjay-desktop/default.nix | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 pkgs/grayjay-desktop/default.nix diff --git a/flake.nix b/flake.nix index 841b8b7..7533951 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,9 @@ packages = { rustypaste = pkgs.callPackage ./pkgs/rustypaste { }; pineflash = pkgs.callPackage ./pkgs/pineflash { }; - grayjay-desktop = inputs'.quasigod.packages.grayjay-desktop; + grayjay-desktop = pkgs.callPackage ./pkgs/grayjay-desktop { + grayjay-desktop = inputs'.quasigod.packages.grayjay-desktop; + }; }; }; }; diff --git a/pkgs/grayjay-desktop/default.nix b/pkgs/grayjay-desktop/default.nix new file mode 100644 index 0000000..023d478 --- /dev/null +++ b/pkgs/grayjay-desktop/default.nix @@ -0,0 +1,23 @@ +{ + symlinkJoin, + makeDesktopItem, + grayjay-desktop, + lib, + ... +}: +let + name = "Grayjay"; + + desktopEntry = makeDesktopItem { + inherit name; + desktopName = name; + exec = "${lib.getExe grayjay-desktop}"; + }; +in +symlinkJoin { + inherit name; + paths = [ + grayjay-desktop + desktopEntry + ]; +}