diff options
author | Tomas Antonio Lopez <entropy.overseer@entropic.network> | 2021-06-25 01:37:09 +0900 |
---|---|---|
committer | Tomas Antonio Lopez <entropy.overseer@entropic.network> | 2021-06-25 01:37:09 +0900 |
commit | 810f43cd154b076b1617e410b93525ec9c53e6f1 (patch) | |
tree | 06f3274c73e269d2c86732bb3fc06ed83c3078c5 /pkgs/development/web/protege-distribution | |
parent | c6b756d7deb868c0cb01b1c599039772e03d5801 (diff) |
protege-distribution: auto-generate all icon sizes for theme hicolor
Previous iteration simply copied the upstream 128x128 .ico into the icon search path; use icoFileToHiColorTheme to produce the complete tree, instead.
Diffstat (limited to 'pkgs/development/web/protege-distribution')
-rw-r--r-- | pkgs/development/web/protege-distribution/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/web/protege-distribution/default.nix b/pkgs/development/web/protege-distribution/default.nix index d614c815588d4..8f2a570fd80a2 100644 --- a/pkgs/development/web/protege-distribution/default.nix +++ b/pkgs/development/web/protege-distribution/default.nix @@ -1,4 +1,8 @@ -{ lib, stdenv, fetchurl, unzip, jre8, copyDesktopItems, makeDesktopItem }: +{ lib, stdenv, fetchurl, unzip, jre8 +, copyDesktopItems +, makeDesktopItem +, iconConvTools +}: stdenv.mkDerivation rec { pname = "protege-distribution"; @@ -9,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "092x22wyisdnhccx817mqq15sxqdfc7iz4whr4mbvzrd9di6ipjq"; }; - nativeBuildInputs = [ unzip copyDesktopItems ]; + nativeBuildInputs = [ unzip copyDesktopItems iconConvTools ]; patches = [ # Replace logic for searching the install directory with a static cd into $out @@ -40,8 +44,8 @@ stdenv.mkDerivation rec { # Move launch script into /bin, giving it a recognizable name install -D run.sh $out/bin/run-protege - # Copy icon to where it can be found - install -D app/Protege.ico $out/share/icons/hicolor/128x128/apps/protege.ico + # Generate and copy icons to where they can be found + icoFileToHiColorTheme app/Protege.ico protege $out # Move everything else under protege/ mkdir $out/protege @@ -54,7 +58,7 @@ stdenv.mkDerivation rec { (makeDesktopItem { name = "Protege"; desktopName = "Protege Desktop"; - icon = "protege.ico"; + icon = "protege"; comment = "OWL2 ontology editor"; exec = "run-protege"; }) |