nixpkgs/pkgs/shells/jush/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

30 lines
705 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, editline }:
stdenv.mkDerivation rec {
pname = "jush";
version = "0.1";
src = fetchFromGitHub {
owner = "troglobit";
repo = pname;
rev = "v${version}";
sha256 = "1azvghrh31gawd798a254ml4id642qvbva64zzg30pjszh1087n8";
};
strictDeps = true;
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ editline ];
passthru.shellPath = "/bin/jush";
meta = with lib; {
description = "just a useless shell";
mainProgram = "jush";
homepage = "https://github.com/troglobit/jush";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ dtzWill ];
};
}