blob: 2472d5015dafa1c7dc887bc828d1d22244089676 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
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];
};
}
|