2018-07-31 22:47:31 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, inkscape, xcursorgen }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-11 00:24:39 +00:00
|
|
|
pname = "capitaine-cursors";
|
2019-03-08 20:29:55 +00:00
|
|
|
version = "3";
|
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}";
|
2019-03-08 20:29:55 +00:00
|
|
|
sha256 = "0pnfbmrn9nv8pryv6cbjcq5hl9366hzvz1kd8vsdkgb2nlfv5gdv";
|
2018-07-31 22:47:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =[
|
|
|
|
inkscape
|
|
|
|
xcursorgen
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16
|
|
|
|
HOME="$NIX_BUILD_ROOT" ./build.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 0755 $out/share/icons
|
|
|
|
cp -pr dist $out/share/icons/capitaine-cursors
|
2019-03-08 20:29:55 +00:00
|
|
|
cp -pr dist-white $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
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/keeferrourke/capitaine-cursors;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
eadwu
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|