This commit is contained in:
Motiejus Jakštys 2024-10-09 22:00:02 -04:00
parent a6c82632a8
commit 738d2de80d
2 changed files with 27 additions and 16 deletions

View File

@ -8,20 +8,31 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # TODO 24.11 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # TODO 24.11
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { outputs =
{
self, self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
... ...
}: }:
flake-utils.lib.eachDefaultSystem (system: let flake-utils.lib.eachDefaultSystem (
pkgs = import nixpkgs {inherit system;}; system:
in { let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
packages = with pkgs; [hugo brotli zopfli parallel dart-sass]; packages = with pkgs; [
hugo
brotli
zopfli
parallel
dart-sass
];
}; };
formatter = pkgs.alejandra; formatter = pkgs.nixfmt-rfc-style;
}); }
);
} }

View File

@ -3,4 +3,4 @@ let
spec = lock.nodes.nixpkgs.locked; spec = lock.nodes.nixpkgs.locked;
nixpkgs = fetchTarball "https://github.com/${spec.owner}/${spec.repo}/archive/${spec.rev}.tar.gz"; nixpkgs = fetchTarball "https://github.com/${spec.owner}/${spec.repo}/archive/${spec.rev}.tar.gz";
in in
import nixpkgs import nixpkgs