about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorMichael Fellinger <michael.fellinger@iohk.io>2021-03-04 11:41:15 +0100
committerMichael Fellinger <michael.fellinger@iohk.io>2021-03-04 17:05:18 +0100
commit75078f712d5c2989549028ce8f13ebe8a8f78a6e (patch)
tree281caf1ccc43f7cb6377722bde62f3120110f7b5 /pkgs/games
parentc4c5bf8b7ce7d2adb14022829816ad786a1d987c (diff)
cbonsai: init at 1.0.0
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/cbonsai/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/games/cbonsai/default.nix b/pkgs/games/cbonsai/default.nix
new file mode 100644
index 0000000000000..4702991c2907d
--- /dev/null
+++ b/pkgs/games/cbonsai/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, lib, fetchFromGitLab, ncurses, pkg-config, nix-update-script }:
+
+stdenv.mkDerivation rec {
+  version = "1.0.0";
+  pname = "cbonsai";
+
+  src = fetchFromGitLab {
+    owner = "jallbrit";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1jc34j627pnyjgs8hjxqaa89j24gyf0rq9w61mkhgg0kria62as7";
+  };
+
+  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;
+  };
+}