Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Jan 26, 2024
1 parent 99e2809 commit 152ae38
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ else
OS?=linux
endif

ifeq ($(CI),true)
build-options=--option system $(ARCH)-linux --extra-platforms ${ARCH}-linux
endif

.PHONY: build
build: ## Build application and places the binary under ./result/bin
nix build \
nix build $(build-options) \
--print-build-logs \
.\#devShells.$(ARCH)-$(OS).default


.PHONY: build-dry-run
build-dry-run: ## Run nix flake check
nix build \
nix build $(build-options) \
--dry-run \
--json \
--print-build-logs \
Expand Down
6 changes: 3 additions & 3 deletions lib/go/example/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions overlays/nhost-cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ let
url = "https://github.com/nhost/cli/releases/download/${version}/cli-${version}-darwin-arm64.tar.gz";
sha256 = "0g7zq4qc2jvkj1kd9kd2y1j1hjbpcylg7p8v8v3nhnyvk9li0vgn";
};
x86_64-darwin = rec {
url = "https://github.com/nhost/cli/releases/download/${version}/cli-${version}-darwin-amd64.tar.gz";
sha256 = "0kh593iby5sfsdki2g52f3clkcmhaa3jcxiq3b0a47cw89vrnxic";
};
aarch64-linux = rec {
url = "https://github.com/nhost/cli/releases/download/${version}/cli-${version}-linux-arm64.tar.gz";
sha256 = "0nr3wnkl4id4xzzypz9k5l52i221cv91310d2swd4a7ifn39v42q";
};
x86_64-linux = rec {
url = "https://github.com/nhost/cli/releases/download/${version}/cli-${version}-linux-amd64.tar.gz";
sha256 = "13fr478klqbdbkdw3dwv1yhpz57zcj7jr2lp39cvac81187lgrz7";
Expand Down
12 changes: 12 additions & 0 deletions overlays/nhost-cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#1/usr/bin/env bash

set -eou pipefail


version="$1"
echo "version: $version"

nix-prefetch-url --type sha256 https://github.com/nhost/cli/releases/download/"$version"/cli-"$version"-darwin-arm64.tar.gz
nix-prefetch-url --type sha256 https://github.com/nhost/cli/releases/download/"$version"/cli-"$version"-darwin-amd64.tar.gz
nix-prefetch-url --type sha256 https://github.com/nhost/cli/releases/download/"$version"/cli-"$version"-linux-arm64.tar.gz
nix-prefetch-url --type sha256 https://github.com/nhost/cli/releases/download/"$version"/cli-"$version"-linux-amd64.tar.gz

0 comments on commit 152ae38

Please sign in to comment.