Merge pull request #115197 from SuperSandro2000/fix-collection21
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1jivnjswlhwjfg5v9nwfg3vfssvqbdxxf9znwmfb5dgfblg9wxw9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace 'CC=cc' 'CC=${stdenv.cc.targetPrefix}cc'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man6
|
||||
cp gti $out/bin
|
||||
@@ -18,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://r-wos.org/hacks/gti";
|
||||
homepage = "https://r-wos.org/hacks/gti";
|
||||
license = licenses.mit;
|
||||
description = "Humorous typo-based git runner; drives a car over the terminal";
|
||||
maintainers = with maintainers; [ fadenb ];
|
||||
|
||||
Reference in New Issue
Block a user