diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-11 01:38:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 01:38:00 +0100 |
commit | c9234f3a99c12347ca965f69cc5dda0bf7454392 (patch) | |
tree | 06ea2bfa5b88890975db25ff1746dc739af53af1 /pkgs/tools/X11 | |
parent | 39229a3398f30245dee9c7ad2f17ca8703dd41c4 (diff) | |
parent | cf68af0245b2029260e9a4d1cc8707b2aefd3670 (diff) | |
download | nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.tar nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.tar.gz nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.tar.bz2 nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.tar.lz nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.tar.xz nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.tar.zst nixlib-c9234f3a99c12347ca965f69cc5dda0bf7454392.zip |
Merge pull request #93917 from zaninime/openzone
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/icon-slicer/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/X11/icon-slicer/default.nix b/pkgs/tools/X11/icon-slicer/default.nix new file mode 100644 index 000000000000..18d6d468af8c --- /dev/null +++ b/pkgs/tools/X11/icon-slicer/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, pkg-config, gdk-pixbuf, popt }: +stdenv.mkDerivation rec { + pname = "icon-slicer"; + version = "0.3"; + + src = fetchurl { + url = "https://freedesktop.org/software/icon-slicer/releases/icon-slicer-${version}.tar.gz"; + sha256 = "0kdnc08k2rs8llfg7xgvnrsk60x59pv5fqz6kn2ifnn2s1nj3w05"; + }; + + patches = [ + # Fixes hotspot `y` coordinate. The `x` coordinate is used on the y-axis. + (fetchurl { + url = "https://aur.archlinux.org/cgit/aur.git/plain/hotspotfix.patch?h=icon-slicer"; + sha256 = "1l1dc1x5p4hys02arkmq3x6b1xdi510969d25g928zr4gf4an03h"; + }) + ]; + + nativeBuildInputs = [ popt pkg-config ]; + buildInputs = [ gdk-pixbuf ]; + + meta = with stdenv.lib; { + description = "Utility for generating icon themes and libXcursor cursor themes"; + homepage = "https://www.freedesktop.org/wiki/Software/icon-slicer/"; + license = licenses.mit; + maintainers = with maintainers; [ zaninime ]; + platforms = platforms.linux; + }; +} |