aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix b/infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix
index 6ea0e6be465b..ab1df8d2bc12 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/libraries/libseccomp/default.nix
@@ -1,15 +1,15 @@
-{ stdenv, fetchurl, getopt, utillinux, gperf }:
+{ stdenv, fetchurl, getopt, util-linux, gperf }:
stdenv.mkDerivation rec {
pname = "libseccomp";
- version = "2.5.0";
+ version = "2.5.1";
src = fetchurl {
url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
- sha256 = "1wql62cg8f95cwpy057cl764nni9g4sdn5lqj68x22kjs8w71yhz";
+ sha256 = "0m8dlg1v7kflcxvajs4p76p275qwsm2abbf5mfapkakp7hw7wc7f";
};
- outputs = [ "out" "lib" "dev" "man" ];
+ outputs = [ "out" "lib" "dev" "man" "pythonsrc" ];
nativeBuildInputs = [ gperf ];
buildInputs = [ getopt ];
@@ -18,12 +18,19 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
- checkInputs = [ utillinux ];
+ checkInputs = [ util-linux ];
doCheck = false; # dependency cycle
# Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
preFixup = "rm -rfv src";
+ # Copy the python module code into a tarball that we can export and use as the
+ # src input for buildPythonPackage calls
+ postInstall = ''
+ cp -R ./src/python/ tmp-pythonsrc/
+ tar -zcf $pythonsrc --transform s/tmp-pythonsrc/python-foundationdb/ ./tmp-pythonsrc/
+ '';
+
meta = with stdenv.lib; {
description = "High level library for the Linux Kernel seccomp filter";
homepage = "https://github.com/seccomp/libseccomp";