2014-09-03 20:01:39 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, libusb, readline, libewf, perl, zlib, openssl,
|
2016-09-13 18:42:55 +01:00
|
|
|
gtk2 ? null, vte ? null, gtkdialog ? null,
|
2014-09-03 20:01:39 +01:00
|
|
|
python ? null,
|
|
|
|
ruby ? null,
|
|
|
|
lua ? null,
|
|
|
|
useX11, rubyBindings, pythonBindings, luaBindings}:
|
|
|
|
|
2016-09-13 18:42:55 +01:00
|
|
|
assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null);
|
2014-09-03 20:01:39 +01:00
|
|
|
assert rubyBindings -> ruby != null;
|
|
|
|
assert pythonBindings -> python != null;
|
|
|
|
|
2016-05-06 15:30:50 +01:00
|
|
|
let
|
2014-09-03 20:01:39 +01:00
|
|
|
optional = stdenv.lib.optional;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-06 15:30:50 +01:00
|
|
|
version = "0.10.6";
|
2014-09-03 20:01:39 +01:00
|
|
|
name = "radare2-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://radare.org/get/${name}.tar.xz";
|
2016-05-06 15:30:50 +01:00
|
|
|
sha256 = "0icxd8zilygnggxc50lkk6jmcq8xl66rqxqhzqwpiprbn8k7b24f";
|
2014-09-03 20:01:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig readline libusb libewf perl zlib openssl]
|
2016-09-13 18:42:55 +01:00
|
|
|
++ optional useX11 [gtkdialog vte gtk2]
|
2014-09-03 20:01:39 +01:00
|
|
|
++ optional rubyBindings [ruby]
|
|
|
|
++ optional pythonBindings [python]
|
|
|
|
++ optional luaBindings [lua];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free advanced command line hexadecimal editor";
|
|
|
|
homepage = http://radare.org/;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|