nixpkgs/pkgs/tools/misc/toastify/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
922 B
Nix
Raw Normal View History

2023-03-09 02:13:54 +01:00
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "toastify";
2023-10-21 17:24:41 +02:00
version = "0.5.4";
2023-03-09 02:13:54 +01:00
src = fetchFromGitHub {
owner = "hoodie";
repo = pname;
rev = "v${version}";
2023-10-21 17:24:41 +02:00
sha256 = "sha256-hSBh1LTfe3rQDPUryo2Swdf/yLYrOQ/Fg3Dz7ZqV3gw=";
2023-03-09 02:13:54 +01:00
};
2023-10-21 17:24:41 +02:00
cargoHash = "sha256-Ps2pRLpPxw+OS1ungQtVQ8beoKpc8pjzQEndMNni08k=";
2023-03-09 02:13:54 +01:00
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 = "A 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 ];
2023-11-27 02:17:53 +01:00
mainProgram = "toastify";
2023-03-09 02:13:54 +01:00
};
}