nixpkgs/pkgs/by-name/lo/loksh/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.4 KiB
Nix
Raw Normal View History

2021-09-10 21:43:23 +01:00
{ lib
, stdenv
2022-07-07 02:47:16 +01:00
, fetchFromGitHub
2021-09-10 21:43:23 +01:00
, meson
2022-07-07 02:47:16 +01:00
, ncurses
2021-09-10 21:43:23 +01:00
, ninja
, pkg-config
}:
2022-07-07 02:47:16 +01:00
stdenv.mkDerivation (finalAttrs: {
2021-09-10 21:43:23 +01:00
pname = "loksh";
2024-04-06 14:13:10 +01:00
version = "7.5";
2021-09-10 21:43:23 +01:00
src = fetchFromGitHub {
owner = "dimkr";
repo = "loksh";
2022-07-07 02:47:16 +01:00
rev = finalAttrs.version;
2021-09-10 21:43:23 +01:00
fetchSubmodules = true;
2024-04-06 14:13:10 +01:00
hash = "sha256-4cBO1FXUnN/swwEeM2lq5RJJGmLKInMLZkz942EKy6k=";
2021-09-10 21:43:23 +01:00
};
outputs = [ "out" "doc" "man" ];
2021-09-10 21:43:23 +01:00
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
ncurses
];
2022-07-07 02:47:16 +01:00
strictDeps = true;
2021-09-10 21:43:23 +01:00
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
2021-09-10 21:43:23 +01:00
'';
passthru = {
shellPath = "/bin/loksh";
};
meta = {
2021-09-10 21:43:23 +01:00
homepage = "https://github.com/dimkr/loksh";
2022-07-07 02:47:16 +01:00
description = "Linux port of OpenBSD's ksh";
mainProgram = "loksh";
2022-07-07 02:47:16 +01:00
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; [ AndersonTorres cameronnemo ];
platforms = lib.platforms.linux;
2022-07-07 02:47:16 +01:00
};
})