Skip to content

Commit

Permalink
clarification in the nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
liesnikov committed Jan 16, 2024
1 parent 5ed6eb3 commit 3804bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
};
agda2hs = agda2hsPackages.withPackages [agda2hslib scopelib];
agda-core = pkgs.haskellPackages.callPackage ./nix/agda-core.nix {inherit agda2hs;};
in rec {
in {
packages = {
agda-core-lib = agdaDerivation
{ name = "agda-core-lib";
Expand All @@ -64,7 +64,7 @@
};

devShells.default = pkgs.haskellPackages.shellFor {
packages = p: [packages.agda-core];
packages = p: [agda-core];
buildInputs = with pkgs.haskellPackages; [
cabal-install
cabal2nix
Expand Down
4 changes: 2 additions & 2 deletions nix/agda-core.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# this package is produced by calling cabal2nix . in the parent directory
# and then changing the following:
# and then doing the following:
# add an agda2hs argument
# add buildTools = [agda2hs];
# change src to ../. instead of ./.
# add buildTools = [agda2hs];
# add preBuild = ''make alllib'';
# maybe there's a better way to do it automatically, but I can't see it immediately
{ mkDerivation, base, lib, agda2hs}:
Expand Down

0 comments on commit 3804bfe

Please sign in to comment.