1 { stdenv, lib, fetchFromGitHub, buildPackages }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "${pname}-${version}";
11 sha256 = "sha256-uGiPbkIeKH9zu+xKJJLCYFnyejWLdq7bE59yub3f3KM=";
16 postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
17 substituteInPlace configure --replace "./conftest" "echo"
20 configureFlags = [ "--no-strip" ];
23 description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
24 homepage = "https://github.com/ibara/oksh";
25 license = licenses.publicDomain;
26 maintainers = with maintainers; [ siraben ];
27 platforms = platforms.all;
31 shellPath = "/bin/oksh";