2021-03-09 03:18:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, ncurses, pkg-config, nix-update-script }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-15 08:37:03 +00:00
|
|
|
version = "1.0.1";
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "cbonsai";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "jallbrit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-15 08:37:03 +00:00
|
|
|
sha256 = "sha256-UTjbc0kGHOQse4sZF94p4LAwMk9vsZg1QHq8iuDcTDk=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { attrPath = pname; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Grow bonsai trees in your terminal";
|
|
|
|
homepage = "https://gitlab.com/jallbrit/cbonsai";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|