Making radare more flexible on build options.
svn path=/nixpkgs/trunk/; revision=17294
This commit is contained in:
parent
b1a7cd1692
commit
f85146e2fc
@ -1,7 +1,18 @@
|
|||||||
{stdenv, fetchurl, pkgconfig, gtk, libusb, readline, lua, gtkdialog,
|
{stdenv, fetchurl, pkgconfig, libusb, readline, lua, libewf, perl,
|
||||||
python, ruby, libewf, vte, perl}:
|
gtk ? null, vte ? null, gtkdialog ? null,
|
||||||
|
python ? null,
|
||||||
|
ruby ? null,
|
||||||
|
useX11, rubyBindings, pythonBindings, luaBindings}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
assert useX11 -> (gtk != null && vte != null && gtkdialog != null);
|
||||||
|
assert rubyBindings -> ruby != null;
|
||||||
|
assert pythonBindings -> python != null;
|
||||||
|
|
||||||
|
let
|
||||||
|
optional = stdenv.lib.optional;
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation
|
||||||
|
{
|
||||||
name = "radare-1.4.2";
|
name = "radare-1.4.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -9,10 +20,12 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "09pai3k4x3kzq7zjfd8425jjb16fpximrhp5wyy6pwgdc82q30sd";
|
sha256 = "09pai3k4x3kzq7zjfd8425jjb16fpximrhp5wyy6pwgdc82q30sd";
|
||||||
};
|
};
|
||||||
|
|
||||||
# patches = [ ./lua.patch ];
|
|
||||||
|
|
||||||
buildInputs = [pkgconfig gtk readline libusb lua gtkdialog python
|
buildInputs = [pkgconfig readline libusb libewf perl]
|
||||||
ruby libewf vte perl];
|
++ optional useX11 [gtkdialog vte gtk]
|
||||||
|
++ optional rubyBindings [ruby]
|
||||||
|
++ optional pythonBindings [python]
|
||||||
|
++ optional luaBindings [lua];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Free advanced command line hexadecimal editor";
|
description = "Free advanced command line hexadecimal editor";
|
||||||
|
@ -2722,6 +2722,10 @@ let
|
|||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
inherit (gnome) vte;
|
inherit (gnome) vte;
|
||||||
lua = lua5;
|
lua = lua5;
|
||||||
|
useX11 = getConfig ["radare" "useX11"] false;
|
||||||
|
pythonBindings = getConfig ["radare" "pythonBindings"] false;
|
||||||
|
rubyBindings = getConfig ["radare" "rubyBindings"] false;
|
||||||
|
luaBindings = getConfig ["radare" "luaBindings"] false;
|
||||||
};
|
};
|
||||||
|
|
||||||
ragel = import ../development/tools/parsing/ragel {
|
ragel = import ../development/tools/parsing/ragel {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user