2024-04-15 03:23:23 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPackages
|
|
|
|
, ncurses
|
|
|
|
}:
|
2020-12-01 17:51:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oksh";
|
2024-04-07 13:24:22 +00:00
|
|
|
version = "7.5";
|
2020-12-01 17:51:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ibara";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
2024-04-07 13:24:22 +00:00
|
|
|
sha256 = "sha256-r75jjH1E7/36b0ebjsZK7rAuOHEyaIta5Bi8nB4zVjo=";
|
2020-12-01 17:51:29 +00:00
|
|
|
};
|
|
|
|
|
2022-05-06 18:39:28 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-04-21 15:58:31 +00:00
|
|
|
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
|
|
|
substituteInPlace configure --replace "./conftest" "echo"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--no-strip" ];
|
|
|
|
|
2024-04-15 03:23:23 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-01 17:51:29 +00:00
|
|
|
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "oksh";
|
2020-12-01 17:51:29 +00:00
|
|
|
homepage = "https://github.com/ibara/oksh";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2021-01-26 14:21:02 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/oksh";
|
|
|
|
};
|
2020-12-01 17:51:29 +00:00
|
|
|
}
|