diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/rust-motd')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/rust-motd/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/rust-motd/default.nix b/nixpkgs/pkgs/tools/misc/rust-motd/default.nix new file mode 100644 index 000000000000..bfd4db8ff882 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/rust-motd/default.nix @@ -0,0 +1,35 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, openssl +, stdenv +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "rust-motd"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "rust-motd"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-iuADR7m+wdmsQ897o4CQHqDv9PmYu/vJgO5C6Dluao4="; + }; + + cargoSha256 = "sha256-kdSMcADoTpMU4w2XSv0pPQZC155rrQACQ4XTVyj7eeA="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] ++ lib.optional 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"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} |