File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 43
43
- uses : actions/checkout@v3
44
44
- uses : cachix/install-nix-action@v22
45
45
- uses : DeterminateSystems/magic-nix-cache-action@v2
46
- - run : nix develop -Lv -c bash -c "cabal build"
46
+ # for some reason this doesn't work without update, even though it doesn't download anything
47
+ - run : nix develop -Lv -c bash -c "cabal update; cabal v1-build"
Original file line number Diff line number Diff line change 3
3
agda2hs-hs ? ( import ./lib.nix { inherit pkgs ; } ) . agda2hs-hs ,
4
4
} :
5
5
pkgs . haskellPackages . shellFor {
6
+ # This doesn't result in a shell where you can use cabal (v2-)build,
7
+ # due to build-tool-depends in Agda's .cabal file, so for now only v1-build works
8
+ # Making cabal re-install alex and happy from Hackage can work,
9
+ # which will be done if the user runs `cabal update` and `cabal build`.
10
+ # relevant issues listed in:
11
+ # https://gist.github.com/ScottFreeCode/ef9f254e2dd91544bba4a068852fc81f
12
+ # main ones are:
13
+ # https://github.com/haskell/cabal/issues/8434
14
+ # https://github.com/NixOS/nixpkgs/issues/130556
15
+ # https://github.com/NixOS/nixpkgs/issues/176887
6
16
packages = p : [ agda2hs-hs ] ;
7
- buildInputs = with pkgs . haskellPackages ; [
17
+ nativeBuildInputs = with pkgs . haskellPackages ; [
18
+ # related to haskell
8
19
cabal-install
9
- cabal2nix
10
20
haskell-language-server
21
+ # general goodies
11
22
pkgs . agda
23
+ pkgs . nixfmt-rfc-style
24
+ cabal2nix
12
25
] ;
13
26
}
You can’t perform that action at this time.
0 commit comments