From 8004163ff35fea07abe9cb1b754d635e8f3f0a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 10 Feb 2010 11:28:22 +0000 Subject: [PATCH] TopGit: Use `fetchgit' rather than relying on Gitweb-generated tarballs. Gitweb's tarballs change overtime, probably because they are generated on-demand and files have different timestamps. svn path=/nixpkgs/trunk/; revision=19896 --- .../version-management/git-and-tools/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 4c8e8395639..ada4a07b9cd 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -58,10 +58,10 @@ rec { topGit = stdenv.mkDerivation rec { name = "topgit-0.8"; - src = fetchurl { - # Snapshot for the `topgit-0.8' tag. - url = "http://repo.or.cz/w/topgit.git/snapshot/f59e4f9e87e5f485fdaee0af002edd2105fa298a.tar.gz"; - sha256 = "0bz3anrzjcnywslh9679mhg7n5bdr1dmsbb5x3ywvkp3mma9b4xk"; + src = fetchgit { + url = "http://repo.or.cz/r/topgit.git"; + rev = name; + sha256 = "14g233hk70xs51h4jqyivjfqnwmjjpc95fjb7wdny64i9ddz03aj"; }; configurePhase = "export prefix=$out"; @@ -81,6 +81,7 @@ rec { maintainers = [ lib.maintainers.marcweber lib.maintainers.ludo ]; homepage = http://repo.or.cz/w/topgit.git; # maybe there is also another one, I haven't checked license = "GPLv2"; + platforms = stdenv.lib.platforms.gnu; # arbitrary choice }; };