mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
haskellPackages.Agda: set mainProgram
(cherry picked from commit 30cee69bb9)
This commit is contained in:
@@ -65,10 +65,10 @@ let
|
||||
}
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${Agda.bin}/bin/agda $out/bin/agda \
|
||||
makeWrapper ${lib.getExe Agda} $out/bin/agda \
|
||||
--add-flags "--with-compiler=${ghc}/bin/ghc" \
|
||||
--add-flags "--library-file=${library-file}"
|
||||
ln -s ${Agda.bin}/bin/agda-mode $out/bin/agda-mode
|
||||
ln -s ${lib.getExe' Agda "agda-mode"} $out/bin/agda-mode
|
||||
'';
|
||||
|
||||
withPackages = arg: if isAttrs arg then withPackages' arg else withPackages' { pkgs = arg; };
|
||||
|
||||
@@ -1352,6 +1352,8 @@ builtins.intersectAttrs super {
|
||||
# very useful.
|
||||
# Flag added in Agda 2.6.4.1, was always enabled before
|
||||
(enableCabalFlag "debug")
|
||||
# Set the main program
|
||||
(overrideCabal { mainProgram = "agda"; })
|
||||
# Split outputs to reduce closure size
|
||||
enableSeparateBinOutput
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user