-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Solution: - switch to nixfmt-rfc-style
- Loading branch information
Showing
24 changed files
with
641 additions
and
426 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
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; | ||
# v0.7.0 | ||
released_0 = (fetchFlake "crypto-org-chain/cronos" "799ac47e293403bd57580d2ff96bb8d9851c3cde").default; | ||
released_0 = | ||
(fetchFlake "crypto-org-chain/cronos" "799ac47e293403bd57580d2ff96bb8d9851c3cde").default; | ||
# v0.8.0 | ||
released_1 = (fetchFlake "crypto-org-chain/cronos" "2f2cc88b501b47149690fdef05afbbbe5bc116c9").default; | ||
released_1 = | ||
(fetchFlake "crypto-org-chain/cronos" "2f2cc88b501b47149690fdef05afbbbe5bc116c9").default; | ||
# v1.0.15 | ||
released_2 = (fetchFlake "crypto-org-chain/cronos" "1f5e2618362303d91f621b47cbc1115cf4fa0195").default; | ||
released_2 = | ||
(fetchFlake "crypto-org-chain/cronos" "1f5e2618362303d91f621b47cbc1115cf4fa0195").default; | ||
# v1.1.1 | ||
released_3 = (fetchFlake "crypto-org-chain/cronos" "10b8eeb9052e3c52aa59dec15f5d3aca781d1271").default; | ||
released_3 = | ||
(fetchFlake "crypto-org-chain/cronos" "10b8eeb9052e3c52aa59dec15f5d3aca781d1271").default; | ||
current = pkgs.callPackage ../../. { }; | ||
in | ||
pkgs.linkFarm "upgrade-test-package" [ | ||
{ name = "genesis"; path = released_0; } | ||
{ name = "v0.7.0-hotfix"; path = released_1; } | ||
{ name = "v1.0.0"; path = released_2; } | ||
{ name = "v1.1.0"; path = released_3; } | ||
{ name = "v1.3"; path = current; } | ||
{ | ||
name = "genesis"; | ||
path = released_0; | ||
} | ||
{ | ||
name = "v0.7.0-hotfix"; | ||
path = released_1; | ||
} | ||
{ | ||
name = "v1.0.0"; | ||
path = released_2; | ||
} | ||
{ | ||
name = "v1.1.0"; | ||
path = released_3; | ||
} | ||
{ | ||
name = "v1.3"; | ||
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,4 +1,2 @@ | ||
# some basic overlays nessesary for the build | ||
final: super: { | ||
rocksdb = final.callPackage ./rocksdb.nix { }; | ||
} | ||
final: super: { rocksdb = final.callPackage ./rocksdb.nix { }; } |
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/ | ||
'' |
Oops, something went wrong.