Skip to content

Commit

Permalink
Merge pull request #453 from tock/fix-nix-shell
Browse files Browse the repository at this point in the history
Fix nix shell: withUnfreePackages = false
  • Loading branch information
lschuermann committed Jul 2, 2024
2 parents 6d9340f + 0d46004 commit 0fd309f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ in

shellHook = ''
# TODO: This should be patched into the rpath of the respective libraries!
export LD_LIBRARY_PATH=${pkgs.libusb}/lib:${pkgs.segger-jlink}/lib:$LD_LIBRARY_PATH
'';
export LD_LIBRARY_PATH=${pkgs.libusb}/lib:$LD_LIBRARY_PATH
'' + (lib.optionalString withUnfreePkgs ''
export LD_LIBRARY_PATH=${pkgs.segger-jlink}/lib:$LD_LIBRARY_PATH
'');
}

0 comments on commit 0fd309f

Please sign in to comment.