diff --git a/pkgs/shells/tcsh/default.nix b/pkgs/shells/tcsh/default.nix index da76e2c3027..1dc96655956 100644 --- a/pkgs/shells/tcsh/default.nix +++ b/pkgs/shells/tcsh/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl +{ stdenv, fetchurl, fetchpatch , ncurses }: stdenv.mkDerivation rec { @@ -16,6 +16,13 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses ]; + patches = stdenv.lib.optional stdenv.hostPlatform.isMusl + (fetchpatch { + name = "sysmalloc.patch"; + url = "https://git.alpinelinux.org/cgit/aports/plain/community/tcsh/001-sysmalloc.patch?id=184585c046cdd56512f1a76e426dd799b368f8cf"; + sha256 = "1qc6ydxhdfizsbkaxhpn3wib8sfphrw10xnnsxx2prvzg9g2zp67"; + }); + meta = with stdenv.lib;{ description = "An enhanced version of the Berkeley UNIX C shell (csh)"; longDescription = ''