2020-05-05 12:14:00 +01:00
|
|
|
{ stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape_0, xcursorgen, python3 }:
|
2019-10-23 02:31:16 +01:00
|
|
|
|
2020-01-16 23:23:57 +00:00
|
|
|
let
|
|
|
|
py = python3.withPackages(ps: [ ps.pillow ]);
|
|
|
|
in stdenvNoCC.mkDerivation rec {
|
2019-10-23 02:31:16 +01:00
|
|
|
pname = "bibata-extra-cursors";
|
2020-01-16 23:23:57 +00:00
|
|
|
version = "0.3";
|
|
|
|
|
2019-10-23 02:31:16 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KaizIqbal";
|
|
|
|
repo = "Bibata_Extra_Cursor";
|
2020-01-16 23:23:57 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1bh945hvakbh985jkr6g6x0myw3k49pvn24m1clvqdv35v65nfxk";
|
2019-10-23 02:31:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2020-01-16 23:23:57 +00:00
|
|
|
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
|
2019-10-23 02:31:16 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gnome-themes-extra
|
2020-05-05 12:14:00 +01:00
|
|
|
inkscape_0
|
2019-10-23 02:31:16 +01:00
|
|
|
xcursorgen
|
2020-01-16 23:23:57 +00:00
|
|
|
py
|
2019-10-23 02:31:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
HOME="$NIX_BUILD_ROOT" ./build.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 0755 $out/share/icons
|
2020-01-16 23:23:57 +00:00
|
|
|
for x in Bibata_*; do
|
|
|
|
cp -pr $x/out/X11/$x $out/share/icons/
|
|
|
|
done
|
2019-10-23 02:31:16 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenvNoCC.lib; {
|
|
|
|
description = "Cursors Based on Bibata";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/KaizIqbal/Bibata_Extra_Cursor";
|
2019-10-23 02:31:16 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|