depot/pkgs/shells/ksh/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

59 lines
1.3 KiB
Nix

{
lib,
stdenv,
meson,
ninja,
fetchFromGitHub,
which,
python3,
fetchpatch,
libiconv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ksh";
version = "2020.0.0";
src = fetchFromGitHub {
owner = "att";
repo = "ast";
sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j";
rev = "refs/tags/${finalAttrs.version}";
};
patches = [
(fetchpatch {
url = "https://github.com/att/ast/commit/11983a71f5e29df578b7e2184400728b4e3f451d.patch";
sha256 = "1n9558c4v2qpgpjb1vafs29n3qn3z0770wr1ayc0xjf5z5j4g3kv";
})
];
nativeBuildInputs = [
meson
ninja
which
python3
];
buildInputs = [ libiconv ];
strictDeps = true;
meta = {
description = "KornShell Command And Programming Language";
longDescription = ''
The KornShell language was designed and developed by David G. Korn at
AT&T Bell Laboratories. It is an interactive command language that
provides access to the UNIX system and to many other systems, on the
many different computers and workstations on which it is implemented.
'';
homepage = "https://github.com/att/ast";
license = lib.licenses.cpl10;
maintainers = with lib.maintainers; [ sigmanificient ];
platforms = lib.platforms.all;
};
passthru = {
shellPath = "/bin/ksh";
};
})