Fix build

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-04-26 21:27:28 +03:00
parent b78866f8bd
commit d9d2be31fa
2 changed files with 14 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
static static
result

View File

@@ -12,11 +12,14 @@
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in in
{ {
packages.default = pkgs.buildGoModule { packages = {
pname = "slenpaste"; default = pkgs.buildGoModule {
version = "0.1.0"; pname = "slenpaste";
src = ./.; version = "0.1.0";
goPackagePath = "github.com/slendidev/slenpaste"; src = ./.;
goPackagePath = "github.com/slendidev/slenpaste";
vendorHash = null;
};
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
@@ -36,6 +39,11 @@
default = "0.0.0.0:8080"; default = "0.0.0.0:8080";
description = "Listen address (host:port)"; description = "Listen address (host:port)";
}; };
options.services.slenpaste.staticDir = lib.mkOption {
type = lib.types.str;
default = "/var/lib/slenpaste";
description = "Directory which contains the actual paste data";
};
options.services.slenpaste.expireDur = lib.mkOption { options.services.slenpaste.expireDur = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "0"; default = "0";