2021-12-08 00:38:38 +00:00
|
|
|
{ lib
|
2022-07-02 00:04:21 +00:00
|
|
|
, stdenvNoCC
|
2021-12-08 00:38:38 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-27 00:11:08 +00:00
|
|
|
, fetchzip
|
2021-12-08 00:38:38 +00:00
|
|
|
, clickgen
|
|
|
|
}:
|
|
|
|
|
2022-07-02 00:04:21 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bibata-cursors";
|
2024-01-27 00:11:08 +00:00
|
|
|
version = "2.0.6";
|
2018-12-13 00:21:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-08 00:38:38 +00:00
|
|
|
owner = "ful1e5";
|
2018-12-13 00:21:55 +00:00
|
|
|
repo = "Bibata_Cursor";
|
|
|
|
rev = "v${version}";
|
2024-01-27 00:11:08 +00:00
|
|
|
hash = "sha256-iLBgQ0reg8HzUQMUcZboMYJxqpKXks5vJVZMHirK48k=";
|
2018-12-13 00:21:55 +00:00
|
|
|
};
|
|
|
|
|
2024-01-27 00:11:08 +00:00
|
|
|
bitmaps = fetchzip {
|
|
|
|
url = "https://github.com/ful1e5/Bibata_Cursor/releases/download/v${version}/bitmaps.zip";
|
|
|
|
hash = "sha256-8ujkyqby5sPcnscIPkay1gvd/1CH4R9yMJs1nH/mx8M=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
clickgen
|
|
|
|
];
|
2018-12-13 00:21:55 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2024-01-27 00:11:08 +00:00
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
ctgen build.toml -p x11 -d $bitmaps/Bibata-Modern-Amber -n 'Bibata-Modern-Amber' -c 'Yellowish and rounded edge bibata cursors.'
|
|
|
|
ctgen build.toml -p x11 -d $bitmaps/Bibata-Modern-Classic -n 'Bibata-Modern-Classic' -c 'Black and rounded edge Bibata cursors.'
|
|
|
|
ctgen build.toml -p x11 -d $bitmaps/Bibata-Modern-Ice -n 'Bibata-Modern-Ice' -c 'White and rounded edge Bibata cursors.'
|
2023-01-18 11:50:36 +00:00
|
|
|
|
2024-01-27 00:11:08 +00:00
|
|
|
ctgen build.toml -p x11 -d $bitmaps/Bibata-Original-Amber -n 'Bibata-Original-Amber' -c 'Yellowish and sharp edge Bibata cursors.'
|
|
|
|
ctgen build.toml -p x11 -d $bitmaps/Bibata-Original-Classic -n 'Bibata-Original-Classic' -c 'Black and sharp edge Bibata cursors.'
|
|
|
|
ctgen build.toml -p x11 -d $bitmaps/Bibata-Original-Ice -n 'Bibata-Original-Ice' -c 'White and sharp edge Bibata cursors.'
|
|
|
|
|
|
|
|
runHook postBuild
|
2018-12-13 00:21:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-01-27 00:11:08 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2018-12-13 00:21:55 +00:00
|
|
|
install -dm 0755 $out/share/icons
|
2021-12-08 00:38:38 +00:00
|
|
|
cp -rf themes/* $out/share/icons/
|
2024-01-27 00:11:08 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2021-12-08 00:38:38 +00:00
|
|
|
'';
|
|
|
|
|
2024-01-27 00:21:00 +00:00
|
|
|
meta = {
|
2021-12-08 00:38:38 +00:00
|
|
|
description = "Material Based Cursor Theme";
|
|
|
|
homepage = "https://github.com/ful1e5/Bibata_Cursor";
|
2024-01-27 00:21:00 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ rawkode AdsonCicilioti ];
|
2018-12-13 00:21:55 +00:00
|
|
|
};
|
|
|
|
}
|