diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-05-22 10:44:32 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2013-07-08 11:14:50 +0200 |
commit | e3a67bbb99f8c9d04aa0efae85cc8412d2380c97 (patch) | |
tree | 6eb3b87e7743fc7e6a8d32ee78b6f924f8824695 /pkgs/applications/version-management/diffuse | |
parent | 5d8c682f4eb6fe1e35f9fba1388adcdaf5bed05b (diff) | |
download | nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.tar nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.tar.gz nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.tar.bz2 nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.tar.lz nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.tar.xz nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.tar.zst nixlib-e3a67bbb99f8c9d04aa0efae85cc8412d2380c97.zip |
diffuse: new package, close #731.
Diffuse is a graphical diff and merge tool. http://diffuse.sourceforge.net/
Diffstat (limited to 'pkgs/applications/version-management/diffuse')
-rw-r--r-- | pkgs/applications/version-management/diffuse/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/diffuse/default.nix b/pkgs/applications/version-management/diffuse/default.nix new file mode 100644 index 000000000000..92cdddd8dcb0 --- /dev/null +++ b/pkgs/applications/version-management/diffuse/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, python, pygtk, makeWrapper }: + +stdenv.mkDerivation rec { + version = "0.4.7"; + name = "diffuse-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/project/diffuse/diffuse/${version}/${name}.tar.bz2"; + sha256 = "1b1riy9wix2gby78v9i30ijycjhkcyqsllggjakbkx26sb5nmxdh"; + }; + + buildInputs = [ python pygtk makeWrapper ]; + + buildPhase = '' + python ./install.py --prefix="$out" --sysconfdir="$out/etc" --pythonbin="${python}/bin/python" + wrapProgram "$out/bin/diffuse" --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0 + ''; + + # no-op, everything is done in buildPhase + installPhase = "true"; + + # NOTE: diffuse installs a .desktop file itself + + meta = with stdenv.lib; { + description = "Graphical diff and merge tool"; + homepage = http://diffuse.sourceforge.net/; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} |