mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
7e49471316
the argument to optional should not be list
43 lines
893 B
Nix
43 lines
893 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rust-motd";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rust-motd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-w984vvjjieSv4eM3jT8zJIIR7/7pmADhR3Esj+2dCTs=";
|
|
};
|
|
|
|
cargoHash = "sha256-L/QdFjSYm3PekKS3tdsUl8XBVyIBE044EHOIB+aEltI=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Security
|
|
];
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
meta = with lib; {
|
|
description = "Beautiful, useful MOTD generation with zero runtime dependencies";
|
|
homepage = "https://github.com/rust-motd/rust-motd";
|
|
changelog = "https://github.com/rust-motd/rust-motd/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|