about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/asciiquarium/default.nix
blob: a4276dac1d1f3202b421c0b2255245d981c424b0 (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
{ lib, stdenv, fetchurl, makeWrapper, perlPackages }:

let version = "1.1";
in stdenv.mkDerivation {
  pname = "asciiquarium";
  inherit version;
  src = fetchurl {
    url = "https://robobunny.com/projects/asciiquarium/asciiquarium_${version}.tar.gz";
    sha256 = "0qfkr5b7sxzi973nh0h84blz2crvmf28jkkgaj3mxrr56mhwc20v";
  };

  nativeBuildInputs = [ makeWrapper ];
  buildInputs = [ perlPackages.perl ];

  installPhase = ''
    mkdir -p $out/bin
    cp asciiquarium $out/bin
    chmod +x $out/bin/asciiquarium
    wrapProgram $out/bin/asciiquarium \
      --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.TermAnimation ] }
  '';

  meta = with lib; {
    description = "Enjoy the mysteries of the sea from the safety of your own terminal!";
    homepage = "https://robobunny.com/projects/asciiquarium/html/";
    license = licenses.gpl2;
    platforms = platforms.unix;
    maintainers = [ maintainers.utdemir ];
  };
}