Skip to content

Commit 2a250dd

Browse files
committed
Add simple test to check if nix is working
1 parent 323e673 commit 2a250dd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

rules_haskell_nix/BUILD.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ buildifier_test(
2121
],
2222
verbose = True,
2323
)
24+
25+
sh_test(
26+
name = "nix_smoke_test",
27+
size = "medium",
28+
srcs = ["nix_test.sh"],
29+
tags = ["external"],
30+
)

rules_haskell_nix/nix_test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
export XDG_CACHE_HOME=${TMPDIR}
4+
5+
exec nix run -I nixpkgs=../nixpkgs 'nixpkgs#cowsay' -- hello, rules_haskell_nix

0 commit comments

Comments
 (0)