File: patchelf.nix

package info (click to toggle)
patchelf 0.18.0-1.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,464 kB
  • sloc: cpp: 5,481; sh: 940; makefile: 194; ansic: 44; asm: 20
file content (21 lines) | stat: -rw-r--r-- 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, buildPackages, autoreconfHook, version, src, overrideCC }:
let
  # on windows we use win32 threads to get a fully static binary
  gcc = buildPackages.wrapCC (buildPackages.gcc-unwrapped.override ({
    threadsCross = {
      model = "win32";
      package = null;
    };
  }));

  stdenv' = if (stdenv.cc.isGNU && stdenv.targetPlatform.isWindows) then
    overrideCC stdenv gcc
  else
    stdenv;
in
stdenv'.mkDerivation {
  pname = "patchelf";
  inherit version src;
  nativeBuildInputs = [ autoreconfHook ];
  doCheck = true;
}