mediawiki: 1.42.4 -> 1.43.0 (#369641)
[NixPkgs.git] / pkgs / applications / networking / hpmyroom / default.nix
blobfd68b718d40b4ab52cf6426e1830071d7b1d3f7a
2   mkDerivation,
3   stdenv,
4   lib,
5   fetchurl,
6   rpmextract,
7   autoPatchelfHook,
8   libuuid,
9   libXtst,
10   libXfixes,
11   glib,
12   gst_all_1,
13   alsa-lib,
14   freetype,
15   fontconfig,
16   libXext,
17   libGL,
18   libpng,
19   libXScrnSaver,
20   libxcb,
21   xorg,
22   libpulseaudio,
23   libdrm,
25 mkDerivation rec {
26   pname = "hpmyroom";
27   version = "12.13.0.0749";
29   src = fetchurl {
30     url = "https://www.myroom.hpe.com/downloadfiles/${pname}-${version}.x86_64.rpm";
31     sha256 = "sha256-Ff3j14rC2ZHhNJLPxvKn9Sxyv351HuHbggclwOuFfX4=";
32   };
34   nativeBuildInputs = [
35     rpmextract
36     autoPatchelfHook
37   ];
39   buildInputs =
40     [
41       libuuid
42       libXtst
43       libXScrnSaver
44       libXfixes
45       alsa-lib
46       freetype
47       fontconfig
48       libXext
49       libGL
50       libpng
51       libxcb
52       libpulseaudio
53       libdrm
54       glib # For libgobject
55       stdenv.cc.cc # For libstdc++
56       xorg.libX11
57     ]
58     ++ (with gst_all_1; [
59       gstreamer
60       gst-plugins-base
61     ]);
63   unpackPhase = ''
64     rpmextract $src
65   '';
67   installPhase = ''
68     runHook preInstall
70     mv usr $out
72     runHook postInstall
73   '';
75   qtWrapperArgs = [
76     "--prefix QT_XKB_CONFIG_ROOT : '${xorg.xkeyboardconfig}/share/X11/xkb'"
77   ];
79   postFixup = ''
80     substituteInPlace $out/share/applications/HP-myroom.desktop \
81       --replace /usr/bin/hpmyroom hpmyroom \
82       --replace Icon=/usr/share/hpmyroom/Resources/MyRoom.png Icon=$out/share/hpmyroom/Resources/MyRoom.png
84     ln -s ${libpng}/lib/libpng.so $out/lib/hpmyroom/libpng15.so.15
85   '';
87   meta = {
88     description = "Client for HPE's MyRoom web conferencing solution";
89     maintainers = with lib.maintainers; [ johnazoidberg ];
90     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
91     license = lib.licenses.unfree;
92     homepage = "https://myroom.hpe.com";
93     # TODO: A Darwin binary is available upstream
94     platforms = [ "x86_64-linux" ];
95     mainProgram = "hpmyroom";
96     broken = true; # requires libpng15
97   };