Merge pull request #231091 from figsoda/lurk

authored by figsoda and committed by GitHub 4c11be3b 1ff9f908

+26 -4
+26 -4
pkgs/development/tools/lurk/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "lurk"; 5 - version = "0.2.9"; 6 7 src = fetchFromGitHub { 8 owner = "jakwai01"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-Vvz1CWNpMbVpICL42VQHLM7AWSONGSXP5kfZ8rZlw8M="; 12 }; 13 14 - cargoSha256 = "sha256-AoFkgm13vj/18GOuSIgzs+xk82lSQ6zGpq4QVWcClv8="; 15 16 meta = with lib; { 17 description = "A simple and pretty alternative to strace"; 18 homepage = "https://github.com/jakwai01/lurk"; 19 license = licenses.agpl3Only; 20 maintainers = with maintainers; [ figsoda ]; 21 platforms = [ "i686-linux" "x86_64-linux" ];
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , fetchpatch 5 + }: 6 7 rustPlatform.buildRustPackage rec { 8 pname = "lurk"; 9 + version = "0.3.3"; 10 11 src = fetchFromGitHub { 12 owner = "jakwai01"; 13 repo = pname; 14 rev = "v${version}"; 15 + hash = "sha256-D/wJAmlc6OUuD8kSfGevG+UoPKy58X0lObL7mjiBG+c="; 16 }; 17 18 + cargoHash = "sha256-PFR6jMAvEybT/XOfLrv21F8ZxSX0BZDiEFtgQL5fL18="; 19 + 20 + cargoPatches = [ 21 + # update the version to 0.3.3 22 + (fetchpatch { 23 + name = "chore-prepare-release.patch"; 24 + url = "https://github.com/JakWai01/lurk/commit/cb4355674159255ac4186283a93de294de057d1b.patch"; 25 + hash = "sha256-N+/8AGEToEqhkQ6BYGQP279foZbt6DzUBmAUaHm9hW4="; 26 + }) 27 + ]; 28 + 29 + patches = [ 30 + (fetchpatch { 31 + name = "fix-tests.patch"; 32 + url = "https://github.com/JakWai01/lurk/commit/87eb4aa8bf9a551b24cec2146699cb2c22d62019.patch"; 33 + hash = "sha256-m44m1338VODX+HGEVMLozKfVvXsQxvLIpo28VBK//vM="; 34 + }) 35 + ]; 36 37 meta = with lib; { 38 description = "A simple and pretty alternative to strace"; 39 homepage = "https://github.com/jakwai01/lurk"; 40 + changelog = "https://github.com/jakwai01/lurk/releases/tag/${src.rev}"; 41 license = licenses.agpl3Only; 42 maintainers = with maintainers; [ figsoda ]; 43 platforms = [ "i686-linux" "x86_64-linux" ];