toastify: init at 0.5.2
This commit is contained in:
parent
72453271bb
commit
2c8c9a20f2
31
pkgs/tools/misc/toastify/default.nix
Normal file
31
pkgs/tools/misc/toastify/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "toastify";
|
||||||
|
version = "0.5.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hoodie";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-fCwxFdpwtG83xw3DDt9rlnbY8V3eKemRFK/6E1Bhm4c=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-ecc3z0T82pYR9gSYZYxRYhse9IroydPOAtRgDWqHTbo=";
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -10746,6 +10746,8 @@ with pkgs;
|
||||||
|
|
||||||
tinystatus = callPackage ../tools/networking/tinystatus { };
|
tinystatus = callPackage ../tools/networking/tinystatus { };
|
||||||
|
|
||||||
|
toastify = darwin.apple_sdk_11_0.callPackage ../tools/misc/toastify {};
|
||||||
|
|
||||||
tuc = callPackage ../tools/text/tuc { };
|
tuc = callPackage ../tools/text/tuc { };
|
||||||
|
|
||||||
opensshPackages = dontRecurseIntoAttrs (callPackage ../tools/networking/openssh {});
|
opensshPackages = dontRecurseIntoAttrs (callPackage ../tools/networking/openssh {});
|
||||||
|
|
Loading…
Reference in a new issue