nixpkgs/pkgs/shells/ksh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-15 02:33:28 +00:00
{
lib,
stdenv,
meson,
ninja,
fetchFromGitHub,
which,
python3,
fetchpatch,
libiconv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ksh";
2019-11-02 22:34:37 +00:00
version = "2020.0.0";
2019-01-06 15:37:53 +00:00
src = fetchFromGitHub {
2024-05-15 02:33:28 +00:00
owner = "att";
repo = "ast";
rev = finalAttrs.version;
2019-11-02 22:34:37 +00:00
sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j";
2019-01-06 15:37:53 +00:00
};
2019-12-30 02:47:14 +00:00
patches = [
(fetchpatch {
url = "https://github.com/att/ast/commit/11983a71f5e29df578b7e2184400728b4e3f451d.patch";
sha256 = "1n9558c4v2qpgpjb1vafs29n3qn3z0770wr1ayc0xjf5z5j4g3kv";
})
];
2024-05-15 02:33:28 +00:00
nativeBuildInputs = [
meson
ninja
which
python3
];
2019-01-06 15:37:53 +00:00
2019-06-06 03:43:37 +00:00
buildInputs = [ libiconv ];
2021-03-26 09:34:04 +00:00
strictDeps = true;
2024-05-15 02:33:28 +00:00
meta = {
2019-01-06 15:37:53 +00:00
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
2019-06-06 03:43:37 +00:00
many different computers and workstations on which it is implemented.
2019-01-06 15:37:53 +00:00
'';
homepage = "https://github.com/att/ast";
2024-05-15 02:33:28 +00:00
license = lib.licenses.cpl10;
maintainers = with lib.maintainers; [ sigmanificient ];
platforms = lib.platforms.all;
2019-01-06 15:37:53 +00:00
};
passthru = {
shellPath = "/bin/ksh";
};
2024-05-15 02:33:28 +00:00
})