From b542563acc349764c090b7d0bd80f3d57b0469d2 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 10 May 2023 10:25:29 -0400 Subject: [PATCH] lurk: 0.2.9 -> 0.3.3 Diff: https://github.com/jakwai01/lurk/compare/v0.2.9...v0.3.3 changelog: https://github.com/jakwai01/lurk/releases/tag/v0.3.3 --- pkgs/development/tools/lurk/default.nix | 30 +++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/lurk/default.nix b/pkgs/development/tools/lurk/default.nix index 3a7d00dea2c..cdfb4f0d5db 100644 --- a/pkgs/development/tools/lurk/default.nix +++ b/pkgs/development/tools/lurk/default.nix @@ -1,21 +1,43 @@ -{ lib, rustPlatform, fetchFromGitHub }: +{ lib +, rustPlatform +, fetchFromGitHub +, fetchpatch +}: rustPlatform.buildRustPackage rec { pname = "lurk"; - version = "0.2.9"; + version = "0.3.3"; src = fetchFromGitHub { owner = "jakwai01"; repo = pname; rev = "v${version}"; - sha256 = "sha256-Vvz1CWNpMbVpICL42VQHLM7AWSONGSXP5kfZ8rZlw8M="; + hash = "sha256-D/wJAmlc6OUuD8kSfGevG+UoPKy58X0lObL7mjiBG+c="; }; - cargoSha256 = "sha256-AoFkgm13vj/18GOuSIgzs+xk82lSQ6zGpq4QVWcClv8="; + cargoHash = "sha256-PFR6jMAvEybT/XOfLrv21F8ZxSX0BZDiEFtgQL5fL18="; + + cargoPatches = [ + # update the version to 0.3.3 + (fetchpatch { + name = "chore-prepare-release.patch"; + url = "https://github.com/JakWai01/lurk/commit/cb4355674159255ac4186283a93de294de057d1b.patch"; + hash = "sha256-N+/8AGEToEqhkQ6BYGQP279foZbt6DzUBmAUaHm9hW4="; + }) + ]; + + patches = [ + (fetchpatch { + name = "fix-tests.patch"; + url = "https://github.com/JakWai01/lurk/commit/87eb4aa8bf9a551b24cec2146699cb2c22d62019.patch"; + hash = "sha256-m44m1338VODX+HGEVMLozKfVvXsQxvLIpo28VBK//vM="; + }) + ]; meta = with lib; { description = "A simple and pretty alternative to strace"; homepage = "https://github.com/jakwai01/lurk"; + changelog = "https://github.com/jakwai01/lurk/releases/tag/${src.rev}"; license = licenses.agpl3Only; maintainers = with maintainers; [ figsoda ]; platforms = [ "i686-linux" "x86_64-linux" ];