2018-07-31 22:47:31 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
2020-03-08 19:21:28 +00:00
|
|
|
, inkscape, xcursorgen, bc }:
|
2018-07-31 22:47:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-11 00:24:39 +00:00
|
|
|
pname = "capitaine-cursors";
|
2020-03-08 19:21:28 +00:00
|
|
|
version = "4";
|
2018-07-31 22:47:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keeferrourke";
|
2019-03-11 00:24:39 +00:00
|
|
|
repo = pname;
|
2018-07-31 22:47:31 +01:00
|
|
|
rev = "r${version}";
|
2020-03-08 19:21:28 +00:00
|
|
|
sha256 = "0652ydy73x29z7wc6ccyqihmfg4bk0ksl7yryycln6c7i0iqfmc9";
|
2018-07-31 22:47:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =[
|
|
|
|
inkscape
|
|
|
|
xcursorgen
|
2020-03-08 19:21:28 +00:00
|
|
|
bc
|
2018-07-31 22:47:31 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2020-03-08 19:21:28 +00:00
|
|
|
for variant in dark light ; do
|
2018-07-31 22:47:31 +01:00
|
|
|
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16
|
2020-03-08 19:21:28 +00:00
|
|
|
HOME="$NIX_BUILD_ROOT" ./build.sh --max-dpi xhd --type $variant
|
|
|
|
done
|
2018-07-31 22:47:31 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 0755 $out/share/icons
|
2020-03-08 19:21:28 +00:00
|
|
|
cp -pr dist/dark $out/share/icons/capitaine-cursors
|
|
|
|
cp -pr dist/light $out/share/icons/capitaine-cursors-white
|
2018-07-31 22:47:31 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
|
|
|
An x-cursor theme inspired by macOS and based on KDE Breeze
|
|
|
|
'';
|
2020-03-08 19:21:28 +00:00
|
|
|
homepage = "https://github.com/keeferrourke/capitaine-cursors";
|
2018-07-31 22:47:31 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
eadwu
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|