website/flake.nix
2024-07-20 16:40:48 +02:00

40 lines
770 B
Nix

{
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
systems = {
url = "github:nix-systems/default";
};
};
outputs = inputs @ {
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = import inputs.systems;
perSystem = {
pkgs,
system,
...
}: {
packages.default = pkgs.stdenvNoCC.mkDerivation {
name = "website";
src = ./src;
dontUnpack = true;
installPhase = ''
mkdir -p $out
cp -r $src/ $out
'';
};
};
};
}