Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADP-3191] Add Agda and agda2hs to flake.nix #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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
Loading