Skip to content

Commit abc374f

Browse files
committedJun 18, 2017
ply: add kernel version constraint
1 parent 130082d commit abc374f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

Diff for: ‎pkgs/os-specific/linux/ply/default.nix

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
{ stdenv, kernel, fetchFromGitHub, autoreconfHook, yacc, flex, bison }:
1+
{ stdenv, kernel, fetchFromGitHub, autoreconfHook, yacc, flex, bison, p7zip }:
2+
3+
assert kernel != null -> stdenv.lib.versionAtLeast kernel.version "4.0";
4+
25
let
36
version = "1.0.beta1-9e810b1";
47
in stdenv.mkDerivation {
58
name = "ply-${version}";
6-
nativeBuildInputs = [ autoreconfHook flex yacc ];
9+
nativeBuildInputs = [ autoreconfHook flex yacc p7zip ];
710

811
src = fetchFromGitHub {
912
owner = "iovisor";
@@ -14,7 +17,9 @@ in stdenv.mkDerivation {
1417

1518
preAutoreconf = ''
1619
# ply wants to install header fails to its build directory
17-
xz -d < ${kernel.src} | tar -xf -
20+
# use 7z to handle multiple archive formats transparently
21+
7z x ${kernel.src} -so | 7z x -aoa -si -ttar
22+
1823
configureFlagsArray+=(--with-kerneldir=$(echo $(pwd)/linux-*))
1924
./autogen.sh --prefix=$out
2025
'';

0 commit comments

Comments
 (0)
Please sign in to comment.