website/flake.nix

40 lines
771 B
Nix
Raw Normal View History

2023-06-28 19:00:18 +00:00
{
inputs = {
2024-07-20 14:40:48 +00:00
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";
};
2023-06-28 19:00:18 +00:00
};
2024-07-20 14:40:48 +00:00
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
2024-07-20 14:48:53 +00:00
cp -r $src/* $out
2024-07-20 14:40:48 +00:00
'';
};
};
};
2023-06-28 19:00:18 +00:00
}