Skip to content

Commit

Permalink
Use autopatchelf on solana binaries to make them usable on NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jan 8, 2025
1 parent 5dc5873 commit 334079b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ with pkgs; let
pkgs.stdenv.mkDerivation rec {
inherit name;
url = "https://github.com/anza-xyz/agave/releases/download/${version}/${filename}";

nativeBuildInputs = [
autoPatchelfHook
];

autoPatchelfIgnoreMissingDeps = true;

buildInputs = with pkgs; [stdenv.cc.cc.libgcc stdenv.cc.cc.lib] ++ lib.optionals stdenv.isLinux [ libudev-zero ];

src = pkgs.fetchzip {
inherit url sha256;
};
Expand Down

0 comments on commit 334079b

Please sign in to comment.