biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / toastify / default.nix
blob6fde17977ebe11eee66ed3136a4ea6b4d324296e
1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
4   pname = "toastify";
5   version = "0.5.4";
7   src = fetchFromGitHub {
8     owner = "hoodie";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-hSBh1LTfe3rQDPUryo2Swdf/yLYrOQ/Fg3Dz7ZqV3gw=";
12   };
14   cargoHash = "sha256-Ps2pRLpPxw+OS1ungQtVQ8beoKpc8pjzQEndMNni08k=";
16   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
17     darwin.apple_sdk_11_0.frameworks.Cocoa
18   ];
20   preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
21     export HOME=$(mktemp -d)
22   '';
24   meta = with lib; {
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";
31   };