lol

ksh: reformat, use finalAttrs over rec

+26 -12
+26 -12
pkgs/shells/ksh/default.nix
··· 1 - { lib, stdenv, meson, ninja, fetchFromGitHub, which, python3, fetchpatch 2 - , libiconv }: 1 + { 2 + lib, 3 + stdenv, 4 + meson, 5 + ninja, 6 + fetchFromGitHub, 7 + which, 8 + python3, 9 + fetchpatch, 10 + libiconv, 11 + }: 3 12 4 - stdenv.mkDerivation rec { 13 + stdenv.mkDerivation (finalAttrs: { 5 14 pname = "ksh"; 6 15 version = "2020.0.0"; 7 16 8 17 src = fetchFromGitHub { 9 - owner = "att"; 10 - repo = "ast"; 11 - rev = version; 18 + owner = "att"; 19 + repo = "ast"; 20 + rev = finalAttrs.version; 12 21 sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j"; 13 22 }; 14 23 ··· 19 28 }) 20 29 ]; 21 30 22 - nativeBuildInputs = [ meson ninja which python3 ]; 31 + nativeBuildInputs = [ 32 + meson 33 + ninja 34 + which 35 + python3 36 + ]; 23 37 24 38 buildInputs = [ libiconv ]; 25 39 26 40 strictDeps = true; 27 41 28 - meta = with lib; { 42 + meta = { 29 43 description = "KornShell Command And Programming Language"; 30 44 longDescription = '' 31 45 The KornShell language was designed and developed by David G. Korn at ··· 34 48 many different computers and workstations on which it is implemented. 35 49 ''; 36 50 homepage = "https://github.com/att/ast"; 37 - license = licenses.cpl10; 38 - maintainers = with maintainers; [ sigmanificient ]; 39 - platforms = platforms.all; 51 + license = lib.licenses.cpl10; 52 + maintainers = with lib.maintainers; [ sigmanificient ]; 53 + platforms = lib.platforms.all; 40 54 }; 41 55 42 56 passthru = { 43 57 shellPath = "/bin/ksh"; 44 58 }; 45 - } 59 + })