11 rustPlatform.buildRustPackage {
12 name = "nixpkgs-check-by-name";
13 src = lib.cleanSource ./.;
14 cargoLock.lockFile = ./Cargo.lock;
20 # Needed to make Nix evaluation work inside the nix build
22 export TEST_ROOT=$(pwd)/test-tmp
23 export NIX_CONF_DIR=$TEST_ROOT/etc
24 export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
25 export NIX_LOG_DIR=$TEST_ROOT/var/log/nix
26 export NIX_STATE_DIR=$TEST_ROOT/var/nix
27 export NIX_STORE_DIR=$TEST_ROOT/store
29 # Ensure that even if tests run in parallel, we don't get an error
30 # We'd run into https://github.com/NixOS/nix/issues/2706 unless the store is initialised first
35 cargo clippy -- -D warnings
37 passthru.shell = mkShell {
38 inputsFrom = [ package ];