crystal: add support for passing custom build options when using the shard builder

This commit is contained in:
Peter Hoeg 2022-01-18 11:32:17 +08:00
parent d4de0d5628
commit 8a9421f028

View file

@ -77,7 +77,7 @@ stdenv.mkDerivation (mkDerivationArgs // {
'') '')
crystalBinaries) crystalBinaries)
++ lib.optional (format == "shards") ++ lib.optional (format == "shards")
"shards build --local --production ${lib.concatStringsSep " " defaultOptions}" "shards build --local --production ${lib.concatStringsSep " " (args.options or defaultOptions)}"
++ [ "runHook postBuild" ])); ++ [ "runHook postBuild" ]));
installPhase = args.installPhase or (lib.concatStringsSep "\n" ([ installPhase = args.installPhase or (lib.concatStringsSep "\n" ([