···22 lib,
33 stdenv,
44 fetchFromGitHub,
55- runtimeShell,
65 nixosTests,
76 autoreconfHook,
87 bison,
···4948 "man"
5049 ];
51505252- RUNTIME_SHELL = runtimeShell;
5353-5451 nativeBuildInputs = [
5552 autoreconfHook
5653 bison
···7471 ./keep-path.patch
7572 # Obtain XML resources from XML catalog (patch adapted from gtk-doc)
7673 ./respect-xml-catalog-files-var.patch
7777- ./runtime-shell.patch
7874 ./fix-install-with-tcb.patch
7975 ];
80768181- # The nix daemon often forbids even creating set[ug]id files.
8277 postPatch = ''
7878+ # The nix daemon often forbids even creating set[ug]id files
8379 sed 's/^\(s[ug]idperms\) = [0-9]755/\1 = 0755/' -i src/Makefile.am
8080+8181+ # The default shell is not defined at build time of the package. It is
8282+ # decided at build time of the NixOS configration. Thus, don't decide this
8383+ # here but just point to the location of the shell on the system.
8484+ substituteInPlace configure.ac --replace-fail '$SHELL' /bin/sh
8485 '';
85868687 # `AC_FUNC_SETPGRP' is not cross-compilation capable.
-13
pkgs/by-name/sh/shadow/runtime-shell.patch
···11-diff --git a/configure.ac b/configure.ac
22-index e4c6aaec..03883ad7 100644
33---- a/configure.ac
44-+++ b/configure.ac
55-@@ -682,7 +682,7 @@ if test "$enable_utmpx" = "yes"; then
66- [Define if utmpx should be used])
77- fi
88-99--AC_DEFINE_UNQUOTED(SHELL, ["$SHELL"], [The default shell.])
1010-+AC_DEFINE_UNQUOTED(SHELL, ["$RUNTIME_SHELL"], [The runtime shell.])
1111-1212- AM_GNU_GETTEXT_VERSION(0.16)
1313- AM_GNU_GETTEXT([external], [need-ngettext])