From 509e0a0057bee17dab43efbe4ad1529c381a323b Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Thu, 16 Jan 2020 17:06:29 -0600 Subject: [PATCH 1/2] bibata-cursors: fix installation, don't generate unused w32 artifacts This fixes issue where each theme installed the entire build directory, not just the final generated 'out/X11' files. (which was wasteful but also meant they didn't work as the right files were two directories deeper) Avoiding the w32 saves some time and sapce, and more is "saved" by not shipping non-cursor build intermediates. Sorry for the bad update, folks! --- pkgs/data/icons/bibata-cursors/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/data/icons/bibata-cursors/default.nix b/pkgs/data/icons/bibata-cursors/default.nix index cfe65d80bd84..d2e35136a8be 100644 --- a/pkgs/data/icons/bibata-cursors/default.nix +++ b/pkgs/data/icons/bibata-cursors/default.nix @@ -16,6 +16,11 @@ in stdenvNoCC.mkDerivation rec { postPatch = '' patchShebangs . substituteInPlace build.sh --replace "sudo" "" + + # 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 = [ @@ -31,7 +36,9 @@ in stdenvNoCC.mkDerivation rec { installPhase = '' install -dm 0755 $out/share/icons - cp -pr Bibata_* $out/share/icons/ + for x in Bibata_*; do + cp -pr $x/out/X11/$x $out/share/icons/ + done ''; meta = with stdenvNoCC.lib; { From 2d826681e83392a91c8c05fe6bef36fa5518c8e9 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Thu, 16 Jan 2020 17:23:57 -0600 Subject: [PATCH 2/2] bibata-extra-cursors: unstable-2018-10-28 -> 0.3, sync w/bibata-cursors --- pkgs/data/icons/bibata-cursors/extra.nix | 26 ++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/pkgs/data/icons/bibata-cursors/extra.nix b/pkgs/data/icons/bibata-cursors/extra.nix index dc0ead649744..b9d4c22f878f 100644 --- a/pkgs/data/icons/bibata-cursors/extra.nix +++ b/pkgs/data/icons/bibata-cursors/extra.nix @@ -1,25 +1,33 @@ -{ stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen }: +{ stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen, python3 }: -stdenvNoCC.mkDerivation rec { +let + py = python3.withPackages(ps: [ ps.pillow ]); +in stdenvNoCC.mkDerivation rec { pname = "bibata-extra-cursors"; - version = "unstable-2018-10-28"; - + version = "0.3"; + src = fetchFromGitHub { owner = "KaizIqbal"; repo = "Bibata_Extra_Cursor"; - rev = "66fb64b8dbe830e3f7ba2c2bdc4dacae7c438789"; - sha256 = "1xb7v06sbxbwzd7cnghv9c55lpbbkcaf1nswdrqy87gd0bnpdd2n"; + rev = "v${version}"; + sha256 = "1bh945hvakbh985jkr6g6x0myw3k49pvn24m1clvqdv35v65nfxk"; }; postPatch = '' patchShebangs . - substituteInPlace build.sh --replace "gksu " "" + substituteInPlace build.sh --replace "sudo" "" + + # 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 = [ gnome-themes-extra inkscape xcursorgen + py ]; buildPhase = '' @@ -28,7 +36,9 @@ stdenvNoCC.mkDerivation rec { installPhase = '' install -dm 0755 $out/share/icons - cp -pr Bibata_* $out/share/icons/ + for x in Bibata_*; do + cp -pr $x/out/X11/$x $out/share/icons/ + done ''; meta = with stdenvNoCC.lib; {