about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authordawidsowa <dawid_sowa@posteo.net>2020-03-08 20:21:28 +0100
committerdawidsowa <dawid_sowa@posteo.net>2020-03-08 20:21:28 +0100
commit14c9441a28df2ea5133659e4ba677c9deec73c97 (patch)
tree341728f5c8b71e08fba3c15c7f43dbdd526b4370 /pkgs/data
parentaca5d04f3eba035af237a967d7f573bc3de2ccc7 (diff)
downloadnixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.tar
nixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.tar.gz
nixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.tar.bz2
nixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.tar.lz
nixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.tar.xz
nixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.tar.zst
nixlib-14c9441a28df2ea5133659e4ba677c9deec73c97.zip
capitaine-cursors: 3 -> 4
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/icons/capitaine-cursors/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/data/icons/capitaine-cursors/default.nix b/pkgs/data/icons/capitaine-cursors/default.nix
index 46d6c1a731ec..09491b904ef1 100644
--- a/pkgs/data/icons/capitaine-cursors/default.nix
+++ b/pkgs/data/icons/capitaine-cursors/default.nix
@@ -1,15 +1,15 @@
 { stdenv, fetchFromGitHub
-, inkscape, xcursorgen }:
+, inkscape, xcursorgen, bc }:
 
 stdenv.mkDerivation rec {
   pname = "capitaine-cursors";
-  version = "3";
+  version = "4";
 
   src = fetchFromGitHub {
     owner = "keeferrourke";
     repo = pname;
     rev = "r${version}";
-    sha256 = "0pnfbmrn9nv8pryv6cbjcq5hl9366hzvz1kd8vsdkgb2nlfv5gdv";
+    sha256 = "0652ydy73x29z7wc6ccyqihmfg4bk0ksl7yryycln6c7i0iqfmc9";
   };
 
   postPatch = ''
@@ -19,24 +19,27 @@ stdenv.mkDerivation rec {
   buildInputs  =[
     inkscape
     xcursorgen
+    bc
   ];
 
   buildPhase = ''
+    for variant in dark light ; do
     # https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16
-    HOME="$NIX_BUILD_ROOT" ./build.sh
+      HOME="$NIX_BUILD_ROOT" ./build.sh --max-dpi xhd --type $variant
+    done
   '';
 
   installPhase = ''
     install -dm 0755 $out/share/icons
-    cp -pr dist $out/share/icons/capitaine-cursors
-    cp -pr dist-white $out/share/icons/capitaine-cursors-white
+    cp -pr dist/dark $out/share/icons/capitaine-cursors
+    cp -pr dist/light $out/share/icons/capitaine-cursors-white
   '';
 
   meta = with stdenv.lib; {
     description = ''
       An x-cursor theme inspired by macOS and based on KDE Breeze
     '';
-    homepage = https://github.com/keeferrourke/capitaine-cursors;
+    homepage = "https://github.com/keeferrourke/capitaine-cursors";
     license = licenses.lgpl3;
     platforms = platforms.linux;
     maintainers = with maintainers; [