mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 0s
Build Docker Images / lint (push) Failing after 6s
Build Docker Images / check (push) Failing after 6s
Build Docker Images / tests (push) Failing after 6s
Deploy Docs to GitHub Pages / build (push) Failing after 0s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 0s
66 lines
1.5 KiB
Nix
66 lines
1.5 KiB
Nix
{
|
|
description = "Versia Server";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
...
|
|
}:
|
|
{
|
|
overlays.default = final: prev: rec {
|
|
versia-server = final.callPackage ./nix/package.nix {};
|
|
versia-server-worker = final.callPackage ./nix/package-worker.nix {
|
|
inherit versia-server;
|
|
};
|
|
};
|
|
|
|
nixosModules = rec {
|
|
versia-server = import ./nix/module.nix;
|
|
default = versia-server;
|
|
};
|
|
}
|
|
// flake-utils.lib.eachSystem ["x86_64-linux" "aarch64-linux"] (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [self.overlays.default];
|
|
};
|
|
in {
|
|
packages = {
|
|
inherit (pkgs) versia-server versia-server-worker;
|
|
};
|
|
})
|
|
// flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [self.overlays.default];
|
|
};
|
|
in {
|
|
devShells = {
|
|
default = pkgs.mkShell rec {
|
|
libPath = with pkgs;
|
|
lib.makeLibraryPath [
|
|
stdenv.cc.cc.lib
|
|
];
|
|
|
|
LD_LIBRARY_PATH = "${libPath}";
|
|
|
|
buildInputs = with pkgs; [
|
|
bun
|
|
vips
|
|
pnpm
|
|
nodePackages.typescript
|
|
nodePackages.typescript-language-server
|
|
nix-ld
|
|
];
|
|
};
|
|
};
|
|
});
|
|
}
|