2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
2022-08-12 12:06:08 +00:00
|
|
|
, stdenvNoCC
|
2021-12-19 01:06:50 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchurl
|
|
|
|
, clickgen
|
2023-02-02 18:25:31 +00:00
|
|
|
, attrs
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bibata-cursors";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-19 01:06:50 +00:00
|
|
|
owner = "ful1e5";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "Bibata_Cursor";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "zCk7qgPeae0BfzhxxU2Dk1SOWJQOxiWyJuzH/ri+Gq4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = [ clickgen attrs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2023-02-02 18:25:31 +00:00
|
|
|
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.'
|
|
|
|
|
|
|
|
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.'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 0755 $out/share/icons
|
2021-12-19 01:06:50 +00:00
|
|
|
cp -rf themes/* $out/share/icons/
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Material Based Cursor Theme";
|
|
|
|
homepage = "https://github.com/ful1e5/Bibata_Cursor";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ rawkode AdsonCicilioti ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|