git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #48581 from dtzWill/update/radare2-3.0.0

radare2: 2.9.0 -> 3.0.0, fix to use deps we provide

commit35c037c2f5c7d67c5c119d69808730b0d84cd7c7 authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 17 Oct 2018, 09:17 (8 years ago) parent9aa437326dfc0c
2 files changed+16−13
pkgs/development/tools/analysis/radare2/default.nix+13−9 pkgs/development/tools/analysis/radare2/update.py+3−4
pkgs/development/tools/analysis/radare2/default.nix+13−9
@@ -2,6 +2,7 @@
22, callPackage
33, ninja, meson , pkgconfig
44, libusb, readline, libewf, perl, zlib, openssl
5+, libuv
56, gtk2 ? null, vte ? null, gtkdialog ? null
67, python ? null
78, ruby ? null
@@ -62,12 +63,15 @@ let
6263 "-Dr2_gittip=${gittip}"
6364 # 2.8.0 expects this, but later it becomes an option with default=false.
6465 "-Dcapstone_in_builddir=true"
66+
67+ "-Duse_sys_openssl=true"
68+ "-Duse_sys_zlib=true"
6569 ];
6670
6771 enableParallelBuilding = true;
6872
6973 nativeBuildInputs = [ pkgconfig ninja meson ];
70− buildInputs = [ readline libusb libewf perl zlib openssl]
74+ buildInputs = [ readline libusb libewf perl zlib openssl libuv ]
7175 ++ optional useX11 [gtkdialog vte gtk2]
7276 ++ optional rubyBindings [ruby]
7377 ++ optional pythonBindings [python]
@@ -86,14 +90,14 @@ in {
8690 #<generated>
8791 # DO NOT EDIT! Automatically generated by ./update.py
8892 radare2 = generic {
89− version_commit = "19349";
90− gittap = "2.9.0";
91− gittip = "d5e9539ec8068ca2ab4759dc3b0697781ded4cc8";
92− rev = "2.9.0";
93− version = "2.9.0";
94− sha256 = "0zz6337p9095picfvjrcnqaxdi2a2b68h9my523ilnw8ynwfhdzw";
95− cs_tip = "782ea67e17a391ca0d3faafdc365b335a1a8930a";
96− cs_sha256 = "1maww4ir78a193pm3f8lr2kdkizi7rywn68ffa65ipyr7j4pl6i4";
93+ version_commit = "19720";
94+ gittap = "3.0.0";
95+ gittip = "13e3ebd2aa6653eb5b6bdd65a93dcddf3550fcfa";
96+ rev = "3.0.0";
97+ version = "3.0.0";
98+ sha256 = "0awbk9v7qjkarscaqzyly310f04dxgndxvxwxbjrsswqlp206b40";
99+ cs_tip = "e2c1cd46c06744beaceff42dd882de3a90f0a37c";
100+ cs_sha256 = "1czzqj8zdjgh7h2ixi26ij3mm4bgm4xw2slin6fv73nic8yaw722";
97101 };
98102 r2-for-cutter = generic {
99103 version_commit = "19349";
pkgs/development/tools/analysis/radare2/update.py+3−4
@@ -38,10 +38,9 @@ def get_radare2_rev() -> str:
3838
3939def get_cutter_version() -> str:
4040 version_expr = """
41−(with import <nixpkgs> {}; (builtins.parseDrvName (qt5.callPackage ./cutter.nix {}).name).version)
41+(with import <nixpkgs> {}; (builtins.parseDrvName (qt5.callPackage <radare2/cutter.nix> {}).name).version)
4242"""
43− with SCRIPT_DIR:
44− return sh("nix", "eval", "--raw", version_expr.strip())
43+ return sh("nix", "eval", "--raw", version_expr.strip(), "-I", "radare2={0}".format(SCRIPT_DIR))
4544
4645
4746def get_r2_cutter_rev() -> str:
@@ -109,7 +108,7 @@ def main() -> None:
109108 "https://github.com/radare/radare2",
110109 ".",
111110 )
112− nix_file = str(Path(__file__).parent.joinpath("default.nix"))
111+ nix_file = str(SCRIPT_DIR.joinpath("default.nix"))
113112
114113 radare2_info = get_repo_info(dirname, radare2_rev)
115114