about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix')
-rw-r--r--nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix b/nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix
new file mode 100644
index 000000000000..d4a15a105cd3
--- /dev/null
+++ b/nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, pkgconfig, gdk_pixbuf, optipng, librsvg, gtk3, hicolor-icon-theme }:
+
+stdenv.mkDerivation rec {
+  name = "elementary-xfce-icon-theme-${version}";
+  version = "0.13.1";
+
+  src = fetchFromGitHub {
+    owner = "shimmerproject";
+    repo = "elementary-xfce";
+    rev = "v${version}";
+    sha256 = "16msdrazhbv80cvh5ffvgj13xmkpf87r7mq6xz071fza6nv7g0jn";
+  };
+
+  nativeBuildInputs = [ pkgconfig gdk_pixbuf librsvg optipng gtk3 hicolor-icon-theme ];
+
+  postPatch = ''
+    substituteInPlace svgtopng/Makefile --replace "-O0" "-O"
+  '';
+
+  postInstall = ''
+    make icon-caches
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Elementary icons for Xfce and other GTK+ desktops like GNOME";
+    homepage = https://github.com/shimmerproject/elementary-xfce;
+    license = licenses.gpl2;
+    # darwin cannot deal with file names differing only in case
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ davidak ];
+  };
+}