mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 07:34:36 +00:00
6198e24f02
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";
|
|
};
|
|
}
|