diff options
Diffstat (limited to 'nixpkgs/pkgs/games/cbonsai')
-rw-r--r-- | nixpkgs/pkgs/games/cbonsai/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/cbonsai/default.nix b/nixpkgs/pkgs/games/cbonsai/default.nix new file mode 100644 index 000000000000..2dc131aba6db --- /dev/null +++ b/nixpkgs/pkgs/games/cbonsai/default.nix @@ -0,0 +1,29 @@ +{ 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"; + homepage = "https://gitlab.com/jallbrit/cbonsai"; + license = with licenses; [ gpl3Only ]; + maintainers = with maintainers; [ manveru ]; + platforms = platforms.unix; + }; +} |