Merge pull request #93917 from zaninime/openzone

This commit is contained in:
Sandro 2021-01-11 01:38:00 +01:00 committed by GitHub
commit c9234f3a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, icon-slicer, xcursorgen }:
stdenv.mkDerivation rec {
pname = "openzone-cursors";
version = "1.2.9";
src = fetchFromGitHub {
owner = "ducakar";
repo = pname;
rev = "v${version}";
sha256 = "02c536mc17ccsrzgma366k3wlm02ivklvr30fafxl981zgghlii4";
};
nativeBuildInputs = [ icon-slicer xcursorgen ];
makeFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; {
description = "Clean and sharp X11/Wayland cursor theme";
homepage = "https://www.gnome-look.org/p/999999/";
license = licenses.mit;
maintainers = with maintainers; [ zaninime ];
platforms = platforms.linux;
};
}

View file

@ -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;
};
}

View file

@ -2374,6 +2374,8 @@ in
inchi = callPackage ../development/libraries/inchi {};
icon-slicer = callPackage ../tools/X11/icon-slicer { };
ifm = callPackage ../tools/graphics/ifm {};
ink = callPackage ../tools/misc/ink { };
@ -20264,6 +20266,8 @@ in
open-sans = callPackage ../data/fonts/open-sans { };
openzone-cursors = callPackage ../data/themes/openzone { };
orbitron = callPackage ../data/fonts/orbitron { };
orion = callPackage ../data/themes/orion {};