blob: 2572e378ddf455b1d9455714e11c74f7a492abb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib
, stdenv
, fetchurl
, installShellFiles
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mksh";
version = "59c";
src = fetchurl {
urls = [
"http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R${finalAttrs.version}.tgz"
"http://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-R${finalAttrs.version}.tgz"
];
hash = "sha256-d64WZaM38cSMYda5Yds+UhGbOOWIhNHIloSvMfh7xQY=";
};
strictDeps = true;
nativeBuildInputs = [
installShellFiles
];
dontConfigure = true;
buildPhase = ''
runHook preBuild
sh ./Build.sh -r
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D mksh $out/bin/mksh
install -D dot.mkshrc $out/share/mksh/mkshrc
installManPage mksh.1
runHook postInstall
'';
passthru = {
shellPath = "/bin/mksh";
};
meta = {
homepage = "http://www.mirbsd.org/mksh.htm";
description = "MirBSD Korn Shell";
mainProgram = "mksh";
longDescription = ''
The MirBSD Korn Shell is a DFSG-free and OSD-compliant (and OSI
approved) successor to pdksh, developed as part of the MirOS
Project as native Bourne/POSIX/Korn shell for MirOS BSD, but
also to be readily available under other UNIX(R)-like operating
systems.
'';
license = with lib.licenses; [ miros isc unicode-dfs-2016 ];
maintainers = with lib.maintainers; [ AndersonTorres joachifm ];
platforms = lib.platforms.unix;
};
})
# TODO [ AndersonTorres ]: lksh
# TODO [ AndersonTorres ]: a more accurate licensing info
|