diff options
author | timor <timor.dd@googlemail.com> | 2016-09-13 19:25:08 +0200 |
---|---|---|
committer | timor <timor.dd@googlemail.com> | 2016-09-20 14:15:52 +0200 |
commit | d5ffca88295c9f10be37b8719546b1b486860039 (patch) | |
tree | b897113565828c5476eff4265b8850c3aafa838c /pkgs/development/compilers/ghdl | |
parent | ecbf44485b3a6b72ba260d20c82881cf10e86b09 (diff) |
ghdl: use fetchFromGitHub
for some reason the sha256 changed...
Diffstat (limited to 'pkgs/development/compilers/ghdl')
-rw-r--r-- | pkgs/development/compilers/ghdl/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/compilers/ghdl/default.nix b/pkgs/development/compilers/ghdl/default.nix index 56d778f4f1c6..ff772864e625 100644 --- a/pkgs/development/compilers/ghdl/default.nix +++ b/pkgs/development/compilers/ghdl/default.nix @@ -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 ]; |