mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
736cfed3ef
* asciiquarium-transparent: init at unstable-2023-02-19 * asciiquarium-transparent: apply suggestions --------- Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
perlPackages,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "asciiquarium-transparent";
|
|
version = "unstable-2023-02-19";
|
|
src = fetchFromGitHub {
|
|
owner = "nothub";
|
|
repo = "asciiquarium";
|
|
rev = "653cd99a611080c776d18fc7991ae5dd924c72ce";
|
|
hash = "sha256-72LRFydbObFDXJllmlRjr5O8qjDqtlp3JunE3kwb5aU=";
|
|
};
|
|
nativeBuildInputs = [makeWrapper];
|
|
buildInputs = [perlPackages.perl];
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp asciiquarium $out/bin/asciiquarium
|
|
wrapProgram $out/bin/asciiquarium --set PERL5LIB ${perlPackages.makeFullPerlPath [perlPackages.TermAnimation]}
|
|
runHook postInstall
|
|
'';
|
|
meta = with lib; {
|
|
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];
|
|
};
|
|
}
|