infrastructure/nixos/pkgs/catppuccin/cursors/default.nix

34 lines
893 B
Nix
Raw Normal View History

2022-10-09 11:58:31 +02:00
{ stdenvNoCC, lib, fetchFromGitHub, xcursorgen, inkscape, makeFontsConf }:
2022-08-29 22:05:10 +02:00
2022-09-28 14:43:39 +02:00
stdenvNoCC.mkDerivation {
2022-08-29 22:05:10 +02:00
pname = "catppuccin-cursors";
version = "0.2.0";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "cursors";
rev = "3d3023606939471c45cff7b643bffc5d5d4ff29c";
sha256 = "sha256-0wb84q1VtD1myIRxrfQMn9n6w1gFzMA1rHkPqXuXLP0=";
};
2022-10-09 11:58:31 +02:00
nativeBuildInputs = [ xcursorgen inkscape ];
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
buildPhase = ''
HOME="$NIX_BUILD_ROOT" PREFIX="/" DESTDIR=$out make build
'';
2022-08-29 22:05:10 +02:00
installPhase = ''
2022-10-09 11:58:31 +02:00
HOME="$NIX_BUILD_ROOT" PREFIX="/" DESTDIR=$out make install
2022-08-29 22:05:10 +02:00
'';
meta = with lib; {
description = "Soothing pastel mouse cursors";
homepage = "https://github.com/catppuccin/cursors";
license = licenses.gpl2;
platforms = platforms.linux;
2022-10-09 11:58:31 +02:00
maintainers = with maintainers; [ nullx76 ];
2022-08-29 22:05:10 +02:00
};
}