mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
freebsd.ldd: init
This commit is contained in:
parent
34bca6f3ca
commit
f7e66eab17
21
pkgs/os-specific/bsd/freebsd/pkgs/ldd.nix
Normal file
21
pkgs/os-specific/bsd/freebsd/pkgs/ldd.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
mkDerivation,
|
||||||
|
libelf,
|
||||||
|
}:
|
||||||
|
mkDerivation {
|
||||||
|
path = "usr.bin/ldd";
|
||||||
|
extraPaths = [
|
||||||
|
"libexec/rtld-elf"
|
||||||
|
"contrib/elftoolchain/libelf"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ libelf ];
|
||||||
|
|
||||||
|
env = {
|
||||||
|
NIX_CFLAGS_COMPILE = "-D_RTLD_PATH=${lib.getLib stdenv.cc.libc}/libexec/ld-elf.so.1";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta.platforms = lib.platforms.freebsd;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user