nixpkgs/pkgs/applications/version-management/git-and-tools/qgit/default.nix
Yury G. Kudryashov 139de1ea2f Don't try to build Qt guis if qt is unsupported on the platform
svn path=/nixpkgs/trunk/; revision=23812
2010-09-15 18:52:07 +00:00

23 lines
585 B
Nix

{stdenv, fetchurl, qt, libXext, libX11}:
stdenv.mkDerivation rec {
name = "qgit-2.3";
meta =
{
license = "GPLv2";
homepage = "http://digilander.libero.it/mcostalba/";
description = "Graphical front-end to Git";
inherit (qt.meta) platforms;
};
src = fetchurl
{
url = "mirror://sourceforge/qgit/${name}.tar.bz2";
sha256 = "a5fdd7e27fea376790eed787e22f4863eb9d2fe0217fd98b9fdbcf47a45bdc64";
};
buildInputs = [qt libXext libX11];
configurePhase = "qmake PREFIX=$out";
installPhase = ''
install -s -D -m 755 bin/qgit "$out/bin/qgit"
'';
}