on iko/ghcjs-patch-master help sign in
Test `cabalProject` when `src` is a non store path (#752)
29a9b93Hamish Mackenzie
.buildkite/pipeline.yml+5
@@ -33,3 +33,8 @@ steps:
33 command:
33 command:
34 - nix-build build.nix -A maintainer-scripts.check-materialization-concurrency -o check-materialization-concurrency.sh
34 - nix-build build.nix -A maintainer-scripts.check-materialization-concurrency -o check-materialization-concurrency.sh
35 - ./check-materialization-concurrency.sh
35 - ./check-materialization-concurrency.sh
36+
37+ - label: 'Make sure non store paths like can be used as src'
38+ command:
39+ - nix-build build.nix -A maintainer-scripts.check-path-support -o check-path-support.sh
40+ - ./check-path-support.sh
build.nix+1
@@ -55,6 +55,7 @@ in rec {
55 ];
55 ];
56 };
56 };
57 check-materialization-concurrency = pkgs.buildPackages.callPackage ./scripts/check-materialization-concurrency/check.nix {};
57 check-materialization-concurrency = pkgs.buildPackages.callPackage ./scripts/check-materialization-concurrency/check.nix {};
58+ check-path-support = pkgs.buildPackages.callPackage ./scripts/check-path-support.nix {};
58 };
59 };
59
60
60 # These are pure parts of maintainer-script so they can be built by hydra
61 # These are pure parts of maintainer-script so they can be built by hydra
scripts/check-path-support.nixnew file+13
@@ -0,0 +1,13 @@
1+{ stdenv, writeScript, nix }:
2+
3+with stdenv.lib;
4+
5+writeScript "check-path-supprot.sh" ''
6+ #!${stdenv.shell}
7+
8+ set -euo pipefail
9+
10+ export PATH="${makeBinPath [ nix ]}"
11+
12+ nix-build -E '((import ./. {}).pkgs.haskell-nix.cabalProject { compiler-nix-name = "ghc865"; src = ./test/cabal-simple; }).cabal-simple.components.library'
13+''