diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 0db177d..6ca5e70 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,7 +1,7 @@ on: [push] jobs: test: - runs-on: nix + runs-on: nix steps: - - uses: actions/checkout@v3 - - run: nix --version + - uses: actions/checkout@v4 + - run: nix run github:Mic92/nix-fast-build -- --no-nom diff --git a/checks/default.nix b/checks/default.nix index 3629929..c671778 100644 --- a/checks/default.nix +++ b/checks/default.nix @@ -1,7 +1,10 @@ { - perSystem = {config, ...}: { + perSystem = {config, pkgs, ...}: { checks = { inherit (config.packages) ccrEmacs; + test = pkgs.hello.overrideDerivation (_: { + name = "test"; + }); }; }; } diff --git a/packages/default.nix b/packages/default.nix index a4d9425..8be51f3 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -49,10 +49,12 @@ cp $f $out/"libtree-sitter-$(basename $f)" done ''; - ccrEmacsWithoutPackages = pkgs.emacs-git.override { + ccrEmacsWithoutPackages = (pkgs.emacs-git.override { withSQLite3 = true; withWebP = true; withPgtk = true; + }).overrideAttrs { + name = "test"; }; ccrEmacs = (pkgs.emacsPackagesFor config.packages.ccrEmacsWithoutPackages).emacsWithPackages