From 5b787eba2560086070d96e4ce82ea10ce66add2e Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 9 Jun 2018 02:47:28 -0500 Subject: [PATCH 1/2] tcsh: patch to fix w/musl --- pkgs/shells/tcsh/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 = '' From b19a03ec622038fd870f5163652cbf03a8ef7b36 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 9 Jun 2018 03:14:29 -0500 Subject: [PATCH 2/2] tcsh: build for darwin too! --- pkgs/shells/tcsh/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/shells/tcsh/default.nix b/pkgs/shells/tcsh/default.nix index 1dc96655956..0f393c11988 100644 --- a/pkgs/shells/tcsh/default.nix +++ b/pkgs/shells/tcsh/default.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { homepage = http://www.tcsh.org/; license = licenses.bsd2; maintainers = with maintainers; [ AndersonTorres ]; - platforms = platforms.linux; + platforms = platforms.linux ++ platforms.darwin; }; passthru = {