@@ -489,6 +489,54 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
489489 # };
490490 # };
491491
492+ GitVersionTree = buildDotnetPackage rec {
493+ baseName = "GitVersionTree";
494+ version = "2013-10-01";
495+
496+ src = fetchFromGitHub {
497+ owner = "crc8";
498+ repo = "GitVersionTree";
499+ rev = "58dc39c43cffea44f721ee4425835e56518f7da2";
500+ sha256 = "0mna5pkpqkdr5jgn8paz004h1pa24ncsvmi2c8s4gp94nfw34x05";
501+ };
502+
503+ buildInputs = with pkgs; [ ed ];
504+
505+ postPatch = ''
506+ ed -v -p: -s GitVersionTree/Program.cs << EOF
507+ /Main()
508+ c
509+ static void Main(string[] args)
510+ .
511+ /EnableVisualStyles
512+ i
513+ Reg.Write("GitPath", "${pkgs.gitMinimal}/bin/git");
514+ Reg.Write("GraphvizPath", "${pkgs.graphviz}/bin/dot");
515+ if (args.Length > 0) {
516+ Reg.Write("GitRepositoryPath", args[0]);
517+ }
518+ .
519+ w
520+ EOF
521+
522+ substituteInPlace GitVersionTree/Forms/MainForm.cs \
523+ --replace 'Directory.GetParent(Application.ExecutablePath)' 'Environment.CurrentDirectory' \
524+ --replace '\\' '/' \
525+ --replace '@"\"' '"/"'
526+ '';
527+
528+ outputFiles = [ "GitVersionTree/bin/Release/*" ];
529+ exeFiles = [ "GitVersionTree.exe" ];
530+
531+ meta = with stdenv.lib; {
532+ description = "A tool to help visualize git revisions and branches";
533+ homepage = https://github.com/crc8/GitVersionTree;
534+ license = licenses.gpl2;
535+ maintainers = with maintainers; [ obadz ];
536+ platforms = platforms.all;
537+ };
538+ };
539+
492540 MathNetNumerics = buildDotnetPackage rec {
493541 baseName = "MathNet.Numerics";
494542 version = "3.7.0";