lsof: Don't record compiler flags / build kernel

This removed glibc.dev from the closure and improves binary
reproducibility.
This commit is contained in:
Eelco Dolstra
2018-10-08 21:59:26 +02:00
parent a3382a85b3
commit 1eff910a15
2 changed files with 44 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
unpackPhase = "tar xvjf $src; cd lsof_*; tar xvf lsof_*.tar; sourceRoot=$( echo lsof_*/); ";
patches = stdenv.lib.optional stdenv.isDarwin ./darwin-dfile.patch;
patches = [ ./no-build-info.patch ] ++ stdenv.lib.optional stdenv.isDarwin ./darwin-dfile.patch;
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace dialects/linux/dlsof.h --replace "defined(__UCLIBC__)" 1