Skip to content

Commit

Permalink
upgrade nix dependencies
Browse files Browse the repository at this point in the history
This updates the flake and since we haven't hacked on this for ages
the overlays aren't needed any more since all of them are now
available as builds.
  • Loading branch information
romanofski committed Dec 31, 2024
1 parent 550ccad commit e5cc095
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 176 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.17.20231010
# version: 0.18.1
#
# REGENDATA ("0.17.20231010",["--hlint","--hlint-job","9.4.7","--haddock","--apt","elinks tmux vim less notmuch libnotmuch-dev libtalloc-dev","--github-patches",".github/haskell-ci-github.patch","github","purebred.cabal"])
# REGENDATA ("0.18.1",["--hlint","--hlint-job","9.4.7","--haddock","--apt","elinks tmux vim less notmuch libnotmuch-dev libtalloc-dev","--github-patches",".github/haskell-ci-github.patch","github","purebred.cabal"])
#
name: Haskell-CI
on:
Expand Down Expand Up @@ -71,20 +71,20 @@ jobs:
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
if [ "${{ matrix.setup-method }}" = ghcup ]; then
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
apt-get update
apt-get install -y elinks less libnotmuch-dev libtalloc-dev notmuch tmux vim
else
apt-add-repository -y 'ppa:hvr/ghc'
apt-get update
apt-get install -y "$HCNAME" elinks less libnotmuch-dev libtalloc-dev notmuch tmux vim
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
fi
env:
HCKIND: ${{ matrix.compilerKind }}
Expand All @@ -104,13 +104,13 @@ jobs:
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
else
HC=$HCDIR/bin/$HCKIND
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
fi
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- name: cache (tools)
uses: actions/cache/restore@v3
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-6a3a2bb8
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-fa5cc97b
path: ~/.haskell-ci-tools
- name: install cabal-plan
run: |
Expand All @@ -183,7 +183,7 @@ jobs:
uses: actions/cache/save@v3
if: always()
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-6a3a2bb8
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-fa5cc97b
path: ~/.haskell-ci-tools
- name: checkout
uses: actions/checkout@v3
Expand Down
15 changes: 0 additions & 15 deletions .nix/bimap.nix

This file was deleted.

26 changes: 0 additions & 26 deletions .nix/brick.nix

This file was deleted.

18 changes: 0 additions & 18 deletions .nix/hsnotmuch.nix

This file was deleted.

13 changes: 1 addition & 12 deletions .nix/overlays.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
let
haskellCompilerVersion = "ghc924";
haskellCompilerVersion = "ghc92";
haskellPackagesOverlay = self: super: with super.haskell.lib; {
haskellPackages = super.haskell.packages.${haskellCompilerVersion}.override {
overrides = hself: hsuper: {
purebred = hsuper.callPackage ./purebred.nix { };
purebred-email = hsuper.callPackage ./purebred-email.nix { };
purebred-icu = hsuper.callPackage ./purebred-icu.nix { };
brick = hsuper.callPackage ./brick.nix { };
text-zipper = hsuper.callPackage ./text-zipper.nix { };
bimap = hsuper.callPackage ./bimap.nix { };
vty = hsuper.callPackage ./vty.nix { };
vty-unix = hsuper.callPackage ./vty-unix.nix { };
vty-crossplatform = hsuper.callPackage ./vty-crossplatform.nix { };
notmuch = hsuper.callPackage ./hsnotmuch.nix {
notmuch = self.pkgs.notmuch;
talloc = self.pkgs.talloc;
};
};
};
make-purebred-with-packages = with-icu:
Expand Down
25 changes: 0 additions & 25 deletions .nix/purebred-email.nix

This file was deleted.

13 changes: 0 additions & 13 deletions .nix/text-zipper.nix

This file was deleted.

11 changes: 0 additions & 11 deletions .nix/vty-crossplatform.nix

This file was deleted.

21 changes: 0 additions & 21 deletions .nix/vty-unix.nix

This file was deleted.

19 changes: 0 additions & 19 deletions .nix/vty.nix

This file was deleted.

30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5cc095

Please sign in to comment.