summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdson Cicilioti <eu@adsonagencia.com>2021-12-07 21:39:55 -0300
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-12-08 02:39:07 +0000
commit1b97c07a86121a57490c933f52d60c78476c04f0 (patch)
treef9be44bd769d3eeedd927ec956d32d92d29115d8
parentbibata-cursors: 0.4.2 -> 1.1.2 (diff)
downloadnixpkgs-1b97c07a86121a57490c933f52d60c78476c04f0.tar.gz
bibata-extra-cursors: 0.3 -> 1.0.1
(cherry picked from commit 408ecd60d43ad0985a65e7b0c3ec6d2e5d18ab1a)
-rw-r--r--pkgs/data/icons/bibata-cursors/extra.nix59
1 files changed, 31 insertions, 28 deletions
diff --git a/pkgs/data/icons/bibata-cursors/extra.nix b/pkgs/data/icons/bibata-cursors/extra.nix
index f59b12ec76a9..a6fdaca84277 100644
--- a/pkgs/data/icons/bibata-cursors/extra.nix
+++ b/pkgs/data/icons/bibata-cursors/extra.nix
@@ -1,51 +1,54 @@
-{ lib, stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen, python3 }:
+{ lib
+, stdenv
+, fetchFromGitHub
+, fetchurl
+, clickgen
+, unzip
+}:
-let
- py = python3.withPackages(ps: [ ps.pillow ]);
-in stdenvNoCC.mkDerivation rec {
+stdenv.mkDerivation rec {
pname = "bibata-extra-cursors";
- version = "0.3";
+ version = "1.0.1";
src = fetchFromGitHub {
- owner = "KaizIqbal";
+ owner = "ful1e5";
repo = "Bibata_Extra_Cursor";
rev = "v${version}";
- sha256 = "1bh945hvakbh985jkr6g6x0myw3k49pvn24m1clvqdv35v65nfxk";
+ sha256 = "0wndl4c547k99y0gq922hn7z1mwdgxvvyjfm6757g6shfbcmkz7m";
};
- postPatch = ''
- patchShebangs .
- substituteInPlace build.sh --replace "sudo" ""
+ bitmaps = fetchurl {
+ url = "https://github.com/ful1e5/Bibata_Extra_Cursor/releases/download/v${version}/bitmaps.zip";
+ sha256 = "0vf14ln53wigaq3dkqdk5avarqplsq751nlv72da04ms6gqjfhdl";
+ };
- # Don't generate windows cursors,
- # they aren't used and aren't installed
- # by the project's install script anyway.
- echo "exit 0" > w32-make.sh
- '';
+ nativeBuildInputs = [ unzip ];
- nativeBuildInputs = [
- gnome-themes-extra
- inkscape
- xcursorgen
- py
- ];
+ buildInputs = [ clickgen ];
buildPhase = ''
- HOME="$NIX_BUILD_ROOT" ./build.sh
+ mkdir bitmaps
+ unzip $bitmaps -d bitmaps
+ rm -rf themes
+ cd builder && make build_unix
'';
installPhase = ''
install -dm 0755 $out/share/icons
- for x in Bibata_*; do
- cp -pr $x/out/X11/$x $out/share/icons/
- done
+ cd ../
+ cp -rf themes/* $out/share/icons/
+ '';
+
+ postPatch = ''
+ substituteInPlace "builder/Makefile" \
+ --replace "/bin/bash" "bash"
'';
meta = with lib; {
- description = "Cursors Based on Bibata";
- homepage = "https://github.com/KaizIqbal/Bibata_Extra_Cursor";
+ description = "Material Based Cursor Theme";
+ homepage = "https://github.com/ful1e5/Bibata_Extra_Cursor";
license = licenses.gpl3;
platforms = platforms.linux;
- maintainers = with maintainers; [ dtzWill ];
+ maintainers = with maintainers; [ dtzWill AdsonCicilioti ];
};
}