-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
74 lines (71 loc) · 1.5 KB
/
default.nix
File metadata and controls
74 lines (71 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
with import <nixpkgs> {};
stdenv.mkDerivation rec {
pname = "utopia";
version = "1.3.860";
release = "latest";
src = builtins.fetchurl {
url = "https://update.u.is/downloads/linux/${pname}-${release}.amd64.deb";
sha256 = "1lf99hxlhsrnq2yvhbixx44syisr2w6c9i8kxd5xv9bdj1y2rnd0";
};
nativeBuildInputs = [ autoPatchelfHook makeWrapper libsForQt5.qt5.wrapQtAppsHook ];
buildInputs = [
# Xorg/X11
xorg.libxcb
xorg.xcbutil
xorg.xcbutilimage
xorg.xcbutilkeysyms
xorg.xcbutilrenderutil
xorg.xcbutilwm
xorg.libX11
xorg.libXext
xorg.libXrender
xorg.libXi
xorg.libXcursor
xorg.xorgproto
xorg.libXcomposite
xorg.libXdamage
xorg.libXfixes
xorg.libXrandr
xorg.libXau
# QT
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-libav
libsForQt5.qt5.qtwayland
libsForQt5.qt5.qtbase
libsForQt5.qt5.wrapQtAppsHook
# Others
mesa
gcc
libgcc
pulseaudio
glib
zlib
dbus
libgbm
nss
nspr
atkmm
at-spi2-atk
cups
libxkbcommon
pango
cairo
alsa-lib
libGL
];
unpackPhase = ''
ar x $src
tar -xf data.tar.*
'';
installPhase = ''
mkdir -p $out
cp -r opt $out/
cp -r usr $out/ || true
mkdir -p $out/bin
makeWrapper $out/opt/utopia/messenger/utopia $out/bin/utopia \
--set QT_QPA_PLATFORM_PLUGIN_PATH $out/opt/utopia/messenger/plugins/platforms
'';
}