diff options
author | William A. Kennington III <william@wkennington.com> | 2015-03-26 17:54:08 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-03-26 17:54:08 -0700 |
commit | 1eeee6c87c225b0c669997692a11c8983e30da05 (patch) | |
tree | 0125d426d648d18e485f3ecf54942df3b53820a8 /pkgs/development/libraries/libseccomp | |
parent | 7719f7f23b8ad754d3a5916f5a218110c89eb69f (diff) | |
download | nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.tar nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.tar.gz nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.tar.bz2 nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.tar.lz nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.tar.xz nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.tar.zst nixpkgs-1eeee6c87c225b0c669997692a11c8983e30da05.zip |
libseccomp: 2.1.1 -> 2.2.0
Diffstat (limited to 'pkgs/development/libraries/libseccomp')
-rw-r--r-- | pkgs/development/libraries/libseccomp/default.nix | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/pkgs/development/libraries/libseccomp/default.nix b/pkgs/development/libraries/libseccomp/default.nix index a66d31d2ec4..00655b51afc 100644 --- a/pkgs/development/libraries/libseccomp/default.nix +++ b/pkgs/development/libraries/libseccomp/default.nix @@ -1,31 +1,27 @@ -{ stdenv, fetchurl, getopt, bash }: +{ stdenv, fetchFromGitHub, autoreconfHook, getopt }: stdenv.mkDerivation rec { name = "libseccomp-${version}"; - version = "2.1.1"; + version = "2.2.0"; - src = fetchurl { - url = "mirror://sourceforge/libseccomp/libseccomp-${version}.tar.gz"; - sha256 = "0744mjx5m3jl1hzz13zypivl88m0wn44mf5gsrd3yf3w80gc24l8"; + src = fetchFromGitHub { + owner = "seccomp"; + repo = "libseccomp"; + rev = "v${version}"; + sha256 = "0vfd6hx92cp1jaqxxaj30r92bfm6fmamxi2yqxrl82mqism1lk84"; }; - # This fixes the check for 'getopt' to function appropriately. - # Additionally, this package can optionally include the kernel - # headers if they exist, or use its own inline copy of the source - # for talking to the seccomp filter - we opt to always use the - # inline copy + buildInputs = [ autoreconfHook getopt ]; + patchPhase = '' - substituteInPlace ./configure --replace "/bin/bash" "${bash}/bin/bash" - substituteInPlace ./configure --replace "verify_deps getopt" "" - substituteInPlace ./configure --replace getopt ${getopt}/bin/getopt - substituteInPlace ./configure --replace 'opt_sysinc_seccomp="yes"' 'opt_sysinc_seccomp="no"' + patchShebangs . ''; - meta = { + meta = with stdenv.lib; { description = "high level library for the Linux Kernel seccomp filter"; homepage = "http://sourceforge.net/projects/libseccomp"; - license = stdenv.lib.licenses.lgpl2; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + license = licenses.lgpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ thoughtpolice wkennington ]; }; } |