1
0
Fork 0

Start to add new package SAML Jackson

This commit is contained in:
Felix Albrigtsen 2023-04-23 05:12:47 +02:00
parent f77a5e946f
commit d6d2535686
3 changed files with 48 additions and 0 deletions

View File

@ -7,6 +7,7 @@
./services/postgres.nix ./services/postgres.nix
./services/jokum.nix ./services/jokum.nix
./services/jackson.nix
]; ];
sops.defaultSopsFile = ../../secrets/bicep/bicep.yaml; sops.defaultSopsFile = ../../secrets/bicep/bicep.yaml;

View File

@ -0,0 +1,15 @@
{ pkgs, config, secrets, inputs, ... }:
let
jackson = pkgs.callPackage ../../../pkgs/jackson { };
in {
systemd.services.jackson = {
description = "Jackson";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
ExecStart = "${jackson}/bin/jackson";
DynamicUser = true;
Restart = "always";
};
};
}

32
pkgs/jackson/default.nix Normal file
View File

@ -0,0 +1,32 @@
{ lib, buildNpmPackage, fetchFromGitHub }:
buildNpmPackage rec {
pname = "jackson";
version = "1.9.6";
src = fetchFromGitHub {
owner = "boxyhq";
repo = pname;
rev = "v${version}";
hash = "sha256-iZKl2dBBEQLemHMSa6rXYAuCo02WhG/BcYKTmCm46hI=";
};
prePhase = ''
export HOME=$TMPDIR
'';
npmDepsHash = "sha256-pYGdbmfewdvVuNfuWLlj5TmxQGdQfqPZs6TXzttoHYo=";
# The prepack script runs the build script, which we'd rather do in the build phase.
npmFlags = [ "--loglevel silent" ];
#NODE_OPTIONS = "--openssl-legacy-provider";
meta = with lib; {
description = "Enterprise SSO made simple";
homepage = "https://github.com/boxyhq/jackson";
license = licenses.asl20;
maintainers = with maintainers; [ felixalbrigtsen ];
};
}