nixpkgs/pkgs/shells/ksh/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

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