Files
nixpkgs/pkgs/by-name/ks/ksh/package.nix
Guy Chronister 0a5afb7650 various: maintenance updates for multiple packages
- Switch from 'rev' to 'tag' attribute in fetchFromGitHub/fetchgit calls
- Update 'sha256' to 'hash' for consistency
- Convert to finalAttrs pattern where applicable
- Replace 'with lib' with explicit lib prefixes
- Use 'replace-fail' variants for substitutions
- Update python3.pkgs to python3Packages pattern
- Switch propagatedBuildInputs to dependencies for Python packages
- Fix .pc file meta attribute interpolation

Affected packages: autotrash, banana-vera, cano, cista, coost, cppi,
criterion, diagrams-as-code, filterpath, fzf-make, gbsplay, gfold,
git-pr, git-standup, hexedit, hueadm, ksh, liboqs, libowlevelzs, libsv,
mini-calc, nph, physac, ps_mem, ragnarwm, rasm, raygui, sxcs, toolong,
tuifimanager, unipicker, ustr, viu, xml-tooling-c, yyjson
2025-11-22 16:19:57 +00:00

61 lines
1.3 KiB
Nix

{
lib,
stdenv,
meson,
ninja,
fetchFromGitHub,
which,
python3,
fetchpatch,
libiconv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ksh";
version = "2020.0.0";
src = fetchFromGitHub {
owner = "att";
repo = "ast";
hash = "sha256-sphfY/hZ028722clJDBiQn8fOrDOnJbTegPgCy34vTE=";
tag = finalAttrs.version;
};
patches = [
(fetchpatch {
url = "https://github.com/att/ast/commit/11983a71f5e29df578b7e2184400728b4e3f451d.patch";
hash = "sha256-e45HZPnFyQ6YVyFzcA74w+Jhk9BO7bDkfReLTRgqJdk=";
})
];
nativeBuildInputs = [
meson
ninja
which
python3
];
buildInputs = [ libiconv ];
strictDeps = true;
meta = {
description = "KornShell Command And Programming Language";
longDescription = ''
The KornShell language was designed and developed by David G. Korn at
AT&T Bell Laboratories. It is an interactive command language that
provides access to the UNIX system and to many other systems, on the
many different computers and workstations on which it is implemented.
'';
homepage = "https://github.com/att/ast";
license = lib.licenses.cpl10;
maintainers = with lib.maintainers; [ sigmanificient ];
mainProgram = "ksh";
platforms = lib.platforms.all;
};
passthru = {
shellPath = "/bin/ksh";
};
})