summary refs log tree commit diff
path: root/pkgs/development/libraries/libseccomp/default.nix
blob: 00655b51afc758947049f8f019a4b3225491ee54 (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
25
26
27
{ stdenv, fetchFromGitHub, autoreconfHook, getopt }:

stdenv.mkDerivation rec {
  name    = "libseccomp-${version}";
  version = "2.2.0";

  src = fetchFromGitHub {
    owner = "seccomp";
    repo = "libseccomp";
    rev = "v${version}";
    sha256 = "0vfd6hx92cp1jaqxxaj30r92bfm6fmamxi2yqxrl82mqism1lk84";
  };

  buildInputs = [ autoreconfHook getopt ];

  patchPhase = ''
    patchShebangs .
  '';

  meta = with stdenv.lib; {
    description = "high level library for the Linux Kernel seccomp filter";
    homepage    = "http://sourceforge.net/projects/libseccomp";
    license     = licenses.lgpl2;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ thoughtpolice wkennington ];
  };
}