fosrl-pangolin: allow edition to be overridden (#526560)

This commit is contained in:
nixpkgs-ci[bot]
2026-06-30 11:27:38 +00:00
committed by GitHub
+9 -2
View File
@@ -6,6 +6,7 @@
makeWrapper,
formats,
databaseType ? "sqlite",
edition ? "oss",
environmentVariables ? { },
nixosTests,
}:
@@ -15,6 +16,12 @@ assert lib.assertOneOf "databaseType" databaseType [
"pg"
];
assert lib.assertOneOf "edition" edition [
"enterprise"
"oss"
"saas"
];
let
db =
isLong:
@@ -57,7 +64,7 @@ buildNpmPackage (finalAttrs: {
preBuild = ''
npm run set:${db false}
npm run set:oss
npm run set:${edition}
npm run db:generate
'';
@@ -160,7 +167,7 @@ buildNpmPackage (finalAttrs: {
description = "Tunneled reverse proxy server with identity and access control";
homepage = "https://github.com/fosrl/pangolin";
changelog = "https://github.com/fosrl/pangolin/releases/tag/${finalAttrs.version}";
license = lib.licenses.agpl3Only;
license = [ lib.licenses.agpl3Only ] ++ lib.optional (edition != "oss") lib.licenses.unfree;
maintainers = with lib.maintainers; [
jackr
water-sucks