1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/games/cbonsai/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
822 B
Nix
Raw Normal View History

2021-12-11 14:47:48 +00:00
{ stdenv, lib, fetchFromGitLab, ncurses, pkg-config, nix-update-script, scdoc }:
2021-03-04 10:41:15 +00:00
stdenv.mkDerivation rec {
pname = "cbonsai";
2021-12-11 14:47:48 +00:00
version = "1.3.1";
2021-03-04 10:41:15 +00:00
src = fetchFromGitLab {
owner = "jallbrit";
repo = pname;
rev = "v${version}";
hash = "sha256-XFK6DiIb8CzVubTnEMkqRW8xZkX/SWjUsrfS+I7LOs8=";
2021-03-04 10:41:15 +00:00
};
2021-12-11 14:47:48 +00:00
nativeBuildInputs = [ pkg-config scdoc ];
2021-03-04 10:41:15 +00:00
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 { };
2021-03-04 10:41:15 +00:00
meta = with lib; {
description = "Grow bonsai trees in your terminal";
mainProgram = "cbonsai";
2021-03-04 10:41:15 +00:00
homepage = "https://gitlab.com/jallbrit/cbonsai";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ manveru ];
platforms = platforms.unix;
};
}