1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libseccomp/default.nix
Eelco Dolstra d46e78ed0f
libseccomp: Fix RPATH
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.
2017-05-04 20:23:13 +02:00

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 ];
};
}