diff options
author | Adson Cicilioti <eu@adsonagencia.com> | 2021-12-07 21:38:38 -0300 |
---|---|---|
committer | Adson Cicilioti <eu@adsonagencia.com> | 2021-12-07 21:38:38 -0300 |
commit | b8fbdc8852549db892853c2fa3a1b7549d35493f (patch) | |
tree | def362f8048d0eb2e87dace80522662667f340da | |
parent | 7e48f4294eb86789d47086e368709d9bb65c1d0b (diff) | |
download | nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.tar nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.tar.gz nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.tar.bz2 nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.tar.lz nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.tar.xz nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.tar.zst nixpkgs-b8fbdc8852549db892853c2fa3a1b7549d35493f.zip |
bibata-cursors: 0.4.2 -> 1.1.2
-rw-r--r-- | pkgs/data/icons/bibata-cursors/default.nix | 61 |
1 files changed, 32 insertions, 29 deletions
diff --git a/pkgs/data/icons/bibata-cursors/default.nix b/pkgs/data/icons/bibata-cursors/default.nix index 04fb6281f25..15905bec3a9 100644 --- a/pkgs/data/icons/bibata-cursors/default.nix +++ b/pkgs/data/icons/bibata-cursors/default.nix @@ -1,51 +1,54 @@ -{ lib, stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen, python3 }: - -let - py = python3.withPackages(ps: [ ps.pillow ]); -in stdenvNoCC.mkDerivation rec { +{ lib +, stdenv +, fetchFromGitHub +, fetchurl +, clickgen +, unzip +}: + +stdenv.mkDerivation rec { pname = "bibata-cursors"; - version = "0.4.2"; + version = "1.1.2"; src = fetchFromGitHub { - owner = "KaizIqbal"; + owner = "ful1e5"; repo = "Bibata_Cursor"; rev = "v${version}"; - sha256 = "1f7i5jkl21fvrr45zpcj40avkc7camjb1ddrrdlaabbplgz5mcgn"; + sha256 = "1q2wdbrmdnr9mwiilm5cc9im3zwbl7yaj1zpy5wwn44ypq3hcngy"; }; - postPatch = '' - patchShebangs . - substituteInPlace build.sh --replace "sudo" "" + bitmaps = fetchurl { + url = "https://github.com/ful1e5/Bibata_Cursor/releases/download/v${version}/bitmaps.zip"; + sha256 = "1pcn6par0f0syyhzpzmqr3c6b9ri4lprkdd2ncwzdas01p2d9v1i"; + }; - # 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 = "Material Based Cursor"; - homepage = "https://github.com/KaizIqbal/Bibata_Cursor"; + description = "Material Based Cursor Theme"; + homepage = "https://github.com/ful1e5/Bibata_Cursor"; license = licenses.gpl3; platforms = platforms.linux; - maintainers = with maintainers; [ rawkode ]; + maintainers = with maintainers; [ rawkode AdsonCicilioti ]; }; } |