nixpkgs/pkgs/shells/yash/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
736 B
Nix

{ stdenv, lib, fetchFromGitHub, gettext, ncurses, asciidoc }:
stdenv.mkDerivation rec {
pname = "yash";
version = "2.55";
src = fetchFromGitHub {
owner = "magicant";
repo = pname;
rev = version;
hash = "sha256-raTIqklo69JEuhzdWUK3uywuLjqeQJCJ9nvnLRxlGr4=";
};
strictDeps = true;
nativeBuildInputs = [ asciidoc gettext ];
buildInputs = [ ncurses ] ++ lib.optionals stdenv.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";
}