1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-hSBh1LTfe3rQDPUryo2Swdf/yLYrOQ/Fg3Dz7ZqV3gw=";
14 cargoHash = "sha256-Ps2pRLpPxw+OS1ungQtVQ8beoKpc8pjzQEndMNni08k=";
16 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
17 darwin.apple_sdk_11_0.frameworks.Cocoa
20 preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
21 export HOME=$(mktemp -d)
25 description = "Commandline tool that shows desktop notifications using notify-rust";
26 homepage = "https://github.com/hoodie/toastify";
27 changelog = "https://github.com/hoodie/toastify/blob/${src.rev}/CHANGELOG.md";
28 license = licenses.mit;
29 maintainers = with maintainers; [ colemickens ];
30 mainProgram = "toastify";