Merge pull request #224001 from NickCao/tcsh-cross

tcsh: fix cross compilation
This commit is contained in:
Nick Cao 2023-04-08 15:31:20 +08:00 committed by GitHub
commit 0d3d2a2231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
{ 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)";