flake.nix: Avoid some anti-patterns

Even though nixpkgs.legacyPackages isn’t directly an anti-pattern,
importing it allows passing non-default options.
neomutt
Simon Bruder 2021-11-07 20:31:48 +01:00
parent b8735ee4f1
commit 66f534157d
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 3 additions and 3 deletions

View File

@ -55,13 +55,13 @@
}@inputs: flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) lib;
in
{
checks = {
pre-commit-check = nix-pre-commit-hooks.lib.${system}.run {
src = ./.;
src = self;
hooks = {
black.enable = true;
nixpkgs-fmt.enable = true;
@ -88,7 +88,7 @@
};
source = lib.evalSource (lib.singleton {
config.file = {
path = toString ./.;
path = toString self;
useChecksum = true;
filters = [
{