about summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/freebsd/pkgs/libelf.nix
blob: a44ce1685e57d3483df22229a233fc0346e2e424 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, mkDerivation
, bsdSetupHook, freebsdSetupHook
, makeMinimal, install, mandoc, groff
, m4
}:

mkDerivation {
  path = "lib/libelf";
  extraPaths = [
    "contrib/elftoolchain/libelf"
    "contrib/elftoolchain/common"
    "sys/sys/elf32.h"
    "sys/sys/elf64.h"
    "sys/sys/elf_common.h"
  ];
  BOOTSTRAPPING = !stdenv.isFreeBSD;
  nativeBuildInputs = [
    bsdSetupHook freebsdSetupHook
    makeMinimal install mandoc groff

    m4
  ];
  MK_TESTS = "no";
}