nixpkgs/pkgs/data/icons/bibata-cursors/extra.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.3 KiB
Nix
Raw Normal View History

2021-12-08 00:39:55 +00:00
{ lib
, stdenvNoCC
2021-12-08 00:39:55 +00:00
, fetchFromGitHub
, fetchurl
, clickgen
, unzip
}:
stdenvNoCC.mkDerivation rec {
pname = "bibata-extra-cursors";
2021-12-08 00:39:55 +00:00
version = "1.0.1";
src = fetchFromGitHub {
2021-12-08 00:39:55 +00:00
owner = "ful1e5";
repo = "Bibata_Extra_Cursor";
rev = "v${version}";
2021-12-08 00:39:55 +00:00
sha256 = "0wndl4c547k99y0gq922hn7z1mwdgxvvyjfm6757g6shfbcmkz7m";
};
2021-12-08 00:39:55 +00:00
bitmaps = fetchurl {
url = "https://github.com/ful1e5/Bibata_Extra_Cursor/releases/download/v${version}/bitmaps.zip";
sha256 = "0vf14ln53wigaq3dkqdk5avarqplsq751nlv72da04ms6gqjfhdl";
};
2021-12-08 00:39:55 +00:00
nativeBuildInputs = [ unzip ];
2021-12-08 00:39:55 +00:00
buildInputs = [ clickgen ];
buildPhase = ''
2021-12-08 00:39:55 +00:00
mkdir bitmaps
unzip $bitmaps -d bitmaps
rm -rf themes
cd builder && make build_unix
'';
installPhase = ''
install -dm 0755 $out/share/icons
2021-12-08 00:39:55 +00:00
cd ../
cp -rf themes/* $out/share/icons/
'';
postPatch = ''
substituteInPlace "builder/Makefile" \
--replace "/bin/bash" "bash"
'';
meta = with lib; {
2021-12-08 00:39:55 +00:00
description = "Material Based Cursor Theme";
homepage = "https://github.com/ful1e5/Bibata_Extra_Cursor";
license = licenses.gpl3;
platforms = platforms.linux;
2021-12-08 00:39:55 +00:00
maintainers = with maintainers; [ dtzWill AdsonCicilioti ];
# unmaintained as of Nov 9, 2022. unable to be build with clickgen version 2.x
broken = true;
};
}