2023-05-24 13:37:59 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "toastify";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.5.4";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hoodie";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-hSBh1LTfe3rQDPUryo2Swdf/yLYrOQ/Fg3Dz7ZqV3gw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-Ps2pRLpPxw+OS1ungQtVQ8beoKpc8pjzQEndMNni08k=";
|
2023-05-24 13:37:59 +00: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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Commandline tool that shows desktop notifications using notify-rust";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/hoodie/toastify";
|
|
|
|
changelog = "https://github.com/hoodie/toastify/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "toastify";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|