From 37158a3410ecd1cfce12d7b6e165ce7b036614a0 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 30 Jul 2019 14:01:47 -0400 Subject: [PATCH 1/2] fractal: stylize, add me to maintainers --- .../instant-messengers/fractal/default.nix | 57 ++++++++++++++++--- 1 file changed, 48 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/fractal/default.nix b/pkgs/applications/networking/instant-messengers/fractal/default.nix index bb8b721a8ac..218bdd80ff0 100644 --- a/pkgs/applications/networking/instant-messengers/fractal/default.nix +++ b/pkgs/applications/networking/instant-messengers/fractal/default.nix @@ -1,9 +1,30 @@ -{ stdenv, fetchFromGitLab, meson, ninja, gettext, cargo, rustc, python3, rustPlatform, pkgconfig, gtksourceview -, hicolor-icon-theme, glib, libhandy, gtk3, libsecret, dbus, openssl, sqlite, gst_all_1, wrapGAppsHook, fetchpatch }: +{ stdenv +, fetchFromGitLab +, meson +, ninja +, gettext +, cargo +, rustc +, python3 +, rustPlatform +, pkgconfig +, gtksourceview +, hicolor-icon-theme +, glib +, libhandy +, gtk3 +, libsecret +, dbus +, openssl +, sqlite +, gst_all_1 +, wrapGAppsHook +, fetchpatch +}: rustPlatform.buildRustPackage rec { + pname = "fractal"; version = "4.0.0"; - name = "fractal-${version}"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; @@ -13,12 +34,32 @@ rustPlatform.buildRustPackage rec { sha256 = "05q47jdgbi5jz01280msb8gxnbsrgf2jvglfm6k40f1xw4wxkrzy"; }; + cargoSha256 = "1ax5dv200v8mfx0418bx8sbwpbp6zj469xg75hp78kqfiv83pn1g"; + nativeBuildInputs = [ - meson ninja pkgconfig gettext cargo rustc python3 wrapGAppsHook + cargo + gettext + meson + ninja + pkgconfig + python3 + rustc + wrapGAppsHook ]; + buildInputs = [ - glib gtk3 libhandy dbus openssl sqlite gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-bad - gtksourceview hicolor-icon-theme libsecret + dbus + glib + gst_all_1.gst-plugins-bad + gst_all_1.gst-plugins-base + gst_all_1.gstreamer + gtk3 + gtksourceview + hicolor-icon-theme + libhandy + libsecret + openssl + sqlite ]; patches = [ @@ -39,13 +80,11 @@ rustPlatform.buildRustPackage rec { checkPhase = null; installPhase = null; - cargoSha256 = "1ax5dv200v8mfx0418bx8sbwpbp6zj469xg75hp78kqfiv83pn1g"; - meta = with stdenv.lib; { description = "Matrix group messaging app"; homepage = https://gitlab.gnome.org/GNOME/fractal; license = licenses.gpl3; - maintainers = with maintainers; [ dtzWill ]; + maintainers = with maintainers; [ dtzWill worldofpeace ]; }; } From 43dcb0542f74ca6ce9c135dac6a34f23669c35b3 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 30 Jul 2019 15:12:24 -0400 Subject: [PATCH 2/2] fractal: 4.0.0 -> 4.2.0 Build system changes happening in the following commits: * https://gitlab.gnome.org/GNOME/fractal/commit/79bf10af6ddecf50b0dc7641658694c196f73403 * https://gitlab.gnome.org/GNOME/fractal/commit/6982765607fb0a0c9e5eae4ad32659b29e5d0fb3 * https://gitlab.gnome.org/GNOME/fractal/commit/4abfa58282e958b2ab6fe44c5e3963d1b5db258a Submitted MR upstream to update Cargo.lock [0] and to make scripts executable [1]. [0]: https://gitlab.gnome.org/GNOME/fractal/merge_requests/446 [1]: https://gitlab.gnome.org/GNOME/fractal/merge_requests/447 --- .../instant-messengers/fractal/default.nix | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/fractal/default.nix b/pkgs/applications/networking/instant-messengers/fractal/default.nix index 218bdd80ff0..0f1660096e6 100644 --- a/pkgs/applications/networking/instant-messengers/fractal/default.nix +++ b/pkgs/applications/networking/instant-messengers/fractal/default.nix @@ -1,5 +1,6 @@ { stdenv , fetchFromGitLab +, fetchpatch , meson , ninja , gettext @@ -13,28 +14,29 @@ , glib , libhandy , gtk3 -, libsecret , dbus , openssl , sqlite , gst_all_1 +, cairo +, gdk_pixbuf +, gspell , wrapGAppsHook -, fetchpatch }: rustPlatform.buildRustPackage rec { pname = "fractal"; - version = "4.0.0"; + version = "4.2.0"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "fractal"; rev = version; - sha256 = "05q47jdgbi5jz01280msb8gxnbsrgf2jvglfm6k40f1xw4wxkrzy"; + sha256 = "0clwsmd6h759bzlazfq5ig56dbx7npx3h43yspk87j1rm2dp1177"; }; - cargoSha256 = "1ax5dv200v8mfx0418bx8sbwpbp6zj469xg75hp78kqfiv83pn1g"; + cargoSha256 = "1hwjajkphl5439dymglgj3h92hxgbf7xpipzrga7ga8m10nx1dhl"; nativeBuildInputs = [ cargo @@ -48,8 +50,12 @@ rustPlatform.buildRustPackage rec { ]; buildInputs = [ + cairo dbus + gdk_pixbuf glib + gspell + gst_all_1.gst-editing-services gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-base gst_all_1.gstreamer @@ -57,21 +63,21 @@ rustPlatform.buildRustPackage rec { gtksourceview hicolor-icon-theme libhandy - libsecret openssl sqlite ]; - patches = [ - # Fixes build with >= gstreamer 1.15.1 + cargoPatches = [ + # https://gitlab.gnome.org/GNOME/fractal/merge_requests/446 (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/fractal/commit/e78f36c25c095ea09c9c421187593706ad7c4065.patch"; - sha256 = "1qv7ayhkhgrrldag2lzs9ql17nbc1d72j375ljhhf6cms89r19ir"; + url = "https://gitlab.gnome.org/GNOME/fractal/commit/2778acdc6c50bc6f034513029b66b0b092bc4c38.patch"; + sha256 = "08v17xmbwrjw688ps4hsnd60d5fm26xj72an3zf6yszha2b97j6y"; }) ]; postPatch = '' - patchShebangs scripts/meson_post_install.py + chmod +x scripts/test.sh + patchShebangs scripts/meson_post_install.py scripts/test.sh ''; # Don't use buildRustPackage phases, only use it for rust deps setup