ark/pkgs-set/pkgs/fractal-next.nix
2022-09-12 02:24:41 +03:00

119 lines
2.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
nix-update-script,
meson,
cmake,
ninja,
gettext,
python3,
rustPlatform,
pkg-config,
glib,
libhandy,
libsecret,
libshumate,
gtk4,
gtksourceview5,
libadwaita,
llvmPackages,
glibc,
wayland,
pipewire,
dbus,
openssl,
sqlite,
gst_all_1,
cairo,
gdk-pixbuf,
gspell,
wrapGAppsHook,
desktop-file-utils,
appstream-glib,
...
}:
stdenv.mkDerivation rec {
pname = "fractal-next";
version = "5c70961c";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "fractal";
rev = "5c70961cea34ac92658b59254bc3ef428ca7fa91";
sha256 = "sha256-Ai26Nwm9ujqxW0NCpxd97NiJWImitl87coS724nv27g=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "sha256-8fgQvlZGbntz2buQ/nCo90Kbel9aeC4kD3uqTdefylg=";
};
nativeBuildInputs = [
appstream-glib # for appstream-util
gettext
meson
ninja
pkg-config
python3
rustPlatform.rust.cargo
rustPlatform.cargoSetupHook
rustPlatform.rust.rustc
wrapGAppsHook
desktop-file-utils
glib
cmake
];
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.gst-plugins-good.override {
gtkSupport = true;
})
gst_all_1.gstreamer
gst_all_1.gst-devtools
gtk4
gtksourceview5
libadwaita
wayland
pipewire
libhandy
openssl
libsecret
libshumate
];
# libspa-sys requires this for bindgen
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
# <spa-0.2/spa/utils/defs.h> included by libspa-sys requires <stdbool.h>
BINDGEN_EXTRA_CLANG_ARGS = "-I${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include -I${glibc.dev}/include";
doCheck = false;
postPatch = ''
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
description = "Matrix group messaging app";
homepage = "https://gitlab.gnome.org/GNOME/fractal";
license = licenses.gpl3;
maintainers = teams.gnome.members ++ (with maintainers; [dtzWill genofire]);
};
}