2022-01-07 19:53:26 +00:00
|
|
|
{ pkgs ? (
|
|
|
|
let
|
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
flakeLock = fromJSON (readFile ./flake.lock);
|
|
|
|
locked = flakeLock.nodes.nixpkgs.locked;
|
|
|
|
nixpkgs = assert locked.type == "github"; builtins.fetchTarball {
|
|
|
|
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
|
|
|
|
sha256 = locked.narHash;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import nixpkgs { }
|
|
|
|
)
|
2021-09-25 03:12:56 +00:00
|
|
|
, srcDir ? null
|
|
|
|
}:
|
|
|
|
|
2021-09-25 03:17:06 +00:00
|
|
|
(pkgs.callPackage ./default.nix { inherit srcDir; }).overrideAttrs (old: {
|
2021-09-25 03:12:56 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
|
|
|
|
|
|
|
pkgs.editorconfig-checker
|
|
|
|
|
2021-09-25 03:17:06 +00:00
|
|
|
pkgs.nixpkgs-fmt
|
|
|
|
|
|
|
|
(pkgs.python3.withPackages (ps: [
|
2021-09-25 03:12:56 +00:00
|
|
|
ps.pytest
|
|
|
|
]))
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
})
|