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 + ]; +}