2023-04-20 18:32:12 +02:00
|
|
|
{
|
2024-10-12 16:26:56 +02:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
2023-10-29 04:54:24 +01:00
|
|
|
|
2024-10-12 16:26:56 +02:00
|
|
|
outputs =
|
|
|
|
{ nixpkgs, flake-utils, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2023-10-29 05:46:53 +01:00
|
|
|
in
|
|
|
|
rec {
|
2024-10-12 16:26:56 +02:00
|
|
|
packages.erratic-gate = pkgs.buildNpmPackage.override { stdenv = pkgs.stdenvNoCC; } {
|
2023-10-29 05:46:53 +01:00
|
|
|
name = "erratic-gate";
|
|
|
|
src = pkgs.lib.cleanSource ./.;
|
|
|
|
|
2024-10-12 16:26:56 +02:00
|
|
|
npmDepsHash = "sha256-f5mw6IjkhZgsIuzCz9d7DvoAdceY1y+yWXn1BOonsVI=";
|
2023-10-29 06:28:40 +01:00
|
|
|
|
2023-10-29 05:46:53 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r dist $out/www
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
packages.default = packages.erratic-gate;
|
|
|
|
}
|
|
|
|
);
|
2023-04-20 18:32:12 +02:00
|
|
|
}
|