ghdl: use fetchFromGitHub
for some reason the sha256 changed...
This commit is contained in:
parent
ecbf44485b
commit
d5ffca8829
@ -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.
|
# mcode only works on x86, while the llvm flavour works on both x86 and x86_64.
|
||||||
|
|
||||||
@ -13,9 +13,11 @@ in
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ghdl-${flavour}-${version}";
|
name = "ghdl-${flavour}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/tgingold/ghdl/archive/v${version}.tar.gz";
|
owner = "tgingold";
|
||||||
sha256 = "09yvgqyglbakd74v2dgr470clzm744i232nixyffcds55vkij5da";
|
repo = "ghdl";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0g72rk2yzr0lrpncq2c1qcv71w3mi2hjq84r1yzgjr6d0qm87r2a";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gnat zlib ] ++ optionals (flavour == "llvm") [ clang ncurses ];
|
buildInputs = [ gnat zlib ] ++ optionals (flavour == "llvm") [ clang ncurses ];
|
||||||
|
Loading…
Reference in New Issue
Block a user