diff options
author | Sigmanificient <edhyjox@gmail.com> | 2024-05-15 04:33:28 +0200 |
---|---|---|
committer | Sigmanificient <edhyjox@gmail.com> | 2024-05-15 09:21:57 +0200 |
commit | c6f5d6a526e3177fcf6dad93b9409883c241a704 (patch) | |
tree | 5989dd62a7d4578f987e8493f546896c616a50fd /pkgs/shells/ksh | |
parent | 88382bf5e82fa49fa1b8d7f8c6cf9d75457ba376 (diff) |
ksh: reformat, use finalAttrs over rec
Diffstat (limited to 'pkgs/shells/ksh')
-rw-r--r-- | pkgs/shells/ksh/default.nix | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/pkgs/shells/ksh/default.nix b/pkgs/shells/ksh/default.nix index b5b21a6734590..ae9dba16aedff 100644 --- a/pkgs/shells/ksh/default.nix +++ b/pkgs/shells/ksh/default.nix @@ -1,14 +1,23 @@ -{ lib, stdenv, meson, ninja, fetchFromGitHub, which, python3, fetchpatch -, libiconv }: - -stdenv.mkDerivation rec { +{ + lib, + stdenv, + meson, + ninja, + fetchFromGitHub, + which, + python3, + fetchpatch, + libiconv, +}: + +stdenv.mkDerivation (finalAttrs: { pname = "ksh"; version = "2020.0.0"; src = fetchFromGitHub { - owner = "att"; - repo = "ast"; - rev = version; + owner = "att"; + repo = "ast"; + rev = finalAttrs.version; sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j"; }; @@ -19,13 +28,18 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ meson ninja which python3 ]; + nativeBuildInputs = [ + meson + ninja + which + python3 + ]; buildInputs = [ libiconv ]; strictDeps = true; - meta = with lib; { + meta = { description = "KornShell Command And Programming Language"; longDescription = '' The KornShell language was designed and developed by David G. Korn at @@ -34,12 +48,12 @@ stdenv.mkDerivation rec { many different computers and workstations on which it is implemented. ''; homepage = "https://github.com/att/ast"; - license = licenses.cpl10; - maintainers = with maintainers; [ sigmanificient ]; - platforms = platforms.all; + license = lib.licenses.cpl10; + maintainers = with lib.maintainers; [ sigmanificient ]; + platforms = lib.platforms.all; }; passthru = { shellPath = "/bin/ksh"; }; -} +}) |