8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
15 rev = "${pname}-${version}";
16 sha256 = "sha256-r75jjH1E7/36b0ebjsZK7rAuOHEyaIta5Bi8nB4zVjo=";
21 postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
22 substituteInPlace configure --replace "./conftest" "echo"
25 configureFlags = [ "--no-strip" ];
27 buildInputs = [ ncurses ];
30 description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
32 homepage = "https://github.com/ibara/oksh";
33 license = licenses.publicDomain;
34 maintainers = with maintainers; [ siraben ];
35 platforms = platforms.all;
39 shellPath = "/bin/oksh";