···
14
+
src = fetchFromGitHub {
17
+
tag = "v${version}";
18
+
hash = "sha256-RDEvKh3tUun7wt1nhtCim95wEN9V9RlztZ9zcw9nS1o=";
21
+
vendorHash = "sha256-9GRAlgng+yq7q0VQz374jIOCjeDIIDD631BglM/FsQQ=";
24
+
# This is the go generate is ran in the upstream builder, but we have to run the components seperately for things to work.
26
+
# Hopefully at some point this is no longer necessary
28
+
# Enter package dir, to match behaviour of go:generate
30
+
go run "../../build/go-generate/updateVersionNumbers.go"
31
+
# Ran by go-generate, but breaks build in nix
32
+
# As it tries to download "golang.org/x/exp/slices"
33
+
# go run "../../build/go-generate/updateProtectedUrls.go"
34
+
go run "../../build/go-generate/buildWasm.go"
35
+
# Must specify go root to import wasm_exec.js
36
+
GOROOT="$(go env GOROOT)" go run "../../build/go-generate/copyStaticFiles.go"
37
+
# Return to toplevel before build
50
+
nativeInstallCheckInputs = [ versionCheckHook ];
51
+
versionCheckProgramArg = "--version";
52
+
doInstallCheck = true;
56
+
inherit (nixosTests) gokapi;
58
+
updateScript = nix-update-script { };
62
+
description = "Lightweight selfhosted Firefox Send alternative without public upload. AWS S3 supported";
63
+
homepage = "https://github.com/Forceu/Gokapi";
64
+
changelog = "https://github.com/Forceu/Gokapi/releases/tag/v${version}";
65
+
license = lib.licenses.agpl3Only;
66
+
platforms = lib.platforms.linux;
67
+
maintainers = with lib.maintainers; [
70
+
mainProgram = "gokapi";