Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ncurses,
|
|
ninja,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "loksh";
|
|
version = "7.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dimkr";
|
|
repo = "loksh";
|
|
tag = finalAttrs.version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-BxQ7SZwRP9PlD2MV7DqG7tQ2lqzlkTwmaKwbgC7NYrc=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
"man"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
postInstall = ''
|
|
mv $out/bin/ksh $out/bin/loksh
|
|
pushd $man/share/man/man1/
|
|
mv ksh.1 loksh.1
|
|
mv sh.1 loksh-sh.1
|
|
popd
|
|
'';
|
|
|
|
passthru = {
|
|
shellPath = "/bin/loksh";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/dimkr/loksh";
|
|
description = "Linux port of OpenBSD's ksh";
|
|
mainProgram = "loksh";
|
|
longDescription = ''
|
|
loksh is a Linux port of OpenBSD's ksh.
|
|
|
|
Unlike other ports of ksh, loksh targets only one platform, follows
|
|
upstream closely and keeps changes to a minimum. loksh does not add any
|
|
extra features; this reduces the risk of introducing security
|
|
vulnerabilities and makes loksh a good fit for resource-constrained
|
|
systems.
|
|
'';
|
|
license = with lib.licenses; [ publicDomain ];
|
|
maintainers = with lib.maintainers; [ cameronnemo ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|