2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-07-30 19:01:47 +01:00
|
|
|
, fetchFromGitLab
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-07-30 19:01:47 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
2020-08-15 00:04:17 +01:00
|
|
|
, pkg-config
|
2019-12-05 04:37:07 +00:00
|
|
|
, gtksourceview4
|
2019-07-30 19:01:47 +01:00
|
|
|
, glib
|
2020-10-03 23:59:08 +01:00
|
|
|
, libhandy_0
|
2019-07-30 19:01:47 +01:00
|
|
|
, gtk3
|
|
|
|
, dbus
|
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, gst_all_1
|
2019-07-30 20:12:24 +01:00
|
|
|
, cairo
|
2019-08-03 06:10:03 +01:00
|
|
|
, gdk-pixbuf
|
2019-07-30 20:12:24 +01:00
|
|
|
, gspell
|
2019-07-30 19:01:47 +01:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-10-31 21:37:29 +00:00
|
|
|
|
2021-03-14 15:26:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-07-30 19:01:47 +01:00
|
|
|
pname = "fractal";
|
2020-08-15 00:04:17 +01:00
|
|
|
version = "4.4.0";
|
2018-10-31 21:37:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "fractal";
|
|
|
|
rev = version;
|
2020-08-15 00:04:17 +01:00
|
|
|
sha256 = "DSNVd9YvI7Dd3s3+M0+wE594tmL1yPNMnD1W9wLhSuw=";
|
2018-10-31 21:37:29 +00:00
|
|
|
};
|
|
|
|
|
2021-03-14 15:26:12 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
hash = "sha256-xim5sOzeXJjRXbTOg2Gk/LHU0LioiyMK5nSr1LwMPjc=";
|
|
|
|
};
|
2019-07-30 19:01:47 +01:00
|
|
|
|
2018-10-31 21:37:29 +00:00
|
|
|
nativeBuildInputs = [
|
2019-07-30 19:01:47 +01:00
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2020-08-15 00:04:17 +01:00
|
|
|
pkg-config
|
2019-07-30 19:01:47 +01:00
|
|
|
python3
|
2021-03-14 15:26:12 +00:00
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.rustc
|
2019-07-30 19:01:47 +01:00
|
|
|
wrapGAppsHook
|
2020-03-29 08:35:07 +01:00
|
|
|
glib
|
2018-10-31 21:37:29 +00:00
|
|
|
];
|
2019-07-30 19:01:47 +01:00
|
|
|
|
2018-10-31 21:37:29 +00:00
|
|
|
buildInputs = [
|
2019-07-30 20:12:24 +01:00
|
|
|
cairo
|
2019-07-30 19:01:47 +01:00
|
|
|
dbus
|
2019-08-03 06:10:03 +01:00
|
|
|
gdk-pixbuf
|
2019-07-30 19:01:47 +01:00
|
|
|
glib
|
2019-07-30 20:12:24 +01:00
|
|
|
gspell
|
|
|
|
gst_all_1.gst-editing-services
|
2019-07-30 19:01:47 +01:00
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-base
|
2020-08-29 18:21:29 +01:00
|
|
|
(gst_all_1.gst-plugins-good.override {
|
|
|
|
gtkSupport = true;
|
|
|
|
})
|
2019-07-30 19:01:47 +01:00
|
|
|
gst_all_1.gstreamer
|
2020-10-01 23:31:58 +01:00
|
|
|
gst_all_1.gst-devtools
|
2019-07-30 19:01:47 +01:00
|
|
|
gtk3
|
2019-12-05 04:37:07 +00:00
|
|
|
gtksourceview4
|
2020-10-03 23:59:08 +01:00
|
|
|
libhandy_0
|
2019-07-30 19:01:47 +01:00
|
|
|
openssl
|
|
|
|
sqlite
|
2018-10-31 21:37:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-07-30 20:12:24 +01:00
|
|
|
chmod +x scripts/test.sh
|
|
|
|
patchShebangs scripts/meson_post_install.py scripts/test.sh
|
2018-10-31 21:37:29 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-29 17:33:39 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-31 21:37:29 +00:00
|
|
|
description = "Matrix group messaging app";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/fractal";
|
2021-03-16 12:24:59 +00:00
|
|
|
license = licenses.gpl3;
|
2019-07-30 19:01:47 +01:00
|
|
|
maintainers = with maintainers; [ dtzWill worldofpeace ];
|
2018-10-31 21:37:29 +00:00
|
|
|
};
|
|
|
|
}
|