From d2ca5233582dd259db2498263afcf850dacf30a0 Mon Sep 17 00:00:00 2001 From: Paul-Nicolas Madelaine Date: Mon, 18 Sep 2023 14:05:24 +0200 Subject: [PATCH] add dev shell --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 87c7e44..311a91e 100644 --- a/flake.nix +++ b/flake.nix @@ -7,12 +7,15 @@ outputs = { self, nixpkgs, flake-utils, }: flake-utils.lib.eachDefaultSystem (system: - let pkgs = import nixpkgs { inherit system; }; + let + pkgs = import nixpkgs { inherit system; }; + python = pkgs.python3.withPackages (ps: with ps; [ markdown pelican ]); in { packages.default = pkgs.writeTextDir "index.html" '' Hello world! This is the personal website of Paul-Nicolas Madelaine. ''; + devShells.default = pkgs.mkShell { packages = [ python ]; }; }); }