Github actions use nix

This commit is contained in:
eikek
2024-03-10 15:50:06 +01:00
parent 3aad3b7be4
commit 8a41ed3fd3
7 changed files with 32 additions and 76 deletions

View File

@ -16,22 +16,24 @@
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
sbt17 = pkgs.sbt.override { jre = pkgs.jdk17; };
devshellPkgs = with pkgs; [
jq
scala-cli
ciPkgs = with pkgs; [
sbt17
netcat
jdk17
wget
which
dpkg
elmPackages.elm
fakeroot
zola
yarn
inotifyTools
nodejs
];
devshellPkgs = ciPkgs ++ (with pkgs; [
jq
scala-cli
netcat
wget
which
inotifyTools
]);
docspellPkgs = pkgs.callPackage (import ./nix/pkg.nix) {};
dockerAmd64 = pkgs.pkgsCross.gnu64.callPackage (import ./nix/docker.nix) {
inherit (docspellPkgs) docspell-restserver docspell-joex;
@ -101,6 +103,10 @@
DEV_VM = "dev-vm";
VM_SSH_PORT = "10022";
};
ci = pkgs.mkShellNoCC {
buildInputs = ciPkgs;
SBT_OPTS = "-Xmx2G -Xss4m";
};
};
})
// {