2021-01-17 05:49:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk, openssl }:
|
2015-09-29 02:49:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 21:44:58 +00:00
|
|
|
pname = "macopix";
|
|
|
|
version = "1.7.4";
|
2015-09-29 02:49:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 21:44:58 +00:00
|
|
|
url = "http://rosegray.sakura.ne.jp/macopix/macopix-${version}.tar.bz2";
|
2015-09-29 02:49:07 +00:00
|
|
|
sha256 = "0sgnr0wrw3hglcnsyvipll7icfv69ssmyw584zfhk1rgramlkzyb";
|
|
|
|
};
|
|
|
|
|
2021-01-17 05:49:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ gtk openssl ];
|
2015-09-29 02:49:07 +00:00
|
|
|
|
2017-11-21 04:27:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# Build fails on Linux with windres.
|
|
|
|
export ac_cv_prog_WINDRES=
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-06-06 17:55:51 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: dnd.o:src/main.h:136: multiple definition of
|
|
|
|
# `MENU_EXT'; main.o:src/main.h:136: first defined here
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-06 17:55:51 +00:00
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
2019-02-10 13:14:33 +00:00
|
|
|
|
2015-09-29 02:49:07 +00:00
|
|
|
meta = {
|
|
|
|
description = "Mascot Constructive Pilot for X";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://rosegray.sakura.ne.jp/macopix/index-e.html";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2015-09-29 02:49:07 +00:00
|
|
|
};
|
|
|
|
}
|