summary refs log tree commit diff
path: root/pkgs/games/macopix/default.nix
blob: 2639765c5d15415b6751db5f628882a9cb53d344 (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, pkgconfig, gtk, openssl }:

stdenv.mkDerivation rec {
  name = "macopix-1.7.4";

  src = fetchurl {
    url = "http://rosegray.sakura.ne.jp/macopix/${name}.tar.bz2";
    sha256 = "0sgnr0wrw3hglcnsyvipll7icfv69ssmyw584zfhk1rgramlkzyb";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ gtk openssl ];

  preConfigure = ''
    # Build fails on Linux with windres.
    export ac_cv_prog_WINDRES=
  '';

  enableParallelBuilding = true;

  NIX_LDFLAGS = [ "-lX11" ];

  meta = {
    description = "Mascot Constructive Pilot for X";
    homepage = http://rosegray.sakura.ne.jp/macopix/index-e.html;
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.linux;
  };
}