Merge pull request #224001 from NickCao/tcsh-cross
tcsh: fix cross compilation
This commit is contained in:
commit
0d3d2a2231
|
@ -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)";
|
||||
|
|
Loading…
Reference in a new issue