Merge pull request #142516 from figsoda/rust-motd
rust-motd: init at 0.1.1
This commit is contained in:
commit
c0a407a0d1
33
pkgs/tools/misc/rust-motd/default.nix
Normal file
33
pkgs/tools/misc/rust-motd/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "rust-motd";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rust-motd";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0xhdbhl0riaq9n4g9n333pgw966bsi60zpcy7gpndzfj21bj2x1m";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-l9Sit+niCLOnL1mdK6i8jea8NWsJlFM6p9lMTXyWOKY=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Beautiful, useful MOTD generation with zero runtime dependencies";
|
||||
homepage = "https://github.com/rust-motd/rust-motd";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
@ -9034,6 +9034,10 @@ with pkgs;
|
||||
|
||||
rust-code-analysis = callPackage ../development/tools/rust-code-analysis { };
|
||||
|
||||
rust-motd = callPackage ../tools/misc/rust-motd {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
rust-petname = callPackage ../tools/text/rust-petname { };
|
||||
|
||||
rustcat = callPackage ../tools/networking/rustcat {
|
||||
|
Loading…
Reference in New Issue
Block a user