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:
commit
8593ffb5de
1 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue