mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
290a5d916e
Based on "problems" from repology: https://repology.org/repository/nix_unstable/problems Mostly simple changes to reflect redirects.
30 lines
927 B
Nix
30 lines
927 B
Nix
{ stdenv, fetchurl, makeWrapper, perlPackages }:
|
|
|
|
let version = "1.1";
|
|
in stdenv.mkDerivation {
|
|
name = "asciiquarium-${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 stdenv.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 ];
|
|
};
|
|
}
|