3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/icons/bibata-cursors/default.nix
Will Dietz b8eb54ff9e
bibata-cursors: 0.4.1 -> 0.4.2
* py3+pillow, new deps, fix
* drop sudo invocation (instead of gksu)

https://github.com/KaizIqbal/Bibata_Cursor/releases/tag/v0.4.2
(although most of the notes are in the beta release tags)
2020-01-15 11:15:07 -06:00

45 lines
1,001 B
Nix

{ stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen, python3 }:
let
py = python3.withPackages(ps: [ ps.pillow ]);
in stdenvNoCC.mkDerivation rec {
pname = "bibata-cursors";
version = "0.4.2";
src = fetchFromGitHub {
owner = "KaizIqbal";
repo = "Bibata_Cursor";
rev = "v${version}";
sha256 = "1f7i5jkl21fvrr45zpcj40avkc7camjb1ddrrdlaabbplgz5mcgn";
};
postPatch = ''
patchShebangs .
substituteInPlace build.sh --replace "sudo" ""
'';
nativeBuildInputs = [
gnome-themes-extra
inkscape
xcursorgen
py
];
buildPhase = ''
HOME="$NIX_BUILD_ROOT" ./build.sh
'';
installPhase = ''
install -dm 0755 $out/share/icons
cp -pr Bibata_* $out/share/icons/
'';
meta = with stdenvNoCC.lib; {
description = "Material Based Cursor";
homepage = https://github.com/KaizIqbal/Bibata_Cursor;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ rawkode ];
};
}