1 { lib, stdenv, fetchurl, pkg-config, gtk, openssl }:
3 stdenv.mkDerivation rec {
8 url = "http://rosegray.sakura.ne.jp/macopix/macopix-${version}.tar.bz2";
9 sha256 = "0sgnr0wrw3hglcnsyvipll7icfv69ssmyw584zfhk1rgramlkzyb";
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ gtk openssl ];
16 # Build fails on Linux with windres.
17 export ac_cv_prog_WINDRES=
20 enableParallelBuilding = true;
22 # Workaround build failure on -fno-common toolchains:
23 # ld: dnd.o:src/main.h:136: multiple definition of
24 # `MENU_EXT'; main.o:src/main.h:136: first defined here
25 env.NIX_CFLAGS_COMPILE = "-fcommon";
27 NIX_LDFLAGS = "-lX11";
30 description = "Mascot Constructive Pilot for X";
31 mainProgram = "macopix";
32 homepage = "http://rosegray.sakura.ne.jp/macopix/index-e.html";
33 license = lib.licenses.gpl2Plus;
34 platforms = lib.platforms.linux;