website/flake.nix

25 lines
562 B
Nix
Raw Permalink Normal View History

2025-02-02 20:14:31 +01:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
2025-02-15 16:59:33 +01:00
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
2025-02-02 20:14:31 +01:00
let
pkgs = nixpkgs.legacyPackages.${system};
in
2025-02-15 16:59:33 +01:00
{
2025-02-02 20:14:31 +01:00
packages.website = pkgs.stdenv.mkDerivation {
name = "0xa-website";
2025-02-15 16:59:33 +01:00
src = src/.;
2025-02-02 20:14:31 +01:00
installPhase = "cp -r . $out";
};
2025-02-15 16:59:33 +01:00
packages.default = self.packages.${system}.website;
2025-02-02 20:14:31 +01:00
}
);
}