10 stdenv.mkDerivation rec {
15 url = "http://rosegray.sakura.ne.jp/macopix/macopix-${version}.tar.bz2";
16 sha256 = "0sgnr0wrw3hglcnsyvipll7icfv69ssmyw584zfhk1rgramlkzyb";
19 nativeBuildInputs = [ pkg-config ];
26 # Build fails on Linux with windres.
27 export ac_cv_prog_WINDRES=
30 enableParallelBuilding = true;
32 # Workaround build failure on -fno-common toolchains:
33 # ld: dnd.o:src/main.h:136: multiple definition of
34 # `MENU_EXT'; main.o:src/main.h:136: first defined here
35 env.NIX_CFLAGS_COMPILE = "-fcommon";
37 NIX_LDFLAGS = "-lX11";
40 description = "Mascot Constructive Pilot for X";
41 mainProgram = "macopix";
42 homepage = "http://rosegray.sakura.ne.jp/macopix/index-e.html";
43 license = lib.licenses.gpl2Plus;
44 platforms = lib.platforms.linux;