diff --git a/pkgs/os-specific/linux/ply/default.nix b/pkgs/os-specific/linux/ply/default.nix new file mode 100644 index 000000000000..9d4bdb1e27d3 --- /dev/null +++ b/pkgs/os-specific/linux/ply/default.nix @@ -0,0 +1,28 @@ +{ stdenv, kernel, fetchFromGitHub, autoreconfHook, yacc, flex, bison }: +let + version = "1.0.beta1-9e810b1"; +in stdenv.mkDerivation { + name = "ply-${version}"; + nativeBuildInputs = [ autoreconfHook flex yacc ]; + + src = fetchFromGitHub { + owner = "iovisor"; + repo = "ply"; + rev = "9e810b157ba079c32c430a7d4c6034826982056e"; + sha256 = "15cp6iczawaqlhsa0af6i37zn5iq53kh6ya8s2hzd018yd7mhg50"; + }; + + preAutoreconf = '' + # ply wants to install header fails to its build directory + xz -d < ${kernel.src} | tar -xf - + configureFlagsArray+=(--with-kerneldir=$(echo $(pwd)/linux-*)) + ./autogen.sh --prefix=$out + ''; + + meta = with stdenv.lib; { + description = "dynamic Tracing in Linux"; + homepage = https://wkz.github.io/ply/; + license = [ licenses.gpl2 ]; + maintainers = with maintainers; [ mic92 mbbx6spp ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad5281f6bf59..447f864db6f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12010,6 +12010,8 @@ with pkgs; nvidia_x11_beta = nvidiaPackages.beta; nvidia_x11 = nvidiaPackages.stable; + ply = callPackage ../os-specific/linux/ply { }; + rtl8723bs = callPackage ../os-specific/linux/rtl8723bs { }; rtl8812au = callPackage ../os-specific/linux/rtl8812au { };