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