Skip to content

Commit

Permalink
Add agda-tools input to flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Mar 12, 2024
1 parent a87148c commit 893c479
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 10 deletions.
160 changes: 153 additions & 7 deletions flake.lock

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

15 changes: 12 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
url = "github:cardano-scaling/haskell-language-server?ref=2.6-patched";
flake = false;
};
agda-tools.url = "github:HeinrichApfelmus/agda-notes?dir=nix/agda-hs-tools";
};

outputs = inputs:
Expand Down Expand Up @@ -52,13 +53,21 @@
gitAndTools.git
haskellPackages.ghcid
haskellPackages.hlint

(haskell-nix.tool "ghc964" "haskell-language-server" ({pkgs, ...}: rec {
# Use the github source of HLS that is tested with haskell.nix CI
src = inputs.hls;
# Use the github source of HLS that is tested with haskell.nix CI
src = inputs.hls;
}))

inputs.agda-tools.packages.${system}.agda
inputs.agda-tools.packages.${system}.agda2hs
];

shell.shellHook = ''
export AGDA_DIR=${inputs.agda-tools.packages.${system}.agda-dir.outPath}
'';

shell.withHoogle = true;

}).flake (
# we also want cross compilation to windows.
nixpkgs.lib.optionalAttrs (system == "x86_64-linux") {
Expand Down

0 comments on commit 893c479

Please sign in to comment.