1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

Merge pull request #758 from emilazy/babelfish-default

fish: add default for `babelfishPackage`
This commit is contained in:
Michael Hoang 2023-08-06 08:32:26 +10:00 committed by GitHub
commit 8593ffb5de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,9 +37,9 @@ let
'';
babelfishTranslate = path: name:
pkgs.runCommand "${name}.fish" {
nativeBuildInputs = [ cfg.babelfishPackage ];
} "${cfg.babelfishPackage}/bin/babelfish < ${path} > $out;";
pkgs.runCommand "${name}.fish" {} ''
${cfg.babelfishPackage}/bin/babelfish < ${path} > $out
'';
in
@ -68,6 +68,7 @@ in
babelfishPackage = mkOption {
type = types.package;
default = pkgs.babelfish;
description = lib.mdDoc ''
The babelfish package to use when useBabelfish is
set to true.