-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
652 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ pkgs ? import ../../nix { } }: | ||
let cronosd = (pkgs.callPackage ../../. { }); | ||
{ | ||
pkgs ? import ../../nix { }, | ||
}: | ||
let | ||
cronosd = (pkgs.callPackage ../../. { }); | ||
in | ||
cronosd.overrideAttrs (oldAttrs: { | ||
patches = oldAttrs.patches or [ ] ++ [ | ||
./broken-cronosd.patch | ||
]; | ||
patches = oldAttrs.patches or [ ] ++ [ ./broken-cronosd.patch ]; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,47 @@ | ||
let | ||
pkgs = import ../../nix { }; | ||
fetchFlake = repo: rev: (pkgs.flake-compat { | ||
src = { | ||
outPath = builtins.fetchTarball "https://github.com/${repo}/archive/${rev}.tar.gz"; | ||
inherit rev; | ||
shortRev = builtins.substring 0 7 rev; | ||
}; | ||
}).defaultNix; | ||
fetchFlake = | ||
repo: rev: | ||
(pkgs.flake-compat { | ||
src = { | ||
outPath = builtins.fetchTarball "https://github.com/${repo}/archive/${rev}.tar.gz"; | ||
inherit rev; | ||
shortRev = builtins.substring 0 7 rev; | ||
}; | ||
}).defaultNix; | ||
# v1.0.15 | ||
releasedGenesis = (fetchFlake "crypto-org-chain/cronos" "1f5e2618362303d91f621b47cbc1115cf4fa0195").default; | ||
releasedGenesis = | ||
(fetchFlake "crypto-org-chain/cronos" "1f5e2618362303d91f621b47cbc1115cf4fa0195").default; | ||
# release/v1.1.x | ||
released1_1 = (fetchFlake "crypto-org-chain/cronos" "69a80154b6b24fca15f3562e2c4b312ee1092220").default; | ||
released1_1 = | ||
(fetchFlake "crypto-org-chain/cronos" "69a80154b6b24fca15f3562e2c4b312ee1092220").default; | ||
# release/v1.2.x | ||
released1_2 = (fetchFlake "crypto-org-chain/cronos" "1aea999eef67a0a01b22422bad94b36e45b9759a").default; | ||
released1_2 = | ||
(fetchFlake "crypto-org-chain/cronos" "1aea999eef67a0a01b22422bad94b36e45b9759a").default; | ||
# release/v1.3.x | ||
released1_3 = (fetchFlake "crypto-org-chain/cronos" "e1d819c862b30f0ce978baf2addb12516568639e").default; | ||
released1_3 = | ||
(fetchFlake "crypto-org-chain/cronos" "e1d819c862b30f0ce978baf2addb12516568639e").default; | ||
current = pkgs.callPackage ../../. { }; | ||
in | ||
pkgs.linkFarm "upgrade-test-package" [ | ||
{ name = "genesis"; path = releasedGenesis; } | ||
{ name = "v1.1.0"; path = released1_1; } | ||
{ name = "v1.2"; path = released1_2; } | ||
{ name = "v1.3"; path = released1_3; } | ||
{ name = "v1.4"; path = current; } | ||
{ | ||
name = "genesis"; | ||
path = releasedGenesis; | ||
} | ||
{ | ||
name = "v1.1.0"; | ||
path = released1_1; | ||
} | ||
{ | ||
name = "v1.2"; | ||
path = released1_2; | ||
} | ||
{ | ||
name = "v1.3"; | ||
path = released1_3; | ||
} | ||
{ | ||
name = "v1.4"; | ||
path = current; | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
{ runCommand | ||
, windows | ||
, stdenv | ||
, rocksdb | ||
, bzip2 | ||
, lz4 | ||
, snappy | ||
, zstd | ||
, zlib | ||
, cronosd | ||
{ | ||
runCommand, | ||
windows, | ||
stdenv, | ||
rocksdb, | ||
bzip2, | ||
lz4, | ||
snappy, | ||
zstd, | ||
zlib, | ||
cronosd, | ||
}: | ||
runCommand "tarball-${cronosd.name}" | ||
{ | ||
# manually enumerate the runtime dependencies of cronosd on mingwW64 | ||
deps = [ | ||
"${rocksdb}/bin/librocksdb-shared.dll" | ||
"${snappy}/bin/libsnappy.dll" | ||
"${lz4.out}/lib/liblz4.dll" | ||
"${bzip2.bin}/bin/libbz2-1.dll" | ||
"${zlib}/bin/zlib1.dll" | ||
"${zstd.bin}/bin/libzstd.dll" | ||
"${windows.mingw_w64_pthreads}/bin/libwinpthread-1.dll" | ||
"${windows.mcfgthreads}/bin/libmcfgthread-1.dll" | ||
"${stdenv.cc.cc.lib}/x86_64-w64-mingw32/lib/libgcc_s_seh-1.dll" | ||
"${stdenv.cc.cc.lib}/x86_64-w64-mingw32/lib/libstdc++-6.dll" | ||
]; | ||
} '' | ||
mkdir -p $out | ||
for so in $deps | ||
do | ||
cp $so $out/ | ||
done | ||
{ | ||
# manually enumerate the runtime dependencies of cronosd on mingwW64 | ||
deps = [ | ||
"${rocksdb}/bin/librocksdb-shared.dll" | ||
"${snappy}/bin/libsnappy.dll" | ||
"${lz4.out}/lib/liblz4.dll" | ||
"${bzip2.bin}/bin/libbz2-1.dll" | ||
"${zlib}/bin/zlib1.dll" | ||
"${zstd.bin}/bin/libzstd.dll" | ||
"${windows.mingw_w64_pthreads}/bin/libwinpthread-1.dll" | ||
"${windows.mcfgthreads}/bin/libmcfgthread-1.dll" | ||
"${stdenv.cc.cc.lib}/x86_64-w64-mingw32/lib/libgcc_s_seh-1.dll" | ||
"${stdenv.cc.cc.lib}/x86_64-w64-mingw32/lib/libstdc++-6.dll" | ||
]; | ||
} | ||
'' | ||
mkdir -p $out | ||
for so in $deps | ||
do | ||
cp $so $out/ | ||
done | ||
cp ${cronosd}/bin/${cronosd.meta.mainProgram} $out/ | ||
'' | ||
cp ${cronosd}/bin/${cronosd.meta.mainProgram} $out/ | ||
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{ buildGoModule | ||
, fetchFromGitHub | ||
}: | ||
{ buildGoModule, fetchFromGitHub }: | ||
|
||
let | ||
version = "1.5.0"; | ||
|
Oops, something went wrong.