1
Fork 0
e11sync/flake.nix

37 lines
896 B
Nix
Raw Normal View History

2023-12-14 18:16:04 +02:00
{
nixConfig = {
trusted-substituters = "https://cache.nixos.org/";
trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=";
extra-experimental-features = "nix-command flakes";
};
inputs = {
2023-12-14 18:24:10 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-12-14 18:16:04 +02:00
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
2023-12-14 18:24:10 +02:00
devDeps = with pkgs; [
python3Packages.django_4
python3Packages.django-libsass
2023-12-14 18:24:10 +02:00
hugo
brotli
zopfli
parallel
];
2023-12-14 18:16:04 +02:00
in {
devShells.default = pkgs.mkShell {
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
packages = devDeps;
};
formatter = pkgs.alejandra;
});
}