-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- refactor a bit main.rs routine, and tests/simple.sh - add an haskell.nix based test scenario
- Loading branch information
1 parent
7692f26
commit 3afcc6d
Showing
4 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash -p cargo rustc | ||
set -euxo pipefail | ||
pushd greetings | ||
cargo add hs-bindgen --features full | ||
../../result/bin/cargo-cabal cabal init --overwrite --enable-nix | ||
git add flake.nix | ||
nix build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash -p cargo rustc cabal-install ghc | ||
cd greetings | ||
set -euxo pipefail | ||
pushd greetings | ||
cargo clean | ||
cargo add hs-bindgen --features full | ||
../../result/bin/cargo-cabal cabal init | ||
../../result/bin/cargo-cabal cabal init --overwrite | ||
cargo build | ||
cabal build | ||
cd .. | ||
popd | ||
cabal clean | ||
cabal run test |