mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 07:04:25 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
28 lines
824 B
Nix
28 lines
824 B
Nix
{ 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";
|
|
};
|
|
}
|