capstone: switch to fetchFromGitHub
This commit is contained in:
parent
4c2bc0764d
commit
2636c81023
|
@ -1,12 +1,14 @@
|
||||||
{ lib, stdenv, fetchurl, pkg-config }:
|
{ lib, stdenv, fetchFromGitHub, pkg-config }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "capstone";
|
pname = "capstone";
|
||||||
version = "4.0.2";
|
version = "4.0.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/aquynh/capstone/archive/${version}.tar.gz";
|
owner = "aquynh";
|
||||||
sha256 = "0sjjbqps48az4map0kmai7j7dak3gy0xcq0sgx8fg09g0acdg0bw";
|
repo = "capstone";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-XMwQ7UaPC8YYu4yxsE4bbR3leYPfBHu5iixSLz05r3g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# replace faulty macos detection
|
# replace faulty macos detection
|
||||||
|
|
Loading…
Reference in a new issue