about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWill Dietz <github@wdtz.org>2018-06-09 03:34:49 -0500
committerGitHub <noreply@github.com>2018-06-09 03:34:49 -0500
commit61f0c1ce8757d67af4498bf04e2f5f52023027b2 (patch)
tree62da3d82f0bf75e161900870bc17289edfa5349b /pkgs
parent8846044359aedd4ff2177cb0b9a8135e6a1db693 (diff)
parentb19a03ec622038fd870f5163652cbf03a8ef7b36 (diff)
downloadnixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.tar
nixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.tar.gz
nixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.tar.bz2
nixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.tar.lz
nixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.tar.xz
nixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.tar.zst
nixlib-61f0c1ce8757d67af4498bf04e2f5f52023027b2.zip
Merge pull request #41740 from dtzWill/fix/tcsh-musl
tcsh: patch to fix w/musl
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/shells/tcsh/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/shells/tcsh/default.nix b/pkgs/shells/tcsh/default.nix
index da76e2c3027a..0f393c11988f 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 = ''
@@ -33,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 = {