Skip to content

Commit

Permalink
Add simple test to check if nix is working
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Nov 27, 2023
1 parent 323e673 commit 49e009b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rules_haskell_nix/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ buildifier_test(
],
verbose = True,
)

sh_test(
name = "nix_smoke_test",
size = "moderate",
srcs = ["nix_test.sh"],
tags = ["external"],
)
5 changes: 5 additions & 0 deletions rules_haskell_nix/nix_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

export XDG_CACHE_HOME=${TMPDIR}

exec nix run -I nixpkgs=../nixpkgs 'nixpkgs#cowsay' -- hello, rules_haskell_nix

0 comments on commit 49e009b

Please sign in to comment.