mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
f85146e2fc
svn path=/nixpkgs/trunk/; revision=17294
36 lines
931 B
Nix
36 lines
931 B
Nix
{stdenv, fetchurl, pkgconfig, libusb, readline, lua, libewf, perl,
|
|
gtk ? null, vte ? null, gtkdialog ? null,
|
|
python ? null,
|
|
ruby ? null,
|
|
useX11, rubyBindings, pythonBindings, luaBindings}:
|
|
|
|
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";
|
|
|
|
src = fetchurl {
|
|
url = http://radare.org/get/radare-1.4.2.tar.gz;
|
|
sha256 = "09pai3k4x3kzq7zjfd8425jjb16fpximrhp5wyy6pwgdc82q30sd";
|
|
};
|
|
|
|
|
|
buildInputs = [pkgconfig readline libusb libewf perl]
|
|
++ optional useX11 [gtkdialog vte gtk]
|
|
++ optional rubyBindings [ruby]
|
|
++ optional pythonBindings [python]
|
|
++ optional luaBindings [lua];
|
|
|
|
meta = {
|
|
description = "Free advanced command line hexadecimal editor";
|
|
homepage = http://radare.org/;
|
|
license = "GPLv2+";
|
|
};
|
|
}
|