summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-01-27 01:20:21 +0100
committerGitHub <noreply@github.com>2019-01-27 01:20:21 +0100
commitd79ec45ebe003dc61b936481c8ab0a3b7c675c02 (patch)
tree0fbccc09322fa8be6917e0f0e9b6e457b0113774 /pkgs
parent252d20f97dee37e667a5beef46428171c622de4f (diff)
parent2004af94f73886e7a802963da9e07dbccce1f7ed (diff)
downloadnixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.tar
nixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.tar.gz
nixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.tar.bz2
nixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.tar.lz
nixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.tar.xz
nixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.tar.zst
nixpkgs-d79ec45ebe003dc61b936481c8ab0a3b7c675c02.zip
Merge pull request #54224 from utdemir/add-asciiquarium
asciiquarium: init at 1.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/asciiquarium/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/misc/asciiquarium/default.nix b/pkgs/applications/misc/asciiquarium/default.nix
new file mode 100644
index 00000000000..912f18890b5
--- /dev/null
+++ b/pkgs/applications/misc/asciiquarium/default.nix
@@ -0,0 +1,29 @@
+{ 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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 031f590278b..22b41d9468e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -597,6 +597,8 @@ in
 
   asciinema = callPackage ../tools/misc/asciinema {};
 
+  asciiquarium = callPackage ../applications/misc/asciiquarium {};
+
   asymptote = callPackage ../tools/graphics/asymptote {
     texLive = texlive.combine { inherit (texlive) scheme-small epsf cm-super; };
     gsl = gsl_1;