mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
glamoroustoolkit: add .desktop entry (#413913)
This commit is contained in:
commit
12ba6c4325
1 changed files with 22 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchzip,
|
||||
wrapGAppsHook3,
|
||||
cairo,
|
||||
copyDesktopItems,
|
||||
dbus,
|
||||
fontconfig,
|
||||
freetype,
|
||||
|
@ -19,12 +21,18 @@
|
|||
libglvnd,
|
||||
libuuid,
|
||||
libxcb,
|
||||
makeDesktopItem,
|
||||
harfbuzz,
|
||||
libsoup_3,
|
||||
webkitgtk_4_1,
|
||||
zenity,
|
||||
}:
|
||||
|
||||
let
|
||||
gkIcon = fetchurl {
|
||||
url = "https://gist.githubusercontent.com/qbit/cb52e6cd193c410e0b0aee8a216f6574/raw/2b042bde1dc4cbd30457f14c9d18c889444bf3d0/glamoroustoolkit.svg";
|
||||
sha256 = "sha256-Trfo8P01anLq9yTFzwqIfsyidLGyuZDg48YQPrGBkgs=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "glamoroustoolkit";
|
||||
version = "1.1.24";
|
||||
|
@ -37,6 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook3
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
@ -46,10 +55,21 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
dontPatchELF = true;
|
||||
dontStrip = true;
|
||||
|
||||
desktopItems = with finalAttrs; [
|
||||
(makeDesktopItem {
|
||||
name = pname;
|
||||
desktopName = "GlamorousToolkit";
|
||||
exec = "GlamorousToolkit";
|
||||
icon = "GlamorousToolkit";
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -d $out/bin $out/lib
|
||||
install -d $out/bin $out/lib $out/share/icons/hicolor/scalable/apps
|
||||
|
||||
cp ${gkIcon} $out/share/icons/hicolor/scalable/apps/GlamorousToolkit.svg
|
||||
cp -r $src/bin $src/lib $out/
|
||||
cp ${./GlamorousToolkit-GetImage} $out/bin/GlamorousToolkit-GetImage
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue