about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/icons/numix-icon-theme-circle/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/data/icons/numix-icon-theme-circle/default.nix')
-rw-r--r--nixpkgs/pkgs/data/icons/numix-icon-theme-circle/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/icons/numix-icon-theme-circle/default.nix b/nixpkgs/pkgs/data/icons/numix-icon-theme-circle/default.nix
new file mode 100644
index 000000000000..ebda6d4428c1
--- /dev/null
+++ b/nixpkgs/pkgs/data/icons/numix-icon-theme-circle/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme }:
+
+stdenv.mkDerivation rec {
+  version = "18.09.19";
+
+  package-name = "numix-icon-theme-circle";
+
+  name = "${package-name}-${version}";
+
+  src = fetchFromGitHub {
+    owner = "numixproject";
+    repo = package-name;
+    rev = version;
+    sha256 = "1a1ack4kpngnb3c281pssmp3snn2idcn2c5cv3l38a0dl5g5w8nq";
+  };
+
+  nativeBuildInputs = [ gtk3 numix-icon-theme ];
+
+  installPhase = ''
+    install -dm 755 $out/share/icons
+    cp -dr --no-preserve='ownership' Numix-Circle{,-Light} $out/share/icons/
+  '';
+
+  postFixup = ''
+    for theme in $out/share/icons/*; do
+      gtk-update-icon-cache $theme
+    done
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Numix icon theme (circle version)";
+    homepage = https://numixproject.github.io;
+    license = licenses.gpl3;
+    # darwin cannot deal with file names differing only in case
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ jgeerds ];
+  };
+}