writers: fix bug by typo
checks / check-links (pull_request) Successful in 23s Details
checks / checks-impure (pull_request) Successful in 1m54s Details
checks / checks (pull_request) Successful in 2m17s Details

This commit is contained in:
DavHau 2024-02-27 22:21:42 +07:00
parent 2ccf32c36b
commit e930e14238
1 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,14 @@
{ pkgs, buildPackages, lib, stdenv, libiconv, mkNugetDeps, mkNugetSource, gixy, makeWrapper, }:
{
buildPackages,
gixy,
lib,
libiconv,
makeWrapper,
mkNugetDeps,
mkNugetSource,
pkgs,
stdenv,
}:
let
inherit (lib)
concatMapStringsSep
@ -6,7 +16,6 @@ let
escapeShellArg
last
optionalString
stringLength
strings
types
;
@ -214,7 +223,7 @@ rec {
# If any libraries are specified, ruby.withPackages is used as interpreter, otherwise the "bare" ruby is used.
makeRubyWriter = ruby: rubyPackages: buildRubyPackages: name: { libraries ? [], ... } @ args:
makeScriptWriter (
(builtins.reamoveAttrs args ["libraries"])
(builtins.removeAttrs args ["libraries"])
// {
interpreter =
if libraries == []