Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, meson, ninja, fetchFromGitHub, which, python3, fetchpatch 2, libiconv }: 3 4stdenv.mkDerivation rec { 5 pname = "ksh"; 6 version = "2020.0.0"; 7 8 src = fetchFromGitHub { 9 owner = "att"; 10 repo = "ast"; 11 rev = version; 12 sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j"; 13 }; 14 15 patches = [ 16 (fetchpatch { 17 url = "https://github.com/att/ast/commit/11983a71f5e29df578b7e2184400728b4e3f451d.patch"; 18 sha256 = "1n9558c4v2qpgpjb1vafs29n3qn3z0770wr1ayc0xjf5z5j4g3kv"; 19 }) 20 ]; 21 22 nativeBuildInputs = [ meson ninja which python3 ]; 23 24 buildInputs = [ libiconv ]; 25 26 strictDeps = true; 27 28 meta = with lib; { 29 description = "KornShell Command And Programming Language"; 30 longDescription = '' 31 The KornShell language was designed and developed by David G. Korn at 32 AT&T Bell Laboratories. It is an interactive command language that 33 provides access to the UNIX system and to many other systems, on the 34 many different computers and workstations on which it is implemented. 35 ''; 36 homepage = "https://github.com/att/ast"; 37 license = licenses.cpl10; 38 maintainers = with maintainers; [ ]; 39 platforms = platforms.all; 40 }; 41 42 passthru = { 43 shellPath = "/bin/ksh"; 44 }; 45}