diff options
author | obadz <obadz-git@obadz.com> | 2016-08-19 18:27:15 +0100 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2016-08-19 18:28:03 +0100 |
commit | b0e11652f4b21759471a133a5a2a6ab2517e3837 (patch) | |
tree | 4f1c716df30ff0624794eba5a24cacf2a5f822a6 /pkgs/top-level/dotnet-packages.nix | |
parent | 3f783e7fd11ff9069a682dbf108fb0c307cf1973 (diff) |
dotnetPackages.GitVersionTree: init at 2013-10-01
Diffstat (limited to 'pkgs/top-level/dotnet-packages.nix')
-rw-r--r-- | pkgs/top-level/dotnet-packages.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/top-level/dotnet-packages.nix b/pkgs/top-level/dotnet-packages.nix index e8273f35cdee..f287a35bdc46 100644 --- a/pkgs/top-level/dotnet-packages.nix +++ b/pkgs/top-level/dotnet-packages.nix @@ -489,6 +489,54 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; { # }; # }; + GitVersionTree = buildDotnetPackage rec { + baseName = "GitVersionTree"; + version = "2013-10-01"; + + src = fetchFromGitHub { + owner = "crc8"; + repo = "GitVersionTree"; + rev = "58dc39c43cffea44f721ee4425835e56518f7da2"; + sha256 = "0mna5pkpqkdr5jgn8paz004h1pa24ncsvmi2c8s4gp94nfw34x05"; + }; + + buildInputs = with pkgs; [ ed ]; + + postPatch = '' + ed -v -p: -s GitVersionTree/Program.cs << EOF + /Main() + c + static void Main(string[] args) + . + /EnableVisualStyles + i + Reg.Write("GitPath", "${pkgs.gitMinimal}/bin/git"); + Reg.Write("GraphvizPath", "${pkgs.graphviz}/bin/dot"); + if (args.Length > 0) { + Reg.Write("GitRepositoryPath", args[0]); + } + . + w + EOF + + substituteInPlace GitVersionTree/Forms/MainForm.cs \ + --replace 'Directory.GetParent(Application.ExecutablePath)' 'Environment.CurrentDirectory' \ + --replace '\\' '/' \ + --replace '@"\"' '"/"' + ''; + + outputFiles = [ "GitVersionTree/bin/Release/*" ]; + exeFiles = [ "GitVersionTree.exe" ]; + + meta = with stdenv.lib; { + description = "A tool to help visualize git revisions and branches"; + homepage = https://github.com/crc8/GitVersionTree; + license = licenses.gpl2; + maintainers = with maintainers; [ obadz ]; + platforms = platforms.all; + }; + }; + MathNetNumerics = buildDotnetPackage rec { baseName = "MathNet.Numerics"; version = "3.7.0"; |