3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/rust-motd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
791 B
Nix
Raw Normal View History

2021-10-21 21:30:02 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "rust-motd";
2022-01-07 15:23:04 +00:00
version = "0.2.1";
2021-10-21 21:30:02 +01:00
src = fetchFromGitHub {
owner = "rust-motd";
repo = pname;
rev = "v${version}";
2022-01-07 15:23:04 +00:00
sha256 = "sha256-iuADR7m+wdmsQ897o4CQHqDv9PmYu/vJgO5C6Dluao4=";
2021-10-21 21:30:02 +01:00
};
2022-01-07 15:23:04 +00:00
cargoSha256 = "sha256-kdSMcADoTpMU4w2XSv0pPQZC155rrQACQ4XTVyj7eeA=";
2021-10-21 21:30:02 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
2022-01-07 15:23:04 +00:00
OPENSSL_NO_VENDOR = 1;
2021-10-21 21:30:02 +01:00
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 ];
};
}