2009-09-20 11:33:37 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, libusb, readline, lua, libewf, perl,
|
|
|
|
gtk ? null, vte ? null, gtkdialog ? null,
|
|
|
|
python ? null,
|
|
|
|
ruby ? null,
|
|
|
|
useX11, rubyBindings, pythonBindings, luaBindings}:
|
2009-04-21 21:47:51 +02:00
|
|
|
|
2009-09-20 11:33:37 +02:00
|
|
|
assert useX11 -> (gtk != null && vte != null && gtkdialog != null);
|
|
|
|
assert rubyBindings -> ruby != null;
|
|
|
|
assert pythonBindings -> python != null;
|
|
|
|
|
|
|
|
let
|
|
|
|
optional = stdenv.lib.optional;
|
|
|
|
in
|
2010-03-06 00:48:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "radare-1.5";
|
2009-04-21 21:47:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-03-06 00:48:35 +01:00
|
|
|
url = "http://radare.org/get/${name}.tar.gz";
|
|
|
|
sha256 = "1r0c9cc7z9likma8zicp2pbv2y85vjjmnk0k45wdhbvhgqh6il1h";
|
2009-04-21 21:47:51 +02:00
|
|
|
};
|
|
|
|
|
2009-04-21 23:31:08 +02:00
|
|
|
|
2009-09-20 11:33:37 +02:00
|
|
|
buildInputs = [pkgconfig readline libusb libewf perl]
|
|
|
|
++ optional useX11 [gtkdialog vte gtk]
|
|
|
|
++ optional rubyBindings [ruby]
|
|
|
|
++ optional pythonBindings [python]
|
|
|
|
++ optional luaBindings [lua];
|
2009-04-21 21:47:51 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free advanced command line hexadecimal editor";
|
|
|
|
homepage = http://radare.org/;
|
|
|
|
license = "GPLv2+";
|
2009-09-20 11:37:55 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2010-03-06 00:48:35 +01:00
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2009-04-21 21:47:51 +02:00
|
|
|
};
|
|
|
|
}
|