From 790aa985e30bfd09c485f54d7dda64c2212a4115 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 17 Sep 2023 18:06:19 +0000 Subject: [PATCH 1/2] =?UTF-8?q?one=5Fgadget:=201.7.2=20=E2=86=92=201.8.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #255628 --- pkgs/development/tools/misc/one_gadget/Gemfile.lock | 8 ++++---- pkgs/development/tools/misc/one_gadget/gemset.nix | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/tools/misc/one_gadget/Gemfile.lock b/pkgs/development/tools/misc/one_gadget/Gemfile.lock index db20c8b0ffdc..202e17ebdb77 100644 --- a/pkgs/development/tools/misc/one_gadget/Gemfile.lock +++ b/pkgs/development/tools/misc/one_gadget/Gemfile.lock @@ -1,10 +1,10 @@ GEM remote: https://rubygems.org/ specs: - bindata (2.4.4) - elftools (1.1.0) + bindata (2.4.15) + elftools (1.1.3) bindata (~> 2) - one_gadget (1.7.2) + one_gadget (1.8.1) elftools (>= 1.0.2, < 1.2.0) PLATFORMS @@ -14,4 +14,4 @@ DEPENDENCIES one_gadget BUNDLED WITH - 2.1.4 + 2.4.19 diff --git a/pkgs/development/tools/misc/one_gadget/gemset.nix b/pkgs/development/tools/misc/one_gadget/gemset.nix index 89425f805b43..98227bdbe7e5 100644 --- a/pkgs/development/tools/misc/one_gadget/gemset.nix +++ b/pkgs/development/tools/misc/one_gadget/gemset.nix @@ -4,10 +4,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0kz42nvxnk1j9cj0i8lcnhprcgdqsqska92g6l19ziadydfk2gqy"; + sha256 = "04y4zgh4bbcb8wmkxwfqg4saky1d1f3xw8z6yk543q13h8ky8rz5"; type = "gem"; }; - version = "2.4.4"; + version = "2.4.15"; }; elftools = { dependencies = ["bindata"]; @@ -15,10 +15,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0kdf0ck4rzxpd006y09rfwppdrqb3sxww4gzfpv2053yq4mkimbn"; + sha256 = "0p96wj4sz3sfv9yxyl8z530554bkbf82vj24w6x7yf91qa1p8z6i"; type = "gem"; }; - version = "1.1.0"; + version = "1.1.3"; }; one_gadget = { dependencies = ["elftools"]; @@ -26,9 +26,9 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "07s2nigjw1yik895gliz3a7ps0m9j5nccq82zwdd30sv740jmf5b"; + sha256 = "0dwsmjhr9i8gwwbbpiyddbhcx74cvqqk90a5l8zbsjhjfs679irc"; type = "gem"; }; - version = "1.7.2"; + version = "1.8.1"; }; } From 05ae00f98deeee7fff00db3bba92b0b9b44b0f04 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 17 Sep 2023 18:28:00 +0000 Subject: [PATCH 2/2] one_gadget: wrap with binutils in path --- pkgs/development/tools/misc/one_gadget/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/one_gadget/default.nix b/pkgs/development/tools/misc/one_gadget/default.nix index c3d0a6b57b45..6ad2c909c39a 100644 --- a/pkgs/development/tools/misc/one_gadget/default.nix +++ b/pkgs/development/tools/misc/one_gadget/default.nix @@ -1,10 +1,16 @@ -{ lib, bundlerApp, bundlerUpdateScript }: +{ lib, binutils, bundlerApp, bundlerUpdateScript, makeWrapper }: bundlerApp { pname = "one_gadget"; gemdir = ./.; exes = [ "one_gadget" ]; + nativeBuildInputs = [ makeWrapper ]; + + postBuild = '' + wrapProgram $out/bin/one_gadget --prefix PATH : ${binutils}/bin + ''; + passthru.updateScript = bundlerUpdateScript "one_gadget"; meta = with lib; {