pokemon-colorscripts: 0-unstable-2024-10-19

- Fix nixpkgs-vet issues (e.g., maintainers)
- Apply review suggestions (SRI hash, version string, substituteInPlace, etc.)
- Fix installPhase by using runHook
- Update to a more recent commit
This commit is contained in:
viitorags
2025-08-05 14:28:52 -03:00
parent 08b1863454
commit 2c8adb01de
@@ -0,0 +1,44 @@
{
stdenv,
fetchFromGitLab,
lib,
python3,
}:
stdenv.mkDerivation {
pname = "pokemon-colorscripts";
version = "0-unstable-2024-10-19";
src = fetchFromGitLab {
owner = "phoneybadger";
repo = "pokemon-colorscripts";
rev = "5802ff67520be2ff6117a0abc78a08501f6252ad";
hash = "sha256-gKVmpHKt7S2XhSxLDzbIHTjJMoiIk69Fch202FZffqU=";
};
buildInputs = [
python3
];
postPatch = ''
patchShebangs --build ./install.sh
substituteInPlace install.sh --replace-fail "/usr/local" "$out"
'';
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
./install.sh
runHook postInstall
'';
meta = {
description = "Scripts for Pokémon color manipulation";
homepage = "https://gitlab.com/phoneybadger/pokemon-colorscripts";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.viitorags ];
mainProgram = "pokemon-colorscripts";
};
}