parent
96ff414198
commit
cda4171d11
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, tcl, makeWrapper, autoreconfHook }:
|
||||
{ lib, stdenv, buildPackages, fetchurl, tcl, makeWrapper, autoreconfHook, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "expect";
|
||||
@ -9,19 +9,27 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0d1cp5hggjl93xwc8h1y6adbnrvpkk0ywkd00inz9ndxn21xm9s9";
|
||||
};
|
||||
|
||||
buildInputs = [ tcl ];
|
||||
nativeBuildInputs = [ makeWrapper autoreconfHook ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/buildroot/buildroot/master/package/expect/0001-enable-cross-compilation.patch";
|
||||
sha256 = "1jwx2l1slidvcpahxbyqs942l81jd62rzbxliyd9lwysk38c8b6b";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s,/bin/stty,$(type -p stty),g" configure.in
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook makeWrapper tcl ];
|
||||
buildInputs = [ tcl ];
|
||||
|
||||
strictDeps = true;
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-tcl=${tcl}/lib"
|
||||
"--with-tcl=${buildPackages.tcl}/lib"
|
||||
"--with-tclinclude=${tcl}/include"
|
||||
"--exec-prefix=\${out}"
|
||||
"--exec-prefix=${placeholder "out"}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user