add flake.nix

This commit is contained in:
Jana Dönszelmann 2025-09-29 16:46:52 +02:00
parent dd6e4afb13
commit 11e7b05d35
No known key found for this signature in database
4 changed files with 104 additions and 0 deletions

41
flake.nix Normal file
View 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; [ ];
};
}
);
}