nixpkgs/pkgs/by-name/la/lavat/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

43 lines
956 B
Nix

{ lib
, stdenv
, fetchFromGitHub
,
}:
let
version = "2.1.0";
in
stdenv.mkDerivation {
pname = "lavat";
inherit version;
src = fetchFromGitHub {
owner = "AngelJumbo";
repo = "lavat";
rev = "v${version}";
hash = "sha256-wGtuYgZS03gXYgdNdugGu/UlROQTrQ3C1inJ/aTUBKk=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp lavat $out/bin
runHook postInstall
'';
meta = with lib; {
description = "Lava lamp simulation in the terminal";
longDescription = ''
Lavat puts ascii metaballs in your terminal to make it look a bit like a
lava lamp.
Lavat contains various options, including those to change the color and
speed of the metaballs. For a full list, run `lavat -h`
'';
maintainers = [ maintainers.minion3665 ];
license = licenses.mit;
homepage = "https://github.com/AngelJumbo/lavat";
platforms = platforms.all;
mainProgram = "lavat";
};
}