2020-05-05 13:14:00 +02:00
|
|
|
{ stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape_0, xcursorgen, python3 }:
|
2018-12-13 01:21:55 +01:00
|
|
|
|
2020-01-15 17:29:37 +01:00
|
|
|
let
|
|
|
|
py = python3.withPackages(ps: [ ps.pillow ]);
|
|
|
|
in stdenvNoCC.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bibata-cursors";
|
2020-01-15 17:29:37 +01:00
|
|
|
version = "0.4.2";
|
2018-12-13 01:21:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KaizIqbal";
|
|
|
|
repo = "Bibata_Cursor";
|
|
|
|
rev = "v${version}";
|
2020-01-15 17:29:37 +01:00
|
|
|
sha256 = "1f7i5jkl21fvrr45zpcj40avkc7camjb1ddrrdlaabbplgz5mcgn";
|
2018-12-13 01:21:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2020-01-15 17:29:37 +01:00
|
|
|
substituteInPlace build.sh --replace "sudo" ""
|
2020-01-17 00:06:29 +01:00
|
|
|
|
|
|
|
# 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
|
2018-12-13 01:21:55 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gnome-themes-extra
|
2020-05-05 13:14:00 +02:00
|
|
|
inkscape_0
|
2018-12-13 01:21:55 +01:00
|
|
|
xcursorgen
|
2020-01-15 17:29:37 +01:00
|
|
|
py
|
2018-12-13 01:21:55 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
HOME="$NIX_BUILD_ROOT" ./build.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 0755 $out/share/icons
|
2020-01-17 00:06:29 +01:00
|
|
|
for x in Bibata_*; do
|
|
|
|
cp -pr $x/out/X11/$x $out/share/icons/
|
|
|
|
done
|
2018-12-13 01:21:55 +01:00
|
|
|
'';
|
|
|
|
|
2019-10-23 03:28:38 +02:00
|
|
|
meta = with stdenvNoCC.lib; {
|
2018-12-13 01:21:55 +01:00
|
|
|
description = "Material Based Cursor";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/KaizIqbal/Bibata_Cursor";
|
2018-12-13 01:21:55 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ rawkode ];
|
|
|
|
};
|
|
|
|
}
|