#!/usr/bin/env nix-shell
#!nix-shell -p nodePackages.node2nix -i bash

SRC="$(nix-build $HOME/depot --no-out-link -A nix.pkgs.authentik.src)"

exec node2nix \
  -16 \
  -i "$SRC/website/package.json" \
  -l "$SRC/website/package-lock.json" \
  -o node-packages.nix \
  -c node-composition.nix