From 876ff45fd5cacff64217addb3d10e0ed15074517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 27 Jun 2012 22:23:15 +0200 Subject: [PATCH] linux perf: Allowing perf to build with its gtk interface. Disabled by default, it can be enabled using overrides. --- pkgs/os-specific/linux/kernel/perf.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/perf.nix b/pkgs/os-specific/linux/kernel/perf.nix index dc49f10c177d..669f61556fc2 100644 --- a/pkgs/os-specific/linux/kernel/perf.nix +++ b/pkgs/os-specific/linux/kernel/perf.nix @@ -1,5 +1,8 @@ { stdenv, kernel, elfutils, python, perl, newt, slang, asciidoc, xmlto -, docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison }: +, docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkgconfig +, withGtk ? false, gtk ? null }: + +assert withGtk -> gtk != null; stdenv.mkDerivation { name = "perf-linux-${kernel.version}"; @@ -14,7 +17,8 @@ stdenv.mkDerivation { # perf refers both to newt and slang buildNativeInputs = [ asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt flex bison ]; - buildInputs = [ elfutils python perl newt slang ]; + buildInputs = [ elfutils python perl newt slang pkgconfig] ++ + stdenv.lib.optional withGtk gtk; installFlags = "install install-man ASCIIDOC8=1";