2009-09-20 11:33:37 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, libusb, readline, lua, libewf, perl,
|
2016-09-13 19:42:55 +02:00
|
|
|
gtk2 ? null, vte ? null, gtkdialog ? null,
|
2009-09-20 11:33:37 +02:00
|
|
|
python ? null,
|
|
|
|
ruby ? null,
|
|
|
|
useX11, rubyBindings, pythonBindings, luaBindings}:
|
2009-04-21 21:47:51 +02:00
|
|
|
|
2016-09-13 19:42:55 +02:00
|
|
|
assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null);
|
2009-09-20 11:33:37 +02:00
|
|
|
assert rubyBindings -> ruby != null;
|
|
|
|
assert pythonBindings -> python != null;
|
|
|
|
|
2016-02-12 16:10:11 +01:00
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optional;
|
2009-09-20 11:33:37 +02:00
|
|
|
in
|
2010-03-06 00:48:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-09-03 20:49:09 +02:00
|
|
|
name = "radare-1.5.2";
|
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";
|
2014-09-03 20:49:09 +02:00
|
|
|
sha256 = "1qdrmcnzfvfvqb27c7pknwm8jl2hqa6c4l66wzyddwlb8yjm46hd";
|
2009-04-21 21:47:51 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2009-04-21 23:31:08 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ readline libusb perl]
|
2016-09-13 19:42:55 +02:00
|
|
|
++ optional useX11 [gtkdialog vte gtk2]
|
2009-09-20 11:33:37 +02:00
|
|
|
++ 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/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-09-20 11:37:55 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2017-09-30 21:32:27 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-04-21 21:47:51 +02:00
|
|
|
};
|
|
|
|
}
|