mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
ksh: reformat, use finalAttrs over rec
This commit is contained in:
parent
88382bf5e8
commit
c6f5d6a526
@ -1,14 +1,23 @@
|
|||||||
{ lib, stdenv, meson, ninja, fetchFromGitHub, which, python3, fetchpatch
|
{
|
||||||
, libiconv }:
|
lib,
|
||||||
|
stdenv,
|
||||||
|
meson,
|
||||||
|
ninja,
|
||||||
|
fetchFromGitHub,
|
||||||
|
which,
|
||||||
|
python3,
|
||||||
|
fetchpatch,
|
||||||
|
libiconv,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "ksh";
|
pname = "ksh";
|
||||||
version = "2020.0.0";
|
version = "2020.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "att";
|
owner = "att";
|
||||||
repo = "ast";
|
repo = "ast";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j";
|
sha256 = "0cdxz0nhpq03gb9rd76fn0x1yzs2c8q289b7vcxnzlsrz1imz65j";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -19,13 +28,18 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja which python3 ];
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
which
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ libiconv ];
|
buildInputs = [ libiconv ];
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "KornShell Command And Programming Language";
|
description = "KornShell Command And Programming Language";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
The KornShell language was designed and developed by David G. Korn at
|
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.
|
many different computers and workstations on which it is implemented.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/att/ast";
|
homepage = "https://github.com/att/ast";
|
||||||
license = licenses.cpl10;
|
license = lib.licenses.cpl10;
|
||||||
maintainers = with maintainers; [ sigmanificient ];
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||||
platforms = platforms.all;
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
shellPath = "/bin/ksh";
|
shellPath = "/bin/ksh";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user