about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDavid McKay <rawkode@pm.me>2018-12-13 00:21:55 +0000
committerJörg Thalheim <Mic92@users.noreply.github.com>2018-12-13 00:21:55 +0000
commit47f008676fe3b77b9c8edda54db621a0dc16dd8e (patch)
tree2bee053197ed515c3f983a6cc6b41d874915e0ca /pkgs
parentf8d0069dc6ff4956dcf479fa30ca57b5a6af148a (diff)
downloadnixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.tar
nixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.tar.gz
nixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.tar.bz2
nixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.tar.lz
nixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.tar.xz
nixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.tar.zst
nixlib-47f008676fe3b77b9c8edda54db621a0dc16dd8e.zip
bibata-cursors: init at 0.4.1 (#51871)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/data/icons/bibata-cursors/default.nix41
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/data/icons/bibata-cursors/default.nix b/pkgs/data/icons/bibata-cursors/default.nix
new file mode 100644
index 000000000000..ce7bb11522ba
--- /dev/null
+++ b/pkgs/data/icons/bibata-cursors/default.nix
@@ -0,0 +1,41 @@
+{ fetchFromGitHub, gnome-themes-extra, inkscape, stdenv, xcursorgen }:
+
+stdenv.mkDerivation rec {
+  name = "bibata-cursors-${version}";
+  version = "0.4.1";
+
+  src = fetchFromGitHub {
+    owner = "KaizIqbal";
+    repo = "Bibata_Cursor";
+    rev = "v${version}";
+    sha256 = "14gvpjp4gv0m59qr8wls7xs5yjx5llldyzack5kg5cg2mzk2nsml";
+  };
+
+  postPatch = ''
+    patchShebangs .
+    substituteInPlace build.sh --replace "gksu " ""
+  '';
+
+  nativeBuildInputs  = [
+    gnome-themes-extra
+    inkscape
+    xcursorgen
+  ];
+
+  buildPhase = ''
+    HOME="$NIX_BUILD_ROOT" ./build.sh
+  '';
+
+  installPhase = ''
+    install -dm 0755 $out/share/icons
+    cp -pr Bibata_* $out/share/icons/
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Material Based Cursor";
+    homepage = https://github.com/KaizIqbal/Bibata_Cursor;
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ rawkode ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2e09d0204c58..fa28f7170560 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -15281,6 +15281,8 @@ in
 
   bgnet = callPackage ../data/documentation/bgnet { };
 
+  bibata-cursors = callPackage ../data/icons/bibata-cursors { };
+
   brise = callPackage ../data/misc/brise { };
 
   inherit (kdeFrameworks) breeze-icons;