2018-06-02 09:06:28 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qttools
|
|
|
|
, qtmultimedia
|
|
|
|
, liblo
|
|
|
|
, gst_all_1
|
|
|
|
, qmake
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
|
2020-07-05 16:55:13 +01:00
|
|
|
version = "0.6.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mapmap";
|
2018-06-02 09:06:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapmapteam";
|
|
|
|
repo = "mapmap";
|
|
|
|
rev = version;
|
2020-07-05 16:55:13 +01:00
|
|
|
sha256 = "1pyb3vz19lbfz2hrfqm9a29vnajw1bigdrblbmcy32imkf4isfvm";
|
2018-06-02 09:06:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qttools
|
|
|
|
qtmultimedia
|
|
|
|
liblo
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gstreamermm
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
gst_all_1.gst-vaapi
|
|
|
|
];
|
|
|
|
|
|
|
|
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__
|
|
|
|
# '';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open source video mapping software";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mapmapteam/mapmap";
|
2018-06-02 09:06:28 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.erictapen ];
|
|
|
|
platforms = platforms.linux;
|
2018-10-25 16:51:39 +01:00
|
|
|
# binary segfaults at the moment
|
|
|
|
broken = true;
|
2018-06-02 09:06:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|