mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
d46e78ed0f
Ensure that bin/scmp_sys_resolver doesn't have $TMPDIR in its RPATH.
I can't reproduce the issue reported in
98edb24368
that required the addition of
a wrapper script. It seems to work fine without.
29 lines
845 B
Nix
29 lines
845 B
Nix
{ stdenv, fetchurl, getopt, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libseccomp-${version}";
|
|
version = "2.3.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
|
|
sha256 = "3ddc8c037956c0a5ac19664ece4194743f59e1ccd4adde848f4f0dae7f77bca1";
|
|
};
|
|
|
|
buildInputs = [ getopt makeWrapper ];
|
|
|
|
patchPhase = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
# Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
|
|
preFixup = "rm -rfv src";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "High level library for the Linux Kernel seccomp filter";
|
|
homepage = "https://github.com/seccomp/libseccomp";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ thoughtpolice wkennington ];
|
|
};
|
|
}
|