mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 09:03:42 +00:00
commit
53db8a2064
@ -23,9 +23,29 @@ in stdenv.mkDerivation {
|
||||
pname = "gnu-config";
|
||||
version = "2023-07-31";
|
||||
|
||||
buildCommand = ''
|
||||
install -Dm755 ${configGuess} $out/config.guess
|
||||
install -Dm755 ${configSub} $out/config.sub
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
cp ${configGuess} ./config.guess
|
||||
cp ${configSub} ./config.sub
|
||||
chmod +w ./config.sub ./config.guess
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
# If this isn't set, `pkgs.gnu-config.overrideAttrs( _: { patches
|
||||
# = ...; })` will behave very counterintuitively: the (unpatched)
|
||||
# gnu-config from the updateAutotoolsGnuConfigScriptsHook stdenv's
|
||||
# defaultNativeBuildInputs will "update" the patched gnu-config by
|
||||
# reverting the patch!
|
||||
dontUpdateAutotoolsGnuConfigScripts = true;
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 ./config.guess $out/config.guess
|
||||
install -Dm755 ./config.sub $out/config.sub
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user