@@ -0,0 +1,43 @@
1+{ stdenv, fetchurl, fetchFromGitLab, meson, ninja, gettext, cargo, rustc, python3, rustPlatform, pkgconfig, gtksourceview
2+, hicolor-icon-theme, glib, libhandy, gtk3, libsecret, dbus, openssl, sqlite, gst_all_1, wrapGAppsHook }:
3+
4+rustPlatform.buildRustPackage rec {
5+ version = "4.0.0";
6+ name = "fractal-${version}";
7+
8+ src = fetchFromGitLab {
9+ domain = "gitlab.gnome.org";
10+ owner = "GNOME";
11+ repo = "fractal";
12+ rev = version;
13+ sha256 = "05q47jdgbi5jz01280msb8gxnbsrgf2jvglfm6k40f1xw4wxkrzy";
14+ };
15+
16+ nativeBuildInputs = [
17+ meson ninja pkgconfig gettext cargo rustc python3 wrapGAppsHook
18+ ];
19+ buildInputs = [
20+ glib gtk3 libhandy dbus openssl sqlite gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-bad
21+ gtksourceview hicolor-icon-theme libsecret
22+ ];
23+
24+ postPatch = ''
25+ patchShebangs scripts/meson_post_install.py
26+ '';
27+
28+ # Don't use buildRustPackage phases, only use it for rust deps setup
29+ configurePhase = null;
30+ buildPhase = null;
31+ checkPhase = null;
32+ installPhase = null;
33+
34+ cargoSha256 = "0hlvdcdzkggc2adggmlxz0yxigwp3320wfav77gddlvfip1f90sw";
35+
36+ meta = with stdenv.lib; {
37+ description = "Matrix group messaging app";
38+ homepage = https://gitlab.gnome.org/GNOME/fractal;
39+ license = licenses.gpl3;
40+ maintainers = with maintainers; [ dtzWill ];
41+ };
42+}
43+