1
0
Fork 0
www/flake.nix

32 lines
615 B
Nix
Raw Normal View History

2023-09-11 22:38:24 +00:00
{
2024-01-11 00:06:12 +00:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/23.11";
2023-09-11 22:38:24 +00:00
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
2024-01-11 00:06:12 +00:00
pkgs = nixpkgs.legacyPackages.${system};
2023-09-11 22:38:24 +00:00
pyenv = pkgs.python3.withPackages (pypkgs: [
pypkgs.markdown
pypkgs.beautifulsoup4
pypkgs.feedgen
2023-09-11 22:38:24 +00:00
]);
in {
packages.${system} = {
inherit pyenv;
};
2023-09-11 22:38:24 +00:00
devShells.${system} = {
default = pkgs.mkShell {
2023-09-12 03:07:12 +00:00
packages = [
pyenv
2023-09-20 03:32:45 +00:00
pkgs.inotify-tools
2023-09-12 03:07:12 +00:00
pkgs.rsync
2023-09-17 00:24:51 +00:00
pkgs.pagefind
2023-09-12 03:07:12 +00:00
];
2023-12-18 17:51:03 +00:00
shellHook = ''
2024-06-25 20:34:32 +00:00
make help
2023-12-18 17:51:03 +00:00
'';
2023-09-11 22:38:24 +00:00
};
};
};
}