infrastructure/nixos/pkgs/catppuccin/cursors/default.nix
2022-10-09 11:58:31 +02:00

34 lines
893 B
Nix

{ stdenvNoCC, lib, fetchFromGitHub, xcursorgen, inkscape, makeFontsConf }:
stdenvNoCC.mkDerivation {
pname = "catppuccin-cursors";
version = "0.2.0";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "cursors";
rev = "3d3023606939471c45cff7b643bffc5d5d4ff29c";
sha256 = "sha256-0wb84q1VtD1myIRxrfQMn9n6w1gFzMA1rHkPqXuXLP0=";
};
nativeBuildInputs = [ xcursorgen inkscape ];
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
buildPhase = ''
HOME="$NIX_BUILD_ROOT" PREFIX="/" DESTDIR=$out make build
'';
installPhase = ''
HOME="$NIX_BUILD_ROOT" PREFIX="/" DESTDIR=$out make install
'';
meta = with lib; {
description = "Soothing pastel mouse cursors";
homepage = "https://github.com/catppuccin/cursors";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ nullx76 ];
};
}