nixpkgs/pkgs/development/tools/analysis/radare2/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2014-09-03 19:01:39 +00:00
{stdenv, fetchurl, pkgconfig, libusb, readline, libewf, perl, zlib, openssl,
gtk2 ? null, vte ? null, gtkdialog ? null,
2014-09-03 19:01:39 +00:00
python ? null,
ruby ? null,
lua ? null,
useX11, rubyBindings, pythonBindings, luaBindings}:
assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null);
2014-09-03 19:01:39 +00:00
assert rubyBindings -> ruby != null;
assert pythonBindings -> python != null;
2016-05-06 14:30:50 +00:00
let
2014-09-03 19:01:39 +00:00
optional = stdenv.lib.optional;
in
stdenv.mkDerivation rec {
2017-04-19 10:23:45 +00:00
version = "1.4.0";
2014-09-03 19:01:39 +00:00
name = "radare2-${version}";
src = fetchurl {
2017-03-13 16:53:12 +00:00
url = "http://cloud.radare.org/get/${version}/${name}.tar.gz";
2017-04-19 10:23:45 +00:00
sha256 = "bf6e9ad94fd5828d3936563b8b13218433fbf44231cacfdf37a7312ae2b3e93e";
2014-09-03 19:01:39 +00:00
};
buildInputs = [pkgconfig readline libusb libewf perl zlib openssl]
++ optional useX11 [gtkdialog vte gtk2]
2014-09-03 19:01:39 +00:00
++ optional rubyBindings [ruby]
++ optional pythonBindings [python]
++ optional luaBindings [lua];
meta = {
2017-03-13 16:53:12 +00:00
description = "unix-like reverse engineering framework and commandline tools";
2014-09-03 19:01:39 +00:00
homepage = http://radare.org/;
license = stdenv.lib.licenses.gpl2Plus;
2017-03-13 16:53:12 +00:00
maintainers = with stdenv.lib.maintainers; [raskin makefu];
2014-09-03 19:01:39 +00:00
platforms = with stdenv.lib.platforms; linux;
inherit version;
};
}