website/flake.nix

22 lines
576 B
Nix
Raw Normal View History

2023-09-16 09:16:56 +00:00
{
inputs = {
nixpkgs.url = "nixpkgs";
flake-utils.url = "flake-utils";
};
outputs = { self, nixpkgs, flake-utils, }:
flake-utils.lib.eachDefaultSystem (system:
2023-09-18 12:05:24 +00:00
let
pkgs = import nixpkgs { inherit system; };
python = pkgs.python3.withPackages (ps: with ps; [ markdown pelican ]);
2023-09-16 09:16:56 +00:00
in {
packages.default = pkgs.writeTextDir "index.html" ''
Hello world!
2023-09-16 19:15:58 +00:00
This is the personal website of Paul-Nicolas Madelaine.
2023-09-16 09:16:56 +00:00
'';
2023-09-18 12:05:24 +00:00
devShells.default = pkgs.mkShell { packages = [ python ]; };
2023-09-16 09:16:56 +00:00
});
}