mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
|
fetchurl,
|
||||||
fetchzip,
|
fetchzip,
|
||||||
wrapGAppsHook3,
|
wrapGAppsHook3,
|
||||||
cairo,
|
cairo,
|
||||||
|
copyDesktopItems,
|
||||||
dbus,
|
dbus,
|
||||||
fontconfig,
|
fontconfig,
|
||||||
freetype,
|
freetype,
|
||||||
|
@ -19,12 +21,18 @@
|
||||||
libglvnd,
|
libglvnd,
|
||||||
libuuid,
|
libuuid,
|
||||||
libxcb,
|
libxcb,
|
||||||
|
makeDesktopItem,
|
||||||
harfbuzz,
|
harfbuzz,
|
||||||
libsoup_3,
|
libsoup_3,
|
||||||
webkitgtk_4_1,
|
webkitgtk_4_1,
|
||||||
zenity,
|
zenity,
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
gkIcon = fetchurl {
|
||||||
|
url = "https://gist.githubusercontent.com/qbit/cb52e6cd193c410e0b0aee8a216f6574/raw/2b042bde1dc4cbd30457f14c9d18c889444bf3d0/glamoroustoolkit.svg";
|
||||||
|
sha256 = "sha256-Trfo8P01anLq9yTFzwqIfsyidLGyuZDg48YQPrGBkgs=";
|
||||||
|
};
|
||||||
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "glamoroustoolkit";
|
pname = "glamoroustoolkit";
|
||||||
version = "1.1.24";
|
version = "1.1.24";
|
||||||
|
@ -37,6 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
wrapGAppsHook3
|
wrapGAppsHook3
|
||||||
|
copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
@ -46,10 +55,21 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
|
desktopItems = with finalAttrs; [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = pname;
|
||||||
|
desktopName = "GlamorousToolkit";
|
||||||
|
exec = "GlamorousToolkit";
|
||||||
|
icon = "GlamorousToolkit";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
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 -r $src/bin $src/lib $out/
|
||||||
cp ${./GlamorousToolkit-GetImage} $out/bin/GlamorousToolkit-GetImage
|
cp ${./GlamorousToolkit-GetImage} $out/bin/GlamorousToolkit-GetImage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue