push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/app/cmd/server.go b/app/cmd/server.go
index fcfbeec2..71f01c9d 100644
--- a/app/cmd/server.go
+++ b/app/cmd/server.go
@@ -46,7 +46,6 @@ func RunServer() int {
})
}
- copyEtcFiles(ctx)
startJobs(ctx)
e := routes(web.New())

View File

@@ -0,0 +1,37 @@
{
buildNpmPackage,
pname,
version,
src,
npmDepsHash,
}:
buildNpmPackage {
inherit version src npmDepsHash;
pname = "${pname}-frontend";
buildPhase = ''
runHook preBuild
npx lingui extract public/
npx lingui compile
NODE_ENV=production node esbuild.config.js
NODE_ENV=production npx webpack-cli
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r dist ssr.js favicon.png robots.txt $out/
runHook postInstall
'';
env = {
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1;
};
}

View File

@@ -0,0 +1,82 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
callPackage,
nixosTests,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "fider";
version = "0.27.0";
src = fetchFromGitHub {
owner = "getfider";
repo = "fider";
tag = "v${finalAttrs.version}";
hash = "sha256-2aV6f4cgO89hIqksT/kutR+ZRTGncuS04kJ5xZZC5Ds=";
};
dontConfigure = true;
dontBuild = true;
# Allow easier version overrides, e.g.:
# pkgs.fider.overrideAttrs (prev: {
# version = "...";
# src = prev.src.override {
# hash = "...";
# };
# vendorHash = "...";
# npmDepsHash = "...";
# })
vendorHash = "sha256-4ilOdUblpwteY0ZInitSuzuB8mU1ltYgRJjla6LiziU=";
npmDepsHash = "sha256-c8CFMMmFcLZkJL50bfLlk2HP9B/rexNZ2WWJkV0x4Rk=";
server = callPackage ./server.nix {
inherit (finalAttrs)
pname
version
src
vendorHash
;
};
frontend = callPackage ./frontend.nix {
inherit (finalAttrs)
pname
version
src
npmDepsHash
;
};
installPhase = ''
runHook preInstall
mkdir -p $out/etc
cp -r locale views migrations $out/
cp -r etc/*.md $out/etc/
ln -s ${finalAttrs.server}/* $out/
ln -s ${finalAttrs.frontend}/* $out/
runHook postInstall
'';
passthru = {
tests = {
inherit (nixosTests) fider;
};
updateScript = nix-update-script { };
};
meta = {
description = "Open platform to collect and prioritize feedback";
homepage = "https://github.com/getfider/fider";
changelog = "https://github.com/getfider/fider/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.agpl3Only;
mainProgram = "fider";
maintainers = with lib.maintainers; [
niklaskorz
];
};
})

View File

@@ -0,0 +1,30 @@
{
buildGoModule,
pname,
version,
src,
vendorHash,
}:
buildGoModule {
inherit version src vendorHash;
pname = "${pname}-server";
patches = [
./0001-disable-etc-copy.patch
];
ldflags = [
"-s"
"-w"
];
doCheck = false; # requires a running PostgreSQL database
# preCheck = ''
# set -o allexport
# source ./.test.env
# set +o allexport
# '';
}