mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #137319 from CameronNemo/loksh
This commit is contained in:
commit
61d2ef558d
3 changed files with 58 additions and 0 deletions
|
@ -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";
|
||||
|
|
50
pkgs/shells/loksh/default.nix
Normal file
50
pkgs/shells/loksh/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -10704,6 +10704,8 @@ with pkgs;
|
|||
|
||||
oksh = callPackage ../shells/oksh { };
|
||||
|
||||
loksh = callPackage ../shells/loksh { };
|
||||
|
||||
pash = callPackage ../shells/pash { };
|
||||
|
||||
scponly = callPackage ../shells/scponly { };
|
||||
|
|
Loading…
Reference in a new issue