Merge pull request #137319 from CameronNemo/loksh

This commit is contained in:
Sandro 2021-09-11 20:59:08 +02:00 committed by GitHub
commit 61d2ef558d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 58 additions and 0 deletions

View file

@ -1693,6 +1693,12 @@
githubId = 7435854;
name = "Victor Calvert";
};
cameronnemo = {
email = "cnemo@tutanota.com";
github = "cameronnemo";
githubId = 3212452;
name = "Cameron Nemo";
};
campadrenalin = {
email = "campadrenalin@gmail.com";
github = "campadrenalin";

View file

@ -0,0 +1,50 @@
{ lib
, stdenv
, meson
, ninja
, pkg-config
, ncurses
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "loksh";
version = "6.9";
src = fetchFromGitHub {
owner = "dimkr";
repo = pname;
rev = version;
fetchSubmodules = true;
sha256 = "0x33plxqhh5202hgqidgccz5hpg8d2q71ylgnm437g60mfi9z0px";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
ncurses
];
postInstall = ''
mv $out/bin/ksh $out/bin/loksh
mv $out/share/man/man1/ksh.1 $out/share/man/man1/loksh.1
mv $out/share/man/man1/sh.1 $out/share/man/man1/loksh-sh.1
'';
passthru = {
shellPath = "/bin/loksh";
};
meta = with lib; {
description = "Linux port of OpenBSD's ksh";
homepage = "https://github.com/dimkr/loksh";
license = licenses.publicDomain;
maintainers = with maintainers; [ cameronnemo ];
platforms = platforms.linux;
};
}

View file

@ -10704,6 +10704,8 @@ with pkgs;
oksh = callPackage ../shells/oksh { };
loksh = callPackage ../shells/loksh { };
pash = callPackage ../shells/pash { };
scponly = callPackage ../shells/scponly { };