radare2: 5.2.0 -> 5.2.1

Also get rid of update script:
Since we no longer bundle capstone it just adds
a bunch of metadata.
Now we can easier auto-update radare2.
This commit is contained in:
Jörg Thalheim
2021-04-22 09:10:17 +02:00
parent 5bad49242c
commit 81b1905c86
2 changed files with 9 additions and 137 deletions
@@ -1,5 +1,4 @@
{ lib
, fetchpatch
, stdenv
, fetchFromGitHub
, buildPackages
@@ -27,44 +26,24 @@
, luaBindings ? false
}:
let
inherit (lib) optional;
#<generated>
# DO NOT EDIT! Automatically generated by ./update.py
gittap = "5.2.0";
gittip = "cf3db945083fb4dab951874e5ec1283128deab11";
rev = "5.2.0";
version = "5.2.0";
sha256 = "08azxfk6mw2vr0x4zbz0612rk7pj4mfz8shrzc9ima77wb52b8sm";
#</generated>
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "radare2";
inherit version;
version = "5.2.1";
src = fetchFromGitHub {
owner = "radare";
repo = "radare2";
inherit rev sha256;
rev = version;
sha256 = "0n3k190qjhdlj10fjqijx6ismz0g7fk28i83j0480cxdqgmmlbxc";
};
patches = [
# fix build against openssl, included in next release
(fetchpatch {
url = "https://github.com/radareorg/radare2/commit/e5e7469b6450c374e0884d35d44824e1a4eb46b4.patch";
sha256 = "sha256-xTmMHvUdW7d2QG7d4hlvMgEcegND7pGU745TWGqzY44=";
})
];
postInstall = ''
install -D -m755 $src/binr/r2pm/r2pm $out/bin/r2pm
'';
WITHOUT_PULL = "1";
makeFlags = [
"GITTAP=${gittap}"
"GITTIP=${gittip}"
"GITTAP=${version}"
"RANLIB=${stdenv.cc.bintools.bintools}/bin/${stdenv.cc.bintools.targetPrefix}ranlib"
];
configureFlags = [
@@ -89,10 +68,10 @@ stdenv.mkDerivation {
zlib
openssl
libuv
] ++ optional useX11 [ gtkdialog vte gtk2 ]
++ optional rubyBindings [ ruby ]
++ optional pythonBindings [ python3 ]
++ optional luaBindings [ lua ];
] ++ lib.optional useX11 [ gtkdialog vte gtk2 ]
++ lib.optional rubyBindings [ ruby ]
++ lib.optional pythonBindings [ python3 ]
++ lib.optional luaBindings [ lua ];
propagatedBuildInputs = [
# radare2 exposes r_lib which depends on these libraries