1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

build-fhs-userenv-bubblewrap:->writeShellScriptBin

This commit is contained in:
Luigi Sartor Piucco 2021-02-23 11:47:40 -03:00
parent 12c2eae2c5
commit 548d50d695

View file

@ -1,4 +1,4 @@
{ stdenv, lib, buildEnv, writeText, writeScriptBin, pkgs, pkgsi686Linux }:
{ stdenv, lib, buildEnv, writeText, writeShellScriptBin, pkgs, pkgsi686Linux }:
{ name, profile ? ""
, targetPkgs ? pkgs: [], multiPkgs ? pkgs: []
@ -49,9 +49,7 @@ let
[ (toString gcc.cc.lib)
];
ldconfig = writeScriptBin "ldconfig" ''
#!${pkgs.stdenv.shell}
ldconfig = writeShellScriptBin "ldconfig" ''
exec ${pkgs.glibc.bin}/bin/ldconfig -f /etc/ld.so.conf -C /etc/ld.so.cache "$@"
'';
etcProfile = writeText "profile" ''