nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "mksh";
5 version = "59b";
6
7 src = fetchurl {
8 urls = [
9 "https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R${version}.tgz"
10 "http://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-R${version}.tgz"
11 ];
12 sha256 = "1rp0farbylypyiaald2hw5avg5w3m8x7cjnxxyyihzvfb2lx2zlh";
13 };
14
15 dontConfigure = true;
16
17 buildPhase = ''sh ./Build.sh -r'';
18
19 installPhase = ''
20 install -D -m 755 mksh $out/bin/mksh
21 install -D -m 644 mksh.1 $out/share/man/man1/mksh.1
22 install -D -m 644 dot.mkshrc $out/share/mksh/mkshrc
23 '';
24
25 meta = with stdenv.lib; {
26 description = "MirBSD Korn Shell";
27 longDescription = ''
28 The MirBSD Korn Shell is a DFSG-free and OSD-compliant (and OSI
29 approved) successor to pdksh, developed as part of the MirOS
30 Project as native Bourne/POSIX/Korn shell for MirOS BSD, but
31 also to be readily available under other UNIX(R)-like operating
32 systems.
33 '';
34 homepage = "https://www.mirbsd.org/mksh.htm";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ AndersonTorres joachifm ];
37 platforms = platforms.unix;
38 };
39
40 passthru = {
41 shellPath = "/bin/mksh";
42 };
43}