Skip to content

Commit 30cee69

Browse files
committed
haskellPackages.Agda: set mainProgram
1 parent 180947f commit 30cee69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkgs/build-support/agda/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ let
6565
}
6666
''
6767
mkdir -p $out/bin
68-
makeWrapper ${lib.getBin Agda}/bin/agda $out/bin/agda \
68+
makeWrapper ${lib.getExe Agda} $out/bin/agda \
6969
${lib.optionalString (ghc != null) ''--add-flags "--with-compiler=${ghc}/bin/ghc"''} \
7070
--add-flags "--library-file=${library-file}"
71-
ln -s ${lib.getBin Agda}/bin/agda-mode $out/bin/agda-mode
71+
ln -s ${lib.getExe' Agda "agda-mode"} $out/bin/agda-mode
7272
'';
7373

7474
withPackages = arg: if isAttrs arg then withPackages' arg else withPackages' { pkgs = arg; };

pkgs/development/haskell-modules/configuration-nix.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,8 @@ builtins.intersectAttrs super {
13621362
# very useful.
13631363
# Flag added in Agda 2.6.4.1, was always enabled before
13641364
(enableCabalFlag "debug")
1365+
# Set the main program
1366+
(overrideCabal { mainProgram = "agda"; })
13651367
# Split outputs to reduce closure size
13661368
enableSeparateBinOutput
13671369
];

0 commit comments

Comments
 (0)