1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/shells/oksh/default.nix
Josh Rickmar 6198e24f02 oksh: add shellPath for use as user shells
This allows the user shell to be set to pkgs.oksh instead of needing
a string like "${pkgs.oksh}/bin/oksh".
2021-01-26 09:30:50 -05:00

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";
};
}