oksh: fix cross-compilation
This commit is contained in:
parent
da727b72c9
commit
15427feaeb
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchFromGitHub }:
|
{ stdenv, lib, fetchFromGitHub, buildPackages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "oksh";
|
pname = "oksh";
|
||||||
|
@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-076nD0aPps6n5qkR3LQJ6Kn2g3mkov+/M0qSvxNLZ6o=";
|
sha256 = "sha256-076nD0aPps6n5qkR3LQJ6Kn2g3mkov+/M0qSvxNLZ6o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||||
|
substituteInPlace configure --replace "./conftest" "echo"
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = [ "--no-strip" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
|
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
|
||||||
homepage = "https://github.com/ibara/oksh";
|
homepage = "https://github.com/ibara/oksh";
|
||||||
|
|
Loading…
Reference in a new issue