nixpkgs/pkgs/by-name/ba/banana-cursor/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

51 lines
919 B
Nix

{ 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}";
hash = "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 = "Banana Cursor";
homepage = "https://github.com/ful1e5/banana-cursor";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ getpsyched yrd ];
platforms = platforms.linux;
};
})