2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-06-02 08:06:28 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-03 13:53:19 +00:00
|
|
|
, fetchpatch
|
2018-06-02 08:06:28 +00:00
|
|
|
, qttools
|
|
|
|
, qtmultimedia
|
|
|
|
, liblo
|
|
|
|
, gst_all_1
|
|
|
|
, qmake
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2020-12-03 13:53:19 +00:00
|
|
|
, wrapQtAppsHook
|
2018-06-02 08:06:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
|
2020-07-05 15:55:13 +00:00
|
|
|
version = "0.6.2";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mapmap";
|
2018-06-02 08:06:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapmapteam";
|
|
|
|
repo = "mapmap";
|
|
|
|
rev = version;
|
2020-07-05 15:55:13 +00:00
|
|
|
sha256 = "1pyb3vz19lbfz2hrfqm9a29vnajw1bigdrblbmcy32imkf4isfvm";
|
2018-06-02 08:06:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2020-12-03 13:53:19 +00:00
|
|
|
wrapQtAppsHook
|
2018-06-02 08:06:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qttools
|
|
|
|
qtmultimedia
|
|
|
|
liblo
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gstreamermm
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
gst_all_1.gst-vaapi
|
|
|
|
];
|
|
|
|
|
2020-12-03 13:53:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "message-handler-segfault.patch";
|
|
|
|
url = "https://github.com/mapmapteam/mapmap/pull/519/commits/22eeee59ba7de6de7b73ecec3b0ea93bdc7f04e8.patch";
|
|
|
|
sha256 = "0is905a4lf9vvl5b1n4ky6shrnbs5kz9mlwfk78hrl4zabfmcl5l";
|
|
|
|
})
|
2020-12-12 17:53:54 +00:00
|
|
|
# fix build with libsForQt515
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mapmapteam/mapmap/pull/518/commits/ac49acc1e2ec839832b86838e93a8c13030affeb.patch";
|
|
|
|
sha256 = "sha256-tSLbyIDv5mSejnw9oru5KLAyQqjgJLLREKQomEUcGt8=";
|
|
|
|
})
|
2020-12-03 13:53:19 +00:00
|
|
|
];
|
|
|
|
|
2018-06-02 08:06:28 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp mapmap $out/bin/mapmap
|
|
|
|
mkdir -p $out/share/applications/
|
|
|
|
sed 's|Icon=/usr/share/icons/hicolor/scalable/apps/mapmap.svg|Icon=mapmap|g' resources/texts/mapmap.desktop > $out/share/applications/mapmap.desktop
|
|
|
|
mkdir -p $out/share/icons/hicolor/scalable/apps/
|
|
|
|
cp resources/images/logo/mapmap.* $out/share/icons/hicolor/scalable/apps/
|
|
|
|
'';
|
|
|
|
|
|
|
|
# RPATH in /tmp hack
|
|
|
|
# preFixup = ''
|
|
|
|
# rm -r $NIX_BUILD_TOP/__nix_qt5__
|
|
|
|
# '';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-02 08:06:28 +00:00
|
|
|
description = "Open source video mapping software";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mapmapteam/mapmap";
|
2018-06-02 08:06:28 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.erictapen ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|