Files
nixpkgs/pkgs/by-name/ok/oksh/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
900 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
buildPackages,
ncurses,
}:
stdenv.mkDerivation rec {
pname = "oksh";
version = "7.7";
src = fetchFromGitHub {
owner = "ibara";
repo = "oksh";
rev = "oksh-${version}";
hash = "sha256-Go73MvL9Mi/Rz1KzrKM7KP9UkI9GQFTduMPSUxEbl70=";
};
strictDeps = true;
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace configure --replace "./conftest" "echo"
'';
configureFlags = [ "--no-strip" ];
buildInputs = [ ncurses ];
meta = with lib; {
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
mainProgram = "oksh";
homepage = "https://github.com/ibara/oksh";
license = licenses.publicDomain;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
passthru = {
shellPath = "/bin/oksh";
};
}