3
0
Fork 0
forked from mirrors/nixpkgs

ghdl: use fetchFromGitHub

for some reason the sha256 changed...
This commit is contained in:
timor 2016-09-13 19:25:08 +02:00
parent ecbf44485b
commit d5ffca8829

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gnat, zlib, llvm_35, ncurses, clang, flavour ? "mcode" }:
{ stdenv, fetchFromGitHub, gnat, zlib, llvm_35, ncurses, clang, flavour ? "mcode" }:
# mcode only works on x86, while the llvm flavour works on both x86 and x86_64.
@ -13,9 +13,11 @@ in
stdenv.mkDerivation rec {
name = "ghdl-${flavour}-${version}";
src = fetchurl {
url = "https://github.com/tgingold/ghdl/archive/v${version}.tar.gz";
sha256 = "09yvgqyglbakd74v2dgr470clzm744i232nixyffcds55vkij5da";
src = fetchFromGitHub {
owner = "tgingold";
repo = "ghdl";
rev = "v${version}";
sha256 = "0g72rk2yzr0lrpncq2c1qcv71w3mi2hjq84r1yzgjr6d0qm87r2a";
};
buildInputs = [ gnat zlib ] ++ optionals (flavour == "llvm") [ clang ncurses ];