nixpkgs/pkgs/tools/misc/toastify/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

33 lines
920 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "toastify";
version = "0.5.4";
src = fetchFromGitHub {
owner = "hoodie";
repo = pname;
rev = "v${version}";
sha256 = "sha256-hSBh1LTfe3rQDPUryo2Swdf/yLYrOQ/Fg3Dz7ZqV3gw=";
};
cargoHash = "sha256-Ps2pRLpPxw+OS1ungQtVQ8beoKpc8pjzQEndMNni08k=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.Cocoa
];
preBuild = lib.optionalString stdenv.isDarwin ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Commandline tool that shows desktop notifications using notify-rust";
homepage = "https://github.com/hoodie/toastify";
changelog = "https://github.com/hoodie/toastify/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ colemickens ];
mainProgram = "toastify";
};
}