2021-03-04 10:41:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, ncurses, pkg-config, nix-update-script }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-29 04:17:03 +01:00
|
|
|
version = "1.2.1";
|
2021-03-04 10:41:15 +00:00
|
|
|
pname = "cbonsai";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "jallbrit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-29 04:17:03 +01:00
|
|
|
sha256 = "sha256-kofJqMoBsvHrV3XfIQbSYO7OWpN7UgvrSs3WX3IVAJs=";
|
2021-03-04 10:41:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ ncurses ];
|
2021-07-26 19:08:58 +01:00
|
|
|
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
2021-03-04 10:41:15 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|