From e7276ad1186c5e688626f0725f9f877eb19f676f Mon Sep 17 00:00:00 2001 From: John Lotoski Date: Mon, 11 Dec 2023 14:55:25 -0600 Subject: [PATCH] imp: add nix ci gha job --- .github/workflows/nix.yml | 20 ++++++++++++++++++++ default.nix | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..f906468 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,20 @@ +name: Nix +on: + push: + branches: + - main + pull_request: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Nix + uses: cachix/install-nix-action@v24 + - run: | + nix --version + nix show-config + nix derivation show .#packages.x86_64-linux.process-compose + nix build -L .#packages.x86_64-linux.process-compose + false diff --git a/default.nix b/default.nix index fdea8ee..0847290 100644 --- a/default.nix +++ b/default.nix @@ -19,7 +19,7 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; vendorHash = "sha256-0On/Rg8c9g45qbLuwhP/ZIGosu0X1uzXfAoddgTCDkg="; - # vendorHash = lib.fakeSha256; + # vendorHash = lib.fakeHash; postInstall = '' mv $out/bin/{src,process-compose}