2021-06-16 20:08:44 +02:00
|
|
|
{ lib, python3, fetchFromGitHub, inkscape, stdenvNoCC, xcursorgen }:
|
2021-05-27 19:05:17 +02:00
|
|
|
let
|
|
|
|
py = python3.withPackages (ps: with ps; [ cairosvg ]);
|
|
|
|
in
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "vimix-cursors";
|
|
|
|
version = "unstable-2020-04-28";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
|
|
|
rev = "27ebb1935944bc986bf8ae85ee3343b8351d9823";
|
2023-04-01 17:33:26 +02:00
|
|
|
hash = "sha256-bIPRrKaNQ2Eo+T6zv7qeA1z7uRHXezM0yxh+uqA01Gs=";
|
2021-05-27 19:05:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
inkscape
|
|
|
|
py
|
|
|
|
xcursorgen
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
HOME="$NIX_BUILD_ROOT" ./build.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 755 $out/share/icons
|
|
|
|
for color in "" "-white"; do
|
|
|
|
cp -pr dist''${color}/ "$out/share/icons/Vimix''${color}-cursors"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An X cursor theme inspired by Materia design";
|
|
|
|
homepage = "https://github.com/vinceliuice/Vimix-cursors";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
2023-08-04 11:54:10 +02:00
|
|
|
platforms = platforms.linux;
|
2021-05-27 19:05:17 +02:00
|
|
|
};
|
|
|
|
}
|