diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml new file mode 100644 index 0000000..1e807b3 --- /dev/null +++ b/.forgejo/workflows/check.yml @@ -0,0 +1,14 @@ +on: [push] +jobs: + check: + runs-on: nixos + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + - run: nix --version + - run: nix flake check --keep-going + build: + runs-on: nixos + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + - run: nix --version + - run: nix build --print-build-logs .# diff --git a/flake.nix b/flake.nix index 6ae3357..6f2ea7e 100644 --- a/flake.nix +++ b/flake.nix @@ -14,8 +14,11 @@ in { formatter = forEachSupportedSystem (system: nixpkgs.legacyPackages.${system}.alejandra); - packages = forEachSupportedSystem (system: { - default = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {}; + packages = forEachSupportedSystem (system: let + webnsupdate = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {}; + in { + inherit webnsupdate; + default = webnsupdate; }); overlays.default = final: prev: {