nix-hamburg.astro.nix/nix/site.nix
Sebastian Wendel 9de87733f0
renamed
2023-04-08 14:01:08 +02:00

36 lines
865 B
Nix

{inputs, ...}: let
inherit (inputs.nix-filter.lib) filter inDirectory matchExt;
in {
perSystem = {config, ...}: {
dream2nix.inputs.self = {
source = filter {
root = ./..;
include = [
(inDirectory "src")
(inDirectory "public")
(matchExt "js")
(matchExt "cjs")
(matchExt "mjs")
../package.json
../yarn.lock
];
};
projects.nix-hh-website = {
name = "nix-hh-website";
subsystem = "nodejs";
translator = "yarn-lock";
subsystemInfo.nodejs = 18;
};
packageOverrides.nix-hh-website.copy-nix-hh-website = {
installPhase = ''
mkdir -p $out
cp -rv ./dist/* $out
'';
};
};
packages.nix-hh-website = config.dream2nix.outputs.self.packages.nix-hh-website;
};
}