Backport PR#9633 by cole-h: package: don't set sysconfdir in devShells
(cherry-picked from commit ba0087316acc2aba999cabe5e1a159da636b2569) Change-Id: I5a50afb3b7b65516df798ee51b74f06727a91928
This commit is contained in:
parent
9f242fae76
commit
84727bebb4
2 changed files with 5 additions and 2 deletions
|
@ -313,6 +313,7 @@
|
||||||
inherit stdenv versionSuffix fileset;
|
inherit stdenv versionSuffix fileset;
|
||||||
boehmgc = pkgs.boehmgc-nix;
|
boehmgc = pkgs.boehmgc-nix;
|
||||||
busybox-sandbox-shell = pkgs.busybox-sandbox-shell or pkgs.default-busybox-sandbox;
|
busybox-sandbox-shell = pkgs.busybox-sandbox-shell or pkgs.default-busybox-sandbox;
|
||||||
|
forDevShell = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
nix.overrideAttrs (prev: {
|
nix.overrideAttrs (prev: {
|
||||||
|
|
|
@ -44,6 +44,8 @@
|
||||||
# Set to true to build the release notes for the next release.
|
# Set to true to build the release notes for the next release.
|
||||||
buildUnreleasedNotes ? false,
|
buildUnreleasedNotes ? false,
|
||||||
internalApiDocs ? false,
|
internalApiDocs ? false,
|
||||||
|
# Avoid setting things that would interfere with a functioning devShell
|
||||||
|
forDevShell ? false,
|
||||||
|
|
||||||
# Not a real argument, just the only way to approximate let-binding some
|
# Not a real argument, just the only way to approximate let-binding some
|
||||||
# stuff for argument defaults.
|
# stuff for argument defaults.
|
||||||
|
@ -205,12 +207,12 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||||
"--with-sandbox-shell=${busybox-sandbox-shell}/bin/busybox"
|
"--with-sandbox-shell=${busybox-sandbox-shell}/bin/busybox"
|
||||||
] ++ lib.optionals (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) [
|
] ++ lib.optionals (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) [
|
||||||
"LDFLAGS=-fuse-ld=gold"
|
"LDFLAGS=-fuse-ld=gold"
|
||||||
] ++ [ "--sysconfdir=/etc" ]
|
]
|
||||||
++ lib.optional stdenv.hostPlatform.isStatic "--enable-embedded-sandbox-shell"
|
++ lib.optional stdenv.hostPlatform.isStatic "--enable-embedded-sandbox-shell"
|
||||||
++ lib.optionals (finalAttrs.doCheck || internalApiDocs) testConfigureFlags
|
++ lib.optionals (finalAttrs.doCheck || internalApiDocs) testConfigureFlags
|
||||||
++ lib.optional (!canRunInstalled) "--disable-doc-gen"
|
++ lib.optional (!canRunInstalled) "--disable-doc-gen"
|
||||||
++ [ (lib.enableFeature internalApiDocs "internal-api-docs") ]
|
++ [ (lib.enableFeature internalApiDocs "internal-api-docs") ]
|
||||||
;
|
++ lib.optional (!forDevShell) "--sysconfdir=/etc";
|
||||||
|
|
||||||
installTargets = lib.optional internalApiDocs "internal-api-html";
|
installTargets = lib.optional internalApiDocs "internal-api-html";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue