diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-04-13 10:20:47 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-04-13 10:20:47 +0100 |
commit | abefb010509750cac40d686164d969e99bf81cbf (patch) | |
tree | f93451443b222704875d3e0ddc0c8b5bdb70ebca /pkgs/development/tools/analysis | |
parent | f6c48829455b0ae7d5050deb23469cec3f801dda (diff) | |
download | nixlib-abefb010509750cac40d686164d969e99bf81cbf.tar nixlib-abefb010509750cac40d686164d969e99bf81cbf.tar.gz nixlib-abefb010509750cac40d686164d969e99bf81cbf.tar.bz2 nixlib-abefb010509750cac40d686164d969e99bf81cbf.tar.lz nixlib-abefb010509750cac40d686164d969e99bf81cbf.tar.xz nixlib-abefb010509750cac40d686164d969e99bf81cbf.tar.zst nixlib-abefb010509750cac40d686164d969e99bf81cbf.zip |
radare2: remove dependency on .git
.git breaks our hashes
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r-- | pkgs/development/tools/analysis/radare2/default.nix | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/pkgs/development/tools/analysis/radare2/default.nix b/pkgs/development/tools/analysis/radare2/default.nix index d1bf0af631c6..5f7b389cc2b1 100644 --- a/pkgs/development/tools/analysis/radare2/default.nix +++ b/pkgs/development/tools/analysis/radare2/default.nix @@ -1,9 +1,10 @@ -{stdenv, fetchFromGitHub, fetchgit, fetchurl, fetchpatch, pkgconfig, libusb, readline, libewf, perl, zlib, openssl, git, -gtk2 ? null, vte ? null, gtkdialog ? null, -python ? null, -ruby ? null, -lua ? null, -useX11, rubyBindings, pythonBindings, luaBindings}: +{stdenv, fetchFromGitHub, pkgconfig, libusb, readline, libewf, perl, zlib, openssl +, gtk2 ? null, vte ? null, gtkdialog ? null +, python ? null +, ruby ? null +, lua ? null +, useX11, rubyBindings, pythonBindings, luaBindings +}: assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null); assert rubyBindings -> ruby != null; @@ -23,13 +24,16 @@ stdenv.mkDerivation rec { sha256 = "07x94chkhpn3wgw4pypn35psxq370j6xwmhf1mh5z27cqkq7c2yd"; }; + # do not try to update capstone + WITHOUT_PULL=1; + postPatch = let cs_tip = "4a1b580d069c82d60070d0869a87000db7cdabe2"; # version from $sourceRoot/shlr/Makefile - capstone = fetchgit { - url = "https://github.com/aquynh/capstone.git"; + capstone = fetchFromGitHub { + owner = "aquynh"; + repo = "capstone"; rev = cs_tip; - sha256 = "1b126npshdbwh5y7rafmb9w4dzlvxsf4ca6bx4zs2y7kbk48jyn8"; - leaveDotGit = true; + sha256 = "0v6rxfpxjq0hf40qn1n5m5wsv1dv6p1j8vm94a708lhvcbk9nkv8"; }; in '' if ! grep -F "CS_TIP=${cs_tip}" shlr/Makefile; then echo "CS_TIP mismatch"; exit 1; fi @@ -39,7 +43,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - nativeBuildInputs = [ pkgconfig git ]; + nativeBuildInputs = [ pkgconfig ]; buildInputs = [ readline libusb libewf perl zlib openssl] ++ optional useX11 [gtkdialog vte gtk2] ++ optional rubyBindings [ruby] |