Skip to content

Commit 749cb2f

Browse files
authored
Buildkite support with nix (#5)
1 parent b7230da commit 749cb2f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

default.nix

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
with import <nixpkgs> {};
2+
pkgs.stdenv.mkDerivation rec {
3+
name = "DoctorPretty";
4+
# get deps
5+
buildInputs = [ git swift ];
6+
src = ./.;
7+
8+
configurePhase = ''
9+
# Make clones via https work
10+
export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
11+
'';
12+
13+
buildPhase = ''
14+
swift build
15+
'';
16+
17+
# test
18+
doCheck = true;
19+
checkPhase = ''
20+
SWIFTPM_TEST_DoctorPretty=YES swift test
21+
'';
22+
23+
installPhase = ''
24+
touch $out
25+
'';
26+
}
27+

0 commit comments

Comments
 (0)