2021-12-08 01:38:38 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchurl
|
|
|
|
, clickgen
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bibata-cursors";
|
2021-12-08 01:38:38 +01:00
|
|
|
version = "1.1.2";
|
2018-12-13 01:21:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-08 01:38:38 +01:00
|
|
|
owner = "ful1e5";
|
2018-12-13 01:21:55 +01:00
|
|
|
repo = "Bibata_Cursor";
|
|
|
|
rev = "v${version}";
|
2021-12-08 01:38:38 +01:00
|
|
|
sha256 = "1q2wdbrmdnr9mwiilm5cc9im3zwbl7yaj1zpy5wwn44ypq3hcngy";
|
2018-12-13 01:21:55 +01:00
|
|
|
};
|
|
|
|
|
2021-12-08 01:38:38 +01:00
|
|
|
bitmaps = fetchurl {
|
|
|
|
url = "https://github.com/ful1e5/Bibata_Cursor/releases/download/v${version}/bitmaps.zip";
|
|
|
|
sha256 = "1pcn6par0f0syyhzpzmqr3c6b9ri4lprkdd2ncwzdas01p2d9v1i";
|
|
|
|
};
|
2020-01-17 00:06:29 +01:00
|
|
|
|
2021-12-08 01:38:38 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2018-12-13 01:21:55 +01:00
|
|
|
|
2021-12-08 01:38:38 +01:00
|
|
|
buildInputs = [ clickgen ];
|
2018-12-13 01:21:55 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
2021-12-08 01:38:38 +01:00
|
|
|
mkdir bitmaps
|
|
|
|
unzip $bitmaps -d bitmaps
|
|
|
|
rm -rf themes
|
|
|
|
cd builder && make build_unix
|
2018-12-13 01:21:55 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 0755 $out/share/icons
|
2021-12-08 01:38:38 +01:00
|
|
|
cd ../
|
|
|
|
cp -rf themes/* $out/share/icons/
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace "builder/Makefile" \
|
|
|
|
--replace "/bin/bash" "bash"
|
2018-12-13 01:21:55 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-17 14:51:41 +01:00
|
|
|
meta = with lib; {
|
2021-12-08 01:38:38 +01:00
|
|
|
description = "Material Based Cursor Theme";
|
|
|
|
homepage = "https://github.com/ful1e5/Bibata_Cursor";
|
2018-12-13 01:21:55 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-12-08 01:38:38 +01:00
|
|
|
maintainers = with maintainers; [ rawkode AdsonCicilioti ];
|
2018-12-13 01:21:55 +01:00
|
|
|
};
|
|
|
|
}
|