capitaine-cursors: 3 -> 4

This commit is contained in:
dawidsowa 2020-03-08 20:21:28 +01:00
parent aca5d04f3e
commit 14c9441a28

View File

@ -1,15 +1,15 @@
{ stdenv, fetchFromGitHub { stdenv, fetchFromGitHub
, inkscape, xcursorgen }: , inkscape, xcursorgen, bc }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "capitaine-cursors"; pname = "capitaine-cursors";
version = "3"; version = "4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "keeferrourke"; owner = "keeferrourke";
repo = pname; repo = pname;
rev = "r${version}"; rev = "r${version}";
sha256 = "0pnfbmrn9nv8pryv6cbjcq5hl9366hzvz1kd8vsdkgb2nlfv5gdv"; sha256 = "0652ydy73x29z7wc6ccyqihmfg4bk0ksl7yryycln6c7i0iqfmc9";
}; };
postPatch = '' postPatch = ''
@ -19,24 +19,27 @@ stdenv.mkDerivation rec {
buildInputs =[ buildInputs =[
inkscape inkscape
xcursorgen xcursorgen
bc
]; ];
buildPhase = '' buildPhase = ''
for variant in dark light ; do
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16 # 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 = '' installPhase = ''
install -dm 0755 $out/share/icons install -dm 0755 $out/share/icons
cp -pr dist $out/share/icons/capitaine-cursors cp -pr dist/dark $out/share/icons/capitaine-cursors
cp -pr dist-white $out/share/icons/capitaine-cursors-white cp -pr dist/light $out/share/icons/capitaine-cursors-white
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = '' description = ''
An x-cursor theme inspired by macOS and based on KDE Breeze 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; license = licenses.lgpl3;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ maintainers = with maintainers; [