3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/icons/bibata-cursors/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen, python3 }:
2018-12-13 00:21:55 +00:00
let
py = python3.withPackages(ps: [ ps.pillow ]);
in stdenvNoCC.mkDerivation rec {
pname = "bibata-cursors";
version = "0.4.2";
2018-12-13 00:21:55 +00:00
src = fetchFromGitHub {
owner = "KaizIqbal";
repo = "Bibata_Cursor";
rev = "v${version}";
sha256 = "1f7i5jkl21fvrr45zpcj40avkc7camjb1ddrrdlaabbplgz5mcgn";
2018-12-13 00:21:55 +00:00
};
postPatch = ''
patchShebangs .
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
2018-12-13 00:21:55 +00:00
'';
nativeBuildInputs = [
gnome-themes-extra
inkscape
2018-12-13 00:21:55 +00:00
xcursorgen
py
2018-12-13 00:21:55 +00:00
];
buildPhase = ''
HOME="$NIX_BUILD_ROOT" ./build.sh
'';
installPhase = ''
install -dm 0755 $out/share/icons
for x in Bibata_*; do
cp -pr $x/out/X11/$x $out/share/icons/
done
2018-12-13 00:21:55 +00:00
'';
meta = with lib; {
2018-12-13 00:21:55 +00:00
description = "Material Based Cursor";
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 ];
};
}