Files
haskell.nix/scripts/check-path-support.nix
Hamish Mackenzie 53cf60c83c Use nixpkgs 22.05 for scripts (#1632)
This should daily updates which are failing with:

```
error: unrecognised flag '--accept-flake-config'
```

See https://buildkite.com/input-output-hk/haskell-dot-nix-nightly-updates/builds/1318#0182f20e-bd2b-4840-a930-af2815df793c

This change also updates to the newer mkdocs in nixpkgs 22.05 and updates the check-path-support to use a combination of nixpkgs and ghc that should be in the hydra cache.
2022-08-31 17:47:50 +12:00

14 lines
432 B
Nix

{ stdenv, lib, writeScript, coreutils, gnutar, gzip, nix, gitMinimal, compiler-nix-name }:
with lib;
writeScript "check-path-supprot.sh" ''
#!${stdenv.shell}
set -euo pipefail
export PATH="${makeBinPath [ coreutils gnutar gzip nix gitMinimal ]}"
nix-build -E '((import ./. {}).pkgs.haskell-nix.cabalProject { compiler-nix-name = "${compiler-nix-name}"; src = ./test/cabal-simple; }).cabal-simple.components.library'
''