nix-eval-jobs/shell.nix
adisbladis 0fa3b51289 Set src to null in shell.nix
To avoid the contents being copied to the store during development
2022-01-09 11:06:50 +13:00

36 lines
720 B
Nix

{ 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 { }
)
, srcDir ? null
}:
(pkgs.callPackage ./default.nix {
inherit srcDir;
nix = pkgs.nixUnstable;
}).overrideAttrs (old: {
src = null;
nativeBuildInputs = old.nativeBuildInputs ++ [
pkgs.editorconfig-checker
pkgs.nixpkgs-fmt
(pkgs.python3.withPackages (ps: [
ps.pytest
]))
];
})