Merge pull request #283199 from GetPsyched/banana-cursor

banana-cursor: refactor
This commit is contained in:
Weijia Wang 2024-02-05 01:08:08 +01:00 committed by GitHub
commit 85044138b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 50 additions and 33 deletions

View file

@ -0,0 +1,50 @@
{ fetchFromGitHub
, lib
, stdenvNoCC
, # build deps
clickgen
, python3Packages
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "banana-cursor";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ful1e5";
repo = "banana-cursor";
rev = "v${finalAttrs.version}";
sha256 = "sha256-PI7381xf/GctQTnfcE0W3M3z2kqbX4VexMf17C61hT8=";
};
nativeBuildInputs = [
clickgen
python3Packages.attrs
];
buildPhase = ''
runHook preBuild
ctgen build.toml -p x11 -o $out
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
mv $out/Banana $out/share/icons
runHook postInstall
'';
meta = with lib; {
description = "The Banana Cursor";
homepage = "https://github.com/ful1e5/banana-cursor";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ getpsyched yrd ];
platforms = platforms.linux;
};
})

View file

@ -1,31 +0,0 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation rec {
pname = "banana-cursor";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ful1e5";
repo = "banana-cursor";
rev = "v${version}";
sha256 = "sha256-PI7381xf/GctQTnfcE0W3M3z2kqbX4VexMf17C61hT8=";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/share/icons
mv themes/Banana $out/share/icons
'';
meta = with lib; {
homepage = "https://github.com/ful1e5/banana-cursor";
description = "The banana cursor theme";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ yrd ];
};
}

View file

@ -28981,8 +28981,6 @@ with pkgs;
bakoma_ttf = callPackage ../data/fonts/bakoma-ttf { };
banana-cursor = callPackage ../data/icons/banana-cursor { };
barlow = callPackage ../data/fonts/barlow { };
base16-schemes = callPackage ../data/themes/base16-schemes { };