Merge pull request #296976 from quantenzitrone/asciiquarium-transparent

asciiquarium-transparent: unstable-2023-02-19 -> 1.3
This commit is contained in:
Weijia Wang 2024-03-20 10:04:12 +01:00 committed by GitHub
commit 8a6a0609a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,32 +3,35 @@
stdenv,
fetchFromGitHub,
makeWrapper,
perlPackages,
perl,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "asciiquarium-transparent";
version = "unstable-2023-02-19";
version = "1.3";
src = fetchFromGitHub {
owner = "nothub";
repo = "asciiquarium";
rev = "653cd99a611080c776d18fc7991ae5dd924c72ce";
hash = "sha256-72LRFydbObFDXJllmlRjr5O8qjDqtlp3JunE3kwb5aU=";
rev = "${finalAttrs.version}";
hash = "sha256-zQyVIfwmhF3WsCeIZLwjDufvKzAfjLxaK2s7WTedqCg=";
};
nativeBuildInputs = [makeWrapper];
buildInputs = [perlPackages.perl];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp asciiquarium $out/bin/asciiquarium
wrapProgram $out/bin/asciiquarium --set PERL5LIB ${perlPackages.makeFullPerlPath [perlPackages.TermAnimation]}
install -Dm555 asciiquarium -t $out/bin
wrapProgram $out/bin/asciiquarium \
--set PERL5LIB ${with perl.pkgs; makeFullPerlPath [ TermAnimation ]}
runHook postInstall
'';
meta = with lib; {
meta = {
description = "An aquarium/sea animation in ASCII art (with option of transparent background)";
mainProgram = "asciiquarium";
homepage = "https://github.com/nothub/asciiquarium";
license = with licenses; [gpl2Only];
platforms = platforms.unix;
maintainers = with maintainers; [quantenzitrone];
license = lib.licenses.gpl2Only;
mainProgram = "asciiquarium";
maintainers = with lib.maintainers; [ quantenzitrone ];
platforms = perl.meta.platforms;
};
}
})