about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/version-management/git-big-picture/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/version-management/git-big-picture/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/version-management/git-big-picture/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/version-management/git-big-picture/default.nix b/nixpkgs/pkgs/applications/version-management/git-big-picture/default.nix
new file mode 100644
index 000000000000..a3ac58c04be8
--- /dev/null
+++ b/nixpkgs/pkgs/applications/version-management/git-big-picture/default.nix
@@ -0,0 +1,27 @@
+{ lib, python3Packages, fetchPypi, git, graphviz }:
+
+python3Packages.buildPythonApplication rec {
+  pname = "git-big-picture";
+  version = "1.1.1";
+  format = "wheel";
+
+  src = fetchPypi {
+    inherit format version;
+    pname = "git_big_picture"; # underscores needed for working download URL
+    python = "py3"; # i.e. no Python 2.7
+    sha256 = "a20a480057ced1585c4c38497d27a5012f12dd29697313f0bb8fa6ddbb5c17d8";
+  };
+
+  postFixup = ''
+    wrapProgram $out/bin/git-big-picture \
+      --prefix PATH ":" ${ lib.makeBinPath [ git graphviz ]  }
+  '';
+
+  meta = {
+    description = "Tool for visualization of Git repositories";
+    homepage = "https://github.com/git-big-picture/git-big-picture";
+    license = lib.licenses.gpl3Plus;
+    maintainers = [ lib.maintainers.nthorne ];
+    mainProgram = "git-big-picture";
+  };
+}