mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
treewide: enable strictDeps in bootstrap packages
This commit is contained in:
parent
39b85d1c2a
commit
f002ffed9a
@ -3,6 +3,7 @@
|
||||
stdenv.mkDerivation {
|
||||
name = "expand-response-params";
|
||||
src = ./expand-response-params.c;
|
||||
strictDeps = true;
|
||||
# Work around "stdenv-darwin-boot-2 is not allowed to refer to path
|
||||
# /nix/store/...-expand-response-params.c"
|
||||
unpackPhase = ''
|
||||
|
@ -14,6 +14,7 @@ let
|
||||
mirrorsFile =
|
||||
buildPackages.stdenvNoCC.mkDerivation ({
|
||||
name = "mirrors-list";
|
||||
strictDeps = true;
|
||||
builder = ./write-mirror-list.sh;
|
||||
preferLocalBuild = true;
|
||||
} // mirrors);
|
||||
|
@ -14,6 +14,7 @@ in
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "nuke-references";
|
||||
|
||||
strictDeps = true;
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
@ -44,6 +44,7 @@ stdenv.mkDerivation {
|
||||
inherit pkg-config;
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
@ -80,8 +81,6 @@ stdenv.mkDerivation {
|
||||
ln -s ${pkg-config}/share $out/share
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
wrapperName = "PKG_CONFIG_WRAPPER";
|
||||
|
||||
setupHooks = [
|
||||
|
@ -528,6 +528,7 @@ rec {
|
||||
runCommand name
|
||||
(substitutions // {
|
||||
inherit meta;
|
||||
strictDeps = true;
|
||||
})
|
||||
(''
|
||||
mkdir -p $out/nix-support
|
||||
|
@ -27,6 +27,7 @@ let
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
# TODO: Add a "dev" output containing the header files.
|
||||
outputs = [ "out" "man" "devdoc" ] ++
|
||||
optional crossCompiling "mini";
|
||||
|
@ -5,6 +5,7 @@ sitePackages:
|
||||
let
|
||||
hook = ./setup-hook.sh;
|
||||
in runCommand "python-setup-hook.sh" {
|
||||
strictDeps = true;
|
||||
inherit sitePackages;
|
||||
} ''
|
||||
cp ${hook} hook.sh
|
||||
|
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-95uPkEt0nj4NIK/q3s+CScVbLjLU67CJrjeN9HncryU=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
outputs = [ "out" "dev" ]; # TODO: fix referrers
|
||||
outputBin = "dev";
|
||||
|
||||
|
@ -28,6 +28,7 @@ let self = stdenv.mkDerivation rec {
|
||||
outputs = [ "out" "dev" "info" ];
|
||||
passthru.static = self.out;
|
||||
|
||||
strictDeps = true;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ m4 ];
|
||||
|
||||
|
@ -18,6 +18,7 @@ stdenv.mkDerivation {
|
||||
|
||||
inherit patches;
|
||||
|
||||
strictDeps = true;
|
||||
buildInputs = [ gmp ];
|
||||
|
||||
inherit configureFlags;
|
||||
|
@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
|
||||
# on Darwin, so disable NLS for now.
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin "--disable-nls";
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs =
|
||||
if stdenv.hostPlatform.isNetBSD then [ netbsd.gencat ] else [ gettext ]
|
||||
# Need to regenerate configure script with newer version in order to pass
|
||||
|
@ -21,6 +21,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [];
|
||||
|
||||
strictDeps = true;
|
||||
outputs = [ "out" "dev" "man" "info" ];
|
||||
|
||||
configureFlags = [
|
||||
|
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-dpQM1Od46Ak1eanRlbJf/16Tbp3GJCBoUotDenZ2T5E=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
outputs = [ "bin" "dev" "out" "info" "devdoc" ];
|
||||
|
||||
patches = optional stdenv.isDarwin ./fix-error-darwin.patch;
|
||||
|
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0n846hqfqvmsmim7qdlms0qr86f1hck19p12nq3g3z2x74n3sl0p";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
buildInputs = [ gmp mpfr ];
|
||||
|
||||
doCheck = true; # not cross;
|
||||
|
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [ "out" "dev" "info" "doc" ];
|
||||
|
||||
strictDeps = true;
|
||||
propagatedBuildInputs = lib.optional (!stdenv.isLinux) libiconv;
|
||||
|
||||
configureFlags = [
|
||||
|
@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [ "out" "dev" "doc" "info" ];
|
||||
|
||||
strictDeps = true;
|
||||
# mpfr.h requires gmp.h
|
||||
propagatedBuildInputs = [ gmp ];
|
||||
|
||||
|
@ -44,6 +44,7 @@ stdenv.mkDerivation (rec {
|
||||
./fix-configure-issue-cross.patch
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
outputs = [ "out" "dev" ]
|
||||
++ lib.optional splitStaticOutput "static";
|
||||
setOutputFlags = false;
|
||||
|
@ -9,6 +9,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-6KbrnSjdy6j/7z+iEWUyOem/I5q6agGmt8/Hzq7GnL0=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
buildInputs = [ xz ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
|
||||
./2.71-fix-race.patch
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ m4 perl texinfo ];
|
||||
buildInputs = [ m4 ];
|
||||
postBuild = "
|
||||
|
@ -9,6 +9,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0sdl32qxdy7m06iggmkkvf7j520rmmgbsjzbm7fgnxwxdp6mh7gh";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoconf perl ];
|
||||
buildInputs = [ autoconf ];
|
||||
|
||||
|
@ -109,6 +109,7 @@ stdenv.mkDerivation {
|
||||
|
||||
outputs = [ "out" "info" "man" ];
|
||||
|
||||
strictDeps = true;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [
|
||||
bison
|
||||
|
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-swapHA/ZO8QoDPwumMt6s5gf91oYe+oyk4EfRSyJqMg=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
doCheck = false;
|
||||
|
||||
configureFlags = [ "--with-syscmd-shell=${stdenv.shell}" ]
|
||||
|
@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace build-aux/ltmain.in --replace '#! /usr/bin/env sh' '#!${runtimeShell}'
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoconf automake help2man m4 perl ];
|
||||
propagatedBuildInputs = [ m4 file ];
|
||||
|
||||
|
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-uaRvKYkyLrifpPYjfiCDbFe0VapDoyVF6gk7Qx2YL1w=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
setupHook = [ ./setup-hook.sh ];
|
||||
|
||||
# fails 8 out of 24 tests, problems when loading libc.so.6
|
||||
|
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" "doc" ];
|
||||
strictDeps = true;
|
||||
|
||||
# Process Requires.private properly, see
|
||||
# http://bugs.freedesktop.org/show_bug.cgi?id=4738, migrated to
|
||||
|
@ -14,6 +14,7 @@ let
|
||||
|
||||
ARCH = stdenvNoCC.hostPlatform.linuxArch;
|
||||
|
||||
strictDeps = true;
|
||||
# It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
|
||||
# We do this so we have a build->build, not build->host, C compiler.
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
@ -162,6 +162,7 @@ in
|
||||
# stage1.
|
||||
${localSystem.libc} = self.stdenv.mkDerivation {
|
||||
pname = "bootstrap-stage0-${localSystem.libc}";
|
||||
strictDeps = true;
|
||||
version = "bootstrap";
|
||||
buildCommand = ''
|
||||
mkdir -p $out
|
||||
@ -269,6 +270,7 @@ in
|
||||
inherit (prevStage.bintools.bintools) name;
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
strictDeps = true;
|
||||
# We wouldn't need to *copy* all, but it's easier and the result is temporary anyway.
|
||||
installPhase = ''
|
||||
mkdir -p "$out"/bin
|
||||
|
@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-FnhwNy4OHe8d5M6iYCClkxzcB/EHXg0veXwv43ZlxbA=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
patches = [
|
||||
|
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1ps2i8i212n0f4xpq6clp7h13q7m1y8slqvxha9i8d0bj0qgj5si";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
||||
|
||||
configureFlags = lib.optional enableStatic "--disable-shared";
|
||||
|
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-E+Uyx7Nk99V+I9/uoxRxAxUMuQWTpXr4bBDk9uQRYD8=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file;
|
||||
buildInputs = [ zlib ]
|
||||
++ lib.optional stdenv.hostPlatform.isWindows libgnurx;
|
||||
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1bgafvy3ypbhhfznwjv1lxmd6mci3x1byilnnkc7gcr486wlb8pl";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.gnu.org/software/which/";
|
||||
description = "Shows the full path of (shell) commands";
|
||||
|
@ -18833,7 +18833,7 @@ with pkgs;
|
||||
glibcIconv = libc: let
|
||||
inherit (libc) pname version;
|
||||
libcDev = lib.getDev libc;
|
||||
in runCommand "${pname}-iconv-${version}" {} ''
|
||||
in runCommand "${pname}-iconv-${version}" { strictDeps = true; } ''
|
||||
mkdir -p $out/include
|
||||
ln -sv ${libcDev}/include/iconv.h $out/include
|
||||
'';
|
||||
|
@ -12373,6 +12373,7 @@ let
|
||||
LocaleGettext = buildPerlPackage {
|
||||
pname = "gettext";
|
||||
version = "1.07";
|
||||
strictDeps = true;
|
||||
buildInputs = [ pkgs.gettext ];
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/P/PV/PVANDRY/gettext-1.07.tar.gz";
|
||||
|
Loading…
Reference in New Issue
Block a user