From 3d66e783dbf496ac7080155baf7e36a4d0fde66e Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 6 Oct 2022 16:24:23 -0400 Subject: [PATCH 1/2] rust-motd: 0.2.1 -> 1.0.0 --- pkgs/tools/misc/rust-motd/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/rust-motd/default.nix b/pkgs/tools/misc/rust-motd/default.nix index bfd4db8ff882..a3ca6ddbbbe2 100644 --- a/pkgs/tools/misc/rust-motd/default.nix +++ b/pkgs/tools/misc/rust-motd/default.nix @@ -9,16 +9,16 @@ rustPlatform.buildRustPackage rec { pname = "rust-motd"; - version = "0.2.1"; + version = "1.0.0"; src = fetchFromGitHub { owner = "rust-motd"; repo = pname; rev = "v${version}"; - sha256 = "sha256-iuADR7m+wdmsQ897o4CQHqDv9PmYu/vJgO5C6Dluao4="; + sha256 = "sha256-w984vvjjieSv4eM3jT8zJIIR7/7pmADhR3Esj+2dCTs="; }; - cargoSha256 = "sha256-kdSMcADoTpMU4w2XSv0pPQZC155rrQACQ4XTVyj7eeA="; + cargoSha256 = "sha256-L/QdFjSYm3PekKS3tdsUl8XBVyIBE044EHOIB+aEltI="; nativeBuildInputs = [ pkg-config ]; From dfe88a09d1929f43fa296d113b9cc2ae93a0e744 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 7 Oct 2022 13:14:25 +0200 Subject: [PATCH 2/2] rust-motd: modernize - add changelog to meta --- pkgs/tools/misc/rust-motd/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/rust-motd/default.nix b/pkgs/tools/misc/rust-motd/default.nix index a3ca6ddbbbe2..a2c7710984ea 100644 --- a/pkgs/tools/misc/rust-motd/default.nix +++ b/pkgs/tools/misc/rust-motd/default.nix @@ -15,20 +15,27 @@ rustPlatform.buildRustPackage rec { owner = "rust-motd"; repo = pname; rev = "v${version}"; - sha256 = "sha256-w984vvjjieSv4eM3jT8zJIIR7/7pmADhR3Esj+2dCTs="; + hash = "sha256-w984vvjjieSv4eM3jT8zJIIR7/7pmADhR3Esj+2dCTs="; }; - cargoSha256 = "sha256-L/QdFjSYm3PekKS3tdsUl8XBVyIBE044EHOIB+aEltI="; + cargoHash = "sha256-L/QdFjSYm3PekKS3tdsUl8XBVyIBE044EHOIB+aEltI="; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + pkg-config + ]; - buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; + 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"; + changelog = "https://github.com/rust-motd/rust-motd/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; };