File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 8
8
paths = map lib . getLib cfg . libraries ;
9
9
# TODO make glibc here configurable?
10
10
postBuild = ''
11
- ln -s "$(cat ' $ {pkgs . stdenv . cc } /nix-support/dynamic-linker')" $out/share/nix-ld/lib/ld.so
11
+ ln -s $ {pkgs . stdenv . cc . bintools . dynamicLinker } $out/share/nix-ld/lib/ld.so
12
12
'' ;
13
13
extraPrefix = "/share/nix-ld" ;
14
14
ignoreCollisions = true ;
Original file line number Diff line number Diff line change 3
3
stdenv ,
4
4
meson ,
5
5
ninja ,
6
- overrideCC ,
7
6
path ,
8
7
pkgs ,
9
8
} : let
10
9
libDir = if builtins . elem stdenv . system [ "x86_64-linux" "mips64-linux" "powerpc64le-linux" ]
11
10
then "/lib64"
12
11
else "/lib" ;
13
12
in
14
- stdenv . mkDerivation rec {
13
+ stdenv . mkDerivation {
15
14
name = "nix-ld" ;
16
15
src = ./. ;
17
16
30
29
postInstall = ''
31
30
mkdir -p $out/nix-support
32
31
33
- ldpath=${ libDir } /$(basename $(< ${ stdenv . cc } /nix-support/dynamic-linker) )
32
+ ldpath=${ libDir } /$(basename ${ pkgs . stdenv . cc . bintools . dynamicLinker } )
34
33
echo "$ldpath" > $out/nix-support/ldpath
35
34
mkdir -p $out/lib/tmpfiles.d/
36
35
cat > $out/lib/tmpfiles.d/nix-ld.conf <<EOF
You can’t perform that action at this time.
0 commit comments