Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .buildkite/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#! /usr/bin/env nix-shell
#! nix-shell --pure -i bash -p nix cabal-install ghc nix-prefetch-scripts

export NIX_PATH="nixpkgs=channel:nixos-19.03"

set -euo pipefail

# This file can interfere with the build.
# https://github.com/input-output-hk/haskell.nix/issues/57
rm -f .nix-tools.cache

echo "+++ Cabal configure"
cabal new-update
cabal new-configure

echo
echo "+++ Run stable version of plan-to-nix"
nix build -f https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz nix-tools -o nt
./nt/bin/plan-to-nix --output nix1 --plan-json dist-newstyle/cache/plan.json

echo
echo "+++ Build project"
nix build -f nix1 nix-tools.components.exes --no-link

echo
echo "+++ Run tests"
echo "There are no tests -- https://github.com/input-output-hk/haskell.nix/issues/51"

echo
echo "+++ Run plan-to-nix again"

nix build -f nix1 nix-tools.components.exes.plan-to-nix
./result/bin/plan-to-nix --output nix2 --plan-json dist-newstyle/cache/plan.json

echo
echo "+++ Build project"

nix build -f nix2 nix-tools.components.exes --no-link
5 changes: 5 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- label: 'Build'
command: ./.buildkite/build.sh
agents:
system: x86_64-linux
3 changes: 0 additions & 3 deletions .stack-to-nix.cache

This file was deleted.

45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

10 changes: 1 addition & 9 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ started with your own project.

* Building

To build all of the ~nix-tools~ using Nix:

#+begin_example
nix-build -A nix-tools-all-execs
./result/bin/stack-to-nix --help
#+end_example

If you are making changes to the Haskell code, then build the Cabal
project with:
To build all of the ~nix-tools~ using Cabal:

#+begin_example
cabal new-build
Expand Down
21 changes: 0 additions & 21 deletions default.nix

This file was deleted.

78 changes: 0 additions & 78 deletions hackage-db.nix

This file was deleted.

50 changes: 0 additions & 50 deletions haskell-src-meta.nix

This file was deleted.

Loading