This allows the user shell to be set to pkgs.oksh instead of needing a string like "${pkgs.oksh}/bin/oksh".
26 lines
606 B
Nix
26 lines
606 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "oksh";
|
|
version = "6.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ibara";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0lny550qfanysc4pqs0mxxx8zyz6plv9ll8y05gz0xmq9vx5384r";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)";
|
|
homepage = "https://github.com/ibara/oksh";
|
|
license = licenses.publicDomain;
|
|
maintainers = with maintainers; [ siraben ];
|
|
platforms = platforms.all;
|
|
};
|
|
|
|
passthru = {
|
|
shellPath = "/bin/oksh";
|
|
};
|
|
}
|