diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9456cd2..6b4e76f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,8 +25,11 @@ jobs: substituters = https://nix-community.cachix.org https://cache.nixos.org https://attic.svrd.me/nocturne github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Check Nix flake + run: nix flake check + - name: Build nocturned - run: nix develop --command "GOOS=linux GOARCH=arm64 go build" + run: nix build - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/flake.nix b/flake.nix index 5dc7b00..c68e64f 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,7 @@ buildGoApplication = gomod2nix.legacyPackages.${system}.buildGoApplication; in { - packages.default = buildGoApplication { + packages.default = (buildGoApplication { name = "nocturned"; version = "1.0.0"; go = pkgs.go_1_22; @@ -66,7 +66,7 @@ homepage = "https://github.com/usenocturne/nocturned"; license = licenses.mit; }; - }; + }).overrideAttrs (old: old // { GOOS = "linux"; GOARCH = "arm64"; }); devShells.default = pkgs.mkShell { buildInputs = with pkgs; [