about summary refs log tree commit diff
path: root/pkgs/shells/yash/default.nix
blob: 3e57b7b9a0fb2a9b6ec38fe2a3e5b93a13fabfa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, lib, fetchFromGitHub, gettext, ncurses, asciidoc }:

stdenv.mkDerivation rec {
  pname = "yash";
  version = "2.57";

  src = fetchFromGitHub {
    owner = "magicant";
    repo = pname;
    rev = version;
    hash = "sha256-TqQWbwNk2P2vETJ2294bd689WBry0xRdz7xz/NnMBrk=";
  };

  strictDeps = true;
  nativeBuildInputs = [ asciidoc gettext ];
  buildInputs = [ ncurses ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ];

  meta = with lib; {
    homepage = "https://yash.osdn.jp/index.html.en";
    description = "Yet another POSIX-compliant shell";
    mainProgram = "yash";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ qbit ];
    platforms = platforms.all;
  };

  passthru.shellPath = "/bin/yash";
}