mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 02:24:30 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
970 B
Nix
32 lines
970 B
Nix
{ 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!";
|
|
mainProgram = "asciiquarium";
|
|
homepage = "https://robobunny.com/projects/asciiquarium/html/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.utdemir ];
|
|
};
|
|
}
|