Skip to content

git-big-picture: init at 0.9.0 #27206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2017
Merged

git-big-picture: init at 0.9.0 #27206

merged 2 commits into from
Jul 13, 2017

Conversation

nthorne
Copy link
Contributor

@nthorne nthorne commented Jul 7, 2017

Motivation for this change

To introduce git-big-picture; a Git repository visualization tool. Visualizes branches, commits and tags, using Git and Graphviz.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

{ fetchgit, python2Packages, stdenv, git, graphviz }:

python2Packages.buildPythonApplication rec {
pname = "git-big-picture";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check the indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Sorry about that.


name = "${pname}-${version}";

src = fetchgit {
Copy link
Member

@FRidh FRidh Jul 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're fetching from GitHub, for which we have fetchFromGitHub

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

sha256 = "1h283gzs4nx8lrarmr454zza52cilmnbdrqn1n33v3cn1rayl3c9";
};

propagatedBuildInputs = [ git graphviz ];
Copy link
Member

@FRidh FRidh Jul 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want these to be available during runtime, not propagate them to packages depending on this package.

You'll want to wrap binaries created by this package and put git and graphviz on PATH. Check makeBinPath.

(I think I know why you add them as propagatedBuildInputs because that's what we do with Python packages for run-time dependencies. Its not the same.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learned something new there. Thanks! Does the new update look better?

homepage = https://github.com/esc/git-big-picture;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will you add yourself as maintainer of this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Updated after review comments.
@Mic92 Mic92 merged commit 9d28cd9 into NixOS:master Jul 13, 2017
@Mic92
Copy link
Member

Mic92 commented Jul 13, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants