summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorJustin Humm <justin.humm@posteo.de>2018-06-02 10:06:28 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-02 10:06:28 +0200
commit4d88c022d0d8ca8b856733aff9e3b131202dd4ac (patch)
treeabf4a987368609b1076020bc919a1805b68d637d /pkgs/applications/video
parent33aed158e0a34133d3dedc4bdc2baa64df05fdbf (diff)
downloadnixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.tar
nixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.tar.gz
nixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.tar.bz2
nixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.tar.lz
nixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.tar.xz
nixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.tar.zst
nixlib-4d88c022d0d8ca8b856733aff9e3b131202dd4ac.zip
mapmap: init at 0.6.1 (#41228)
The Nix package currently doesn't support video textures, just still images.
When I figure out why video textures don't work I will provide a fix.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/mapmap/default.nix63
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/applications/video/mapmap/default.nix b/pkgs/applications/video/mapmap/default.nix
new file mode 100644
index 000000000000..6569caad6c52
--- /dev/null
+++ b/pkgs/applications/video/mapmap/default.nix
@@ -0,0 +1,63 @@
+{ stdenv 
+, fetchFromGitHub
+, qttools
+, qtbase
+, qtmultimedia
+, liblo
+, gst_all_1
+, qmake
+, pkgconfig
+}:
+
+with stdenv;
+
+mkDerivation rec {
+
+  version = "0.6.1";
+  name = "mapmap-${version}";
+
+  src = fetchFromGitHub {
+    owner = "mapmapteam";
+    repo = "mapmap";
+    rev = version;
+    sha256 = "15km6xmfkxhrflq4sl9m9r85zi4shrr4k5h15x17v7x0qkc3xgsh";
+  };
+
+  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";
+    homepage = https://github.com/mapmapteam/mapmap;
+    license = licenses.gpl3;
+    maintainers = [ maintainers.erictapen ];
+    platforms = platforms.linux;
+  };
+
+}