2021-10-21 20:30:02 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rust-motd";
|
2022-10-06 20:24:23 +00:00
|
|
|
version = "1.0.0";
|
2021-10-21 20:30:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-motd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-07 11:14:25 +00:00
|
|
|
hash = "sha256-w984vvjjieSv4eM3jT8zJIIR7/7pmADhR3Esj+2dCTs=";
|
2021-10-21 20:30:02 +00:00
|
|
|
};
|
|
|
|
|
2022-10-07 11:14:25 +00:00
|
|
|
cargoHash = "sha256-L/QdFjSYm3PekKS3tdsUl8XBVyIBE044EHOIB+aEltI=";
|
2021-10-21 20:30:02 +00:00
|
|
|
|
2022-10-07 11:14:25 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-10-21 20:30:02 +00:00
|
|
|
|
2022-10-07 11:14:25 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2022-10-06 16:38:53 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2022-10-07 11:14:25 +00:00
|
|
|
Security
|
|
|
|
];
|
2021-10-21 20:30:02 +00:00
|
|
|
|
2022-01-07 15:23:04 +00:00
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
2021-10-21 20:30:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Beautiful, useful MOTD generation with zero runtime dependencies";
|
|
|
|
homepage = "https://github.com/rust-motd/rust-motd";
|
2022-10-07 11:14:25 +00:00
|
|
|
changelog = "https://github.com/rust-motd/rust-motd/releases/tag/v${version}";
|
2021-10-21 20:30:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|