add flake.nix
This commit is contained in:
parent
dd6e4afb13
commit
11e7b05d35
4 changed files with 104 additions and 0 deletions
41
flake.nix
Normal file
41
flake.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs =
|
||||
{ self
|
||||
, nixpkgs
|
||||
, flake-utils
|
||||
,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
nativeBuildInputs = with pkgs; [ ];
|
||||
buildInputs = with pkgs; [ ];
|
||||
in
|
||||
with pkgs;
|
||||
rec {
|
||||
packages = rec {
|
||||
website = pkgs.stdenv.mkDerivation {
|
||||
name = "website";
|
||||
version = "2025-09-29";
|
||||
src = ./.;
|
||||
inherit nativeBuildInputs buildInputs;
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -pr ./* $out/
|
||||
'';
|
||||
};
|
||||
default = website;
|
||||
};
|
||||
devShells.default = mkShell {
|
||||
buildInputs = buildInputs ++ [ ];
|
||||
inherit nativeBuildInputs;
|
||||
packages = with pkgs; [ ];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue