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