summary refs log tree commit diff
path: root/pkgs/applications/graphics/mirage/default.nix
blob: 515b834b41eafe5093089a4fa5547f48e5566018 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, pythonPackages, libX11, gettext }:

pythonPackages.buildPythonApplication rec {
    name = "mirage-${version}";
    version = "0.9.5.2";

    src = fetchurl {
      url = "mirror://sourceforge/mirageiv/${name}.tar.bz2";
      sha256 = "d214a1b6d99d1d1e83da5848a2cef181f6781e0990e93f7ebff5880b0c43f43c";
    };

    doCheck = false;

    buildInputs = [ stdenv libX11 gettext ];

    patchPhase = ''
      sed -i "s@/usr/local/share/locale@$out/share/locale@" mirage.py
    '';

    propagatedBuildInputs = with pythonPackages; [ pygtk pillow ];

    meta = {
      description = "Simple image viewer written in PyGTK";

      homepage = http://mirageiv.sourceforge.net/;

      license = stdenv.lib.licenses.gpl2;
    };
}