dgnum.eu/package.nix
Tom Hubrecht e2408410f3
feat(dgnum.eu): v2
Switch to 11ty for the website generation, while keeping the same
content
2024-12-25 22:05:20 +01:00

44 lines
616 B
Nix

{
lib,
buildNpmPackage,
sass,
}:
let
inherit (lib.fileset)
difference
maybeMissing
toSource
unions
;
in
buildNpmPackage {
pname = "dgnum.eu";
version = "2.0";
src = toSource {
root = ./.;
fileset = difference ./. (
unions (
builtins.map maybeMissing [
./.direnv
./.envrc
./_site
./default.nix
./node_modules
./shell.nix
]
)
);
};
npmDepsHash = "sha256-ORR+FQOjW6aF03McT5vrnnUBFeBDwIiEN0Tru8Aty0E=";
buildInputs = [ sass ];
installPhase = ''
mv _site $out
'';
}