2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, perlPackages }:
|
2019-01-17 23:01:14 +00:00
|
|
|
|
|
|
|
let version = "1.1";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "asciiquarium";
|
|
|
|
inherit version;
|
2019-01-17 23:01:14 +00:00
|
|
|
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 ] }
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-17 23:01:14 +00:00
|
|
|
description = "Enjoy the mysteries of the sea from the safety of your own terminal!";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://robobunny.com/projects/asciiquarium/html/";
|
2019-01-17 23:01:14 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.utdemir ];
|
|
|
|
};
|
|
|
|
}
|