Skip to content

Commit

Permalink
feat: use builtins to grap interchaintest
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed Jan 17, 2024
1 parent 51d7d3f commit 6874256
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tools/interchaintest/interchaintest.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
interchaintest = goPkgs.buildGoModule {
pname = "interchaintest";
version = "v8.0.0";
src = pkgs.fetchFromGitHub {
owner = "unionlabs";
repo = "interchaintest";
rev = "acf6294ec4e3eddecabb18816b8c2ded6d444dd9";
sha256 = "sha256-UG61FoJsu2XSttI4yeKYNX4EMMAiWOm5yHTs8bvkORw=";
src = builtins.fetchGit {
name = "interchaintest";
url = "[email protected]:unionlabs/interchaintest";
rev = "67c5183e17094ecff6a75b81ce750f10cbd70f34";
allRefs = true;
};
vendorHash = "sha256-hJZ6klBzD6sbh6G7nwX+rEkh2e7Tq/3nLlOD4dlAvXk=";
buildInputs = [ pkgs.git ];
# src = inputs'.interchaintest;
vendorHash = null;
buildPhase = ''
runHook preBuild
runHook renameImports
Expand All @@ -23,6 +23,8 @@
echo "ls: $(ls -a)"
echo "ls nixbuildtop/go/bin: $(ls $NIX_BUILD_TOP/go/bin)"
go clean -modcache
go test -c -o $out/bin/interchaintest ./cmd/interchaintest
echo "ls bin: $(ls ./bin)"
Expand All @@ -43,7 +45,7 @@
Images = [
{
Repository = "uniond";
Version = "REPLACE_IMAGE_TAG";
Version = imageReplaceString;
UidGid = "1025:1025";
}
];
Expand Down

0 comments on commit 6874256

Please sign in to comment.