mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
2641d97cbf
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
51 lines
943 B
Nix
51 lines
943 B
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, stdenvNoCC
|
|
|
|
, # build deps
|
|
clickgen
|
|
, python3Packages
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "pokemon-cursor";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ful1e5";
|
|
repo = "pokemon-cursor";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-EL6Ztbzjm1YuQP+8ZbrhbuBXn+GFiJGG0iGNWzU/rBY=";
|
|
};
|
|
|
|
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/Pokemon $out/share/icons
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Unofficial open-source Pokemon cursor theme";
|
|
homepage = "https://github.com/ful1e5/pokemon-cursor";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.getpsyched ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|