Pin the version of csources as well; Replace fetchGit with fetchTarball

This commit is contained in:
Zahary Karadjov 2019-02-07 20:03:53 +01:00
parent a6ecdb22b4
commit 31b68ccf70
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609

View File

@ -1,6 +1,13 @@
{ stdenv, lib, makeWrapper, git, nodejs, openssl, pcre, readline, sqlite }: { stdenv, lib, makeWrapper, git, nodejs, openssl, pcre, readline, sqlite }:
let
csources = fetchTarball {
url = https://github.com/nim-lang/csources/archive/b56e49bbedf62db22eb26388f98262e2948b2cbc.tar.gz;
sha256 = "00mzzhnp1myjbn3rw8qfnz593phn8vmcffw2lf1r2ncppck5jbpj";
};
stdenv.mkDerivation rec { caBundle = ./ca-bundle.pem;
in stdenv.mkDerivation rec {
# This derivation may be a bit confusing at first, because it builds the Status' # This derivation may be a bit confusing at first, because it builds the Status'
# Nimbus branch of Nim using the standard Nim compiler provided by Nix. # Nimbus branch of Nim using the standard Nim compiler provided by Nix.
# #
@ -11,14 +18,11 @@ stdenv.mkDerivation rec {
# to time. # to time.
name = "status-nim"; name = "status-nim";
version = "0.18.1"; version = "0.19.0";
src = fetchGit { src = fetchTarball {
url = "git://github.com/status-im/Nim"; url = https://github.com/status-im/Nim/archive/c240806756579c3375b1a79e1e65c40087a52ac5.tar.gz;
ref = "nimbus"; sha256 = "1fa1ca145qhi002zj1a4kcq6ihxnyjzq1c5ys7adz796m7g5jw7i";
# Set this to the hash of the head commit in the nimbus branch:
rev = "c240806756579c3375b1a79e1e65c40087a52ac5";
}; };
doCheck = true; doCheck = true;
@ -42,12 +46,17 @@ stdenv.mkDerivation rec {
openssl pcre readline sqlite git openssl pcre readline sqlite git
]; ];
buildPhase = buildPhase = ''
let caBundle = ./ca-bundle.pem;
in ''
export HOME=$TMP export HOME=$TMP
export GIT_SSL_CAINFO=${caBundle} export GIT_SSL_CAINFO=${caBundle}
sh build_all.sh cp -r ${csources} csources
chmod 755 $(find csources -type d)
cd csources
sh build.sh
cd ..
bin/nim c -d:release koch.nim
./koch boot -d:release
./koch tools -d:release
''; '';
installPhase = '' installPhase = ''