mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
ff1a94e523
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.
31 lines
824 B
Nix
31 lines
824 B
Nix
{ stdenv, lib, fetchFromGitLab, ncurses, pkg-config, nix-update-script, scdoc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cbonsai";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "jallbrit";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-XFK6DiIb8CzVubTnEMkqRW8xZkX/SWjUsrfS+I7LOs8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config scdoc ];
|
|
buildInputs = [ ncurses ];
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Grow bonsai trees in your terminal";
|
|
mainProgram = "cbonsai";
|
|
homepage = "https://gitlab.com/jallbrit/cbonsai";
|
|
license = with licenses; [ gpl3Only ];
|
|
maintainers = with maintainers; [ manveru ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|