mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 20:23:39 +00:00
pokemonsay: unstable-2021-10-05 -> 1.0.0, fix tests, apply word-wrap patch
Only the version tag changes, as the same rev got tagged as v1.0.0 as of https://github.com/HRKings/pokemonsay-newgenerations/issues/4
This commit is contained in:
parent
7b0122aede
commit
7bd0044abd
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, cowsay
|
, cowsay
|
||||||
, coreutils
|
, coreutils
|
||||||
, findutils
|
, findutils
|
||||||
@ -8,15 +9,23 @@
|
|||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "pokemonsay";
|
pname = "pokemonsay";
|
||||||
version = "unstable-2021-10-05";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "HRKings";
|
owner = "HRKings";
|
||||||
repo = "pokemonsay-newgenerations";
|
repo = "pokemonsay-newgenerations";
|
||||||
rev = "baccc6d2fe1897c48f60d82ff9c4d4c018f5b594";
|
rev = "v${version}";
|
||||||
hash = "sha256-IDTAZmOzkUg0kLUM0oWuVbi8EwE4sEpLWrNAtq/he+g=";
|
hash = "sha256-IDTAZmOzkUg0kLUM0oWuVbi8EwE4sEpLWrNAtq/he+g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch { # https://github.com/HRKings/pokemonsay-newgenerations/pull/5
|
||||||
|
name = "word-wrap-fix.patch";
|
||||||
|
url = "https://github.com/pbsds/pokemonsay-newgenerations/commit/7056d7ba689479a8e6c14ec000be1dfcd83afeb0.patch";
|
||||||
|
hash = "sha256-aqUJkyJDWArLjChxLZ4BbC6XAB53LAqARzTvEAxrFCI=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pokemonsay.sh \
|
substituteInPlace pokemonsay.sh \
|
||||||
--replace \
|
--replace \
|
||||||
@ -51,8 +60,11 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
cp pokemons/*.cow $out/share/pokemonsay
|
cp pokemons/*.cow $out/share/pokemonsay
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
doInstallCheck = true;
|
||||||
$out/bin/pokemonsay --list-pokemon
|
installCheckPhase = ''
|
||||||
|
(set -x
|
||||||
|
test "$($out/bin/pokemonsay --list | wc -l)" -ge 891
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user