From 776c1d49bd704ff476dbd07c8b4df6e01eac8d2a Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Mon, 23 Sep 2024 14:45:46 -0700 Subject: [PATCH] Add bc to nv_fuse_read.sh path The nv_fuse_read.sh shell script (in `l4t-tools`) expects `bc` to be in PATH. --- pkgs/l4t/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/l4t/default.nix b/pkgs/l4t/default.nix index 4dac7081..02eabd24 100644 --- a/pkgs/l4t/default.nix +++ b/pkgs/l4t/default.nix @@ -19,6 +19,8 @@ , gst_all_1 , gtk3 , libv4l +, makeWrapper +, bc , debs , l4tVersion }: @@ -361,11 +363,15 @@ let # For tegrastats and jetson_clocks l4t-tools = buildFromDeb { name = "nvidia-l4t-tools"; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ stdenv.cc.cc.lib l4t-core ]; # Remove some utilities that bring in too many libraries postPatch = '' rm bin/nv_macsec_wpa_supplicant ''; + postFixup = '' + wrapProgram $out/bin/nv_fuse_read.sh --prefix PATH : ${lib.makeBinPath [ bc ]} + ''; }; l4t-wayland = buildFromDeb {