38 lines
867 B
Nix
38 lines
867 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;
|
|
};
|
|
}
|