-
-
Save samueldr/dc04c87a3bebd73958ee362629b0dec3 to your computer and use it in GitHub Desktop.
patchelf overlay for shell.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import <nixpkgs> { | |
overlays = [(self: super: { | |
# my_patchelf as patchelf is (I think) required for stdenv, | |
# this otherwise makes it impossible to fetchFromGitHub as | |
# replacing patchelf would replace the initial one. | |
my_patchelf = | |
super.patchelf.overrideAttrs({...}: with self; { | |
# This could also realistically be: | |
# `src = ~/cool-stuff/patchelf/` | |
# if you wanted to hack on a local version. | |
src = fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "patchelf"; | |
rev = "e1e39f3639e39360ceebb2f7ed533cede4623070"; | |
sha256 = "09q1b1yqfzg1ih51v7qjh55vxfdbd8x5anycl8sfz6qy107wr02k"; | |
}; | |
# Required as this is otherwise done by the tarball build output. | |
buildInputs = [ autoreconfHook ]; | |
# Only informational; not required. | |
version = "0.10"; | |
}) | |
; | |
})]; | |
} | |
}: | |
pkgs.mkShell { | |
buildInputs = with pkgs; [ my_patchelf ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment