git.iko.soy/typeable/nixpkgs
on master help sign in
radare2: remove dependency on .git

.git breaks our hashes

commitabefb010509750cac40d686164d969e99bf81cbf authorJörg Thalheim <joerg@thalheim.io> dateFri 13 Apr 2018, 10:20 (9 years ago) parentf6c4882
1 file changed+15−11
pkgs/development/tools/analysis/radare2/default.nix+15−11
pkgs/development/tools/analysis/radare2/default.nix+15−11
@@ -1,9 +1,10 @@
1−{stdenv, fetchFromGitHub, fetchgit, fetchurl, fetchpatch, pkgconfig, libusb, readline, libewf, perl, zlib, openssl, git,
2−gtk2 ? null, vte ? null, gtkdialog ? null,
3−python ? null,
4−ruby ? null,
5−lua ? null,
6−useX11, rubyBindings, pythonBindings, luaBindings}:
1+{stdenv, fetchFromGitHub, pkgconfig, libusb, readline, libewf, perl, zlib, openssl
2+, gtk2 ? null, vte ? null, gtkdialog ? null
3+, python ? null
4+, ruby ? null
5+, lua ? null
6+, useX11, rubyBindings, pythonBindings, luaBindings
7+}:
78
89assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null);
910assert rubyBindings -> ruby != null;
@@ -23,13 +24,16 @@ stdenv.mkDerivation rec {
2324 sha256 = "07x94chkhpn3wgw4pypn35psxq370j6xwmhf1mh5z27cqkq7c2yd";
2425 };
2526
27+ # do not try to update capstone
28+ WITHOUT_PULL=1;
29+
2630 postPatch = let
2731 cs_tip = "4a1b580d069c82d60070d0869a87000db7cdabe2"; # version from $sourceRoot/shlr/Makefile
28− capstone = fetchgit {
29− url = "https://github.com/aquynh/capstone.git";
32+ capstone = fetchFromGitHub {
33+ owner = "aquynh";
34+ repo = "capstone";
3035 rev = cs_tip;
31− sha256 = "1b126npshdbwh5y7rafmb9w4dzlvxsf4ca6bx4zs2y7kbk48jyn8";
32− leaveDotGit = true;
36+ sha256 = "0v6rxfpxjq0hf40qn1n5m5wsv1dv6p1j8vm94a708lhvcbk9nkv8";
3337 };
3438 in ''
3539 if ! grep -F "CS_TIP=${cs_tip}" shlr/Makefile; then echo "CS_TIP mismatch"; exit 1; fi
@@ -39,7 +43,7 @@ stdenv.mkDerivation rec {
3943
4044 enableParallelBuilding = true;
4145
42− nativeBuildInputs = [ pkgconfig git ];
46+ nativeBuildInputs = [ pkgconfig ];
4347 buildInputs = [ readline libusb libewf perl zlib openssl]
4448 ++ optional useX11 [gtkdialog vte gtk2]
4549 ++ optional rubyBindings [ruby]