tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
Add radare2
Michael Raskin
11 years ago
068d1696
71086542
+48
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
analysis
radare2
default.nix
top-level
all-packages.nix
+39
pkgs/development/tools/analysis/radare2/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{stdenv, fetchurl, pkgconfig, libusb, readline, libewf, perl, zlib, openssl,
2
+
gtk ? null, vte ? null, gtkdialog ? null,
3
+
python ? null,
4
+
ruby ? null,
5
+
lua ? null,
6
+
useX11, rubyBindings, pythonBindings, luaBindings}:
7
+
8
+
assert useX11 -> (gtk != null && vte != null && gtkdialog != null);
9
+
assert rubyBindings -> ruby != null;
10
+
assert pythonBindings -> python != null;
11
+
12
+
let
13
+
optional = stdenv.lib.optional;
14
+
in
15
+
stdenv.mkDerivation rec {
16
+
version = "0.9.7";
17
+
name = "radare2-${version}";
18
+
19
+
src = fetchurl {
20
+
url = "http://radare.org/get/${name}.tar.xz";
21
+
sha256 = "01sdsnbvx1qzyradj03sg24rk2bi9x58m40r0aqj8skv92c87s7l";
22
+
};
23
+
24
+
25
+
buildInputs = [pkgconfig readline libusb libewf perl zlib openssl]
26
+
++ optional useX11 [gtkdialog vte gtk]
27
+
++ optional rubyBindings [ruby]
28
+
++ optional pythonBindings [python]
29
+
++ optional luaBindings [lua];
30
+
31
+
meta = {
32
+
description = "Free advanced command line hexadecimal editor";
33
+
homepage = http://radare.org/;
34
+
license = stdenv.lib.licenses.gpl2Plus;
35
+
maintainers = with stdenv.lib.maintainers; [raskin];
36
+
platforms = with stdenv.lib.platforms; linux;
37
+
inherit version;
38
+
};
39
+
}
+9
pkgs/top-level/all-packages.nix
···
4242
rubyBindings = config.radare.rubyBindings or false;
4243
luaBindings = config.radare.luaBindings or false;
4244
};
0
0
0
0
0
0
0
0
0
4245
4246
ragel = callPackage ../development/tools/parsing/ragel { };
4247
···
4242
rubyBindings = config.radare.rubyBindings or false;
4243
luaBindings = config.radare.luaBindings or false;
4244
};
4245
+
radare2 = callPackage ../development/tools/analysis/radare2 {
4246
+
inherit (gnome) vte;
4247
+
lua = lua5;
4248
+
useX11 = config.radare.useX11 or false;
4249
+
pythonBindings = config.radare.pythonBindings or false;
4250
+
rubyBindings = config.radare.rubyBindings or false;
4251
+
luaBindings = config.radare.luaBindings or false;
4252
+
};
4253
+
4254
4255
ragel = callPackage ../development/tools/parsing/ragel { };
4256