Skip to content

Commit

Permalink
Switch to Nix flakes (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocharles committed Jul 7, 2023
1 parent 3c0b67f commit 044b918
Show file tree
Hide file tree
Showing 8 changed files with 615 additions and 279 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.5.3
with:
persist-credentials: false
submodules: true

- uses: cachix/install-nix-action@v20
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
Expand All @@ -21,6 +21,5 @@ jobs:
name: rel8
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- run: nix-build -A hsPkgs.rel8.components.library
- run: nix-build -A hsPkgs.rel8.checks.tests
- run: nix-build shell.nix
- run: nix build .#devShells.x86_64-linux.default --print-build-logs
- run: nix flake check --print-build-logs
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
packages: .
constraints: ansi-wl-pprint < 1.0.0
31 changes: 0 additions & 31 deletions default.nix

This file was deleted.

0 comments on commit 044b918

Please sign in to comment.