diff options
author | Will Dietz <w@wdtz.org> | 2020-01-16 17:06:29 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2020-01-16 17:32:59 -0600 |
commit | 509e0a0057bee17dab43efbe4ad1529c381a323b (patch) | |
tree | 51c65a8f373791e22874871381a4aa1a0cdfcef1 | |
parent | 9f267be72c203b77e57a56fa8b8b7c409dbc174a (diff) | |
download | nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.tar nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.tar.gz nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.tar.bz2 nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.tar.lz nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.tar.xz nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.tar.zst nixpkgs-509e0a0057bee17dab43efbe4ad1529c381a323b.zip |
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!
-rw-r--r-- | pkgs/data/icons/bibata-cursors/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/data/icons/bibata-cursors/default.nix b/pkgs/data/icons/bibata-cursors/default.nix index cfe65d80bd8..d2e35136a8b 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; { |