2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl, qttools, pkgconfig
|
|
|
|
, minizip, zlib
|
|
|
|
, qtbase, qtsvg, qtmultimedia, qtwebkit, qttranslations, qtxmlpatterns
|
|
|
|
, rsync, SDL2, xwininfo
|
2020-11-24 20:58:05 +00:00
|
|
|
, util-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qmc2";
|
|
|
|
version = "0.195";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/qmc2/qmc2/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1dzmjlfk8pdspns6zg1jmd5fqzg8igd4q38cz4a1vf39lx74svns";
|
|
|
|
};
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs scripts
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qttools pkgconfig ];
|
|
|
|
buildInputs = [ minizip qtbase qtsvg qtmultimedia qtwebkit
|
|
|
|
qttranslations qtxmlpatterns rsync SDL2
|
2020-11-24 20:58:05 +00:00
|
|
|
xwininfo zlib util-linux xorg.libxcb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)"
|
|
|
|
"PREFIX=/"
|
|
|
|
"DATADIR=/share/"
|
|
|
|
"SYSCONFDIR=/etc" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Qt frontend for MAME/MESS";
|
|
|
|
homepage = "https://qmc2.batcom-it.net";
|
|
|
|
license = licenses.gpl2;
|
2020-11-21 19:51:51 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
broken = true;
|
|
|
|
};
|
|
|
|
}
|