From f33a5996dfb31e3f25fc43ac2e3051ffc9978962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 18 Jan 2026 18:59:20 +0100 Subject: [PATCH 1/3] lurk: fix aarch64 build --- pkgs/by-name/lu/lurk/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/lu/lurk/package.nix b/pkgs/by-name/lu/lurk/package.nix index f3a737cefadd..71952012f16e 100644 --- a/pkgs/by-name/lu/lurk/package.nix +++ b/pkgs/by-name/lu/lurk/package.nix @@ -2,6 +2,7 @@ lib, rustPlatform, fetchFromGitHub, + fetchpatch, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -15,6 +16,14 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-Sng+mMMKDuI1aSgusJDRFMT5iKNUlp9arp9ruRn0bb0="; }; + patches = [ + (fetchpatch { + name = "fix-aarch64-build.patch"; + url = "https://github.com/JakWai01/lurk/commit/132e6557ddeafbdb1bb1d4d1411099f0d7df7a51.patch?full_index=1"; + hash = "sha256-B5rNLipnFFWxIhTm+eCacJkw38D7stQ27WIHzgj7Vy0="; + }) + ]; + cargoHash = "sha256-Cmlhhda35FmNg/OvfMRPHBLPRXF5bs0ebBYT7KfierA="; postPatch = '' From 8c5e6c15081a5e7fdecc250c8a5f70c566652b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 18 Jan 2026 19:01:53 +0100 Subject: [PATCH 2/3] lurk: add version checking --- pkgs/by-name/lu/lurk/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/lu/lurk/package.nix b/pkgs/by-name/lu/lurk/package.nix index 71952012f16e..8f36a05f6361 100644 --- a/pkgs/by-name/lu/lurk/package.nix +++ b/pkgs/by-name/lu/lurk/package.nix @@ -3,6 +3,7 @@ rustPlatform, fetchFromGitHub, fetchpatch, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -31,6 +32,12 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail '/usr/bin/ls' 'ls' ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = "--version"; + meta = { changelog = "https://github.com/jakwai01/lurk/releases/tag/v${finalAttrs.version}"; description = "Simple and pretty alternative to strace"; From 3f61fb528c72106048727a2ecc06eb0730f9f2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 18 Jan 2026 19:02:26 +0100 Subject: [PATCH 3/3] lurk: add update script --- pkgs/by-name/lu/lurk/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/lu/lurk/package.nix b/pkgs/by-name/lu/lurk/package.nix index 8f36a05f6361..ad43e981d6b0 100644 --- a/pkgs/by-name/lu/lurk/package.nix +++ b/pkgs/by-name/lu/lurk/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, fetchpatch, versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -38,6 +39,8 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; versionCheckProgramArg = "--version"; + passthru.updateScript = nix-update-script { }; + meta = { changelog = "https://github.com/jakwai01/lurk/releases/tag/v${finalAttrs.version}"; description = "Simple and pretty alternative to strace";