Unverified Commit 0d3d2a22 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #224001 from NickCao/tcsh-cross

tcsh: fix cross compilation
parents de33bfe0 18f4e2dc
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, fetchpatch
, libxcrypt
, ncurses
, buildPackages
}:

stdenv.mkDerivation rec {
@@ -16,19 +16,16 @@ stdenv.mkDerivation rec {
  };

  strictDeps = true;

  depsBuildBuild = [
    buildPackages.stdenv.cc
  ];

  buildInputs = [
    libxcrypt
    ncurses
  ];

  patches = lib.optional stdenv.hostPlatform.isMusl
    # Use system malloc
    (fetchpatch {
      name = "sysmalloc.patch";
      url = "https://git.alpinelinux.org/aports/plain/community/tcsh/001-sysmalloc.patch?id=184585c046cdd56512f1a76e426dd799b368f8cf";
      sha256 = "1qc6ydxhdfizsbkaxhpn3wib8sfphrw10xnnsxx2prvzg9g2zp67";
    });

  meta = with lib; {
    homepage = "https://www.tcsh.org/";
    description = "An enhanced version of the Berkeley UNIX C shell (csh)";