10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
17 rev = finalAttrs.version;
18 fetchSubmodules = true;
19 hash = "sha256-R9yLrXzXeu7gUoV+CDOAu89p2YmPP0ImAWq2fod722c=";
22 outputs = [ "out" "doc" "man" ];
37 mv $out/bin/ksh $out/bin/loksh
38 pushd $man/share/man/man1/
45 shellPath = "/bin/loksh";
49 homepage = "https://github.com/dimkr/loksh";
50 description = "Linux port of OpenBSD's ksh";
51 mainProgram = "loksh";
53 loksh is a Linux port of OpenBSD's ksh.
55 Unlike other ports of ksh, loksh targets only one platform, follows
56 upstream closely and keeps changes to a minimum. loksh does not add any
57 extra features; this reduces the risk of introducing security
58 vulnerabilities and makes loksh a good fit for resource-constrained
61 license = with lib.licenses; [ publicDomain ];
62 maintainers = with lib.maintainers; [ AndersonTorres cameronnemo ];
63 platforms = lib.platforms.linux;