4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
99 lines
1.7 KiB
Nix
99 lines
1.7 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, nix-update-script
|
|
, fetchpatch
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, cargo
|
|
, rustc
|
|
, python3
|
|
, rustPlatform
|
|
, pkg-config
|
|
, gtksourceview4
|
|
, glib
|
|
, libhandy_0
|
|
, gtk3
|
|
, dbus
|
|
, openssl
|
|
, sqlite
|
|
, gst_all_1
|
|
, cairo
|
|
, gdk-pixbuf
|
|
, gspell
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fractal";
|
|
version = "4.4.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = "fractal";
|
|
rev = version;
|
|
sha256 = "DSNVd9YvI7Dd3s3+M0+wE594tmL1yPNMnD1W9wLhSuw=";
|
|
};
|
|
|
|
cargoSha256 = "xim5sOzeXJjRXbTOg2Gk/LHU0LioiyMK5nSr1LwMPjc=";
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
rustc
|
|
wrapGAppsHook
|
|
glib
|
|
];
|
|
|
|
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
|
|
gtk3
|
|
gtksourceview4
|
|
libhandy_0
|
|
openssl
|
|
sqlite
|
|
];
|
|
|
|
postPatch = ''
|
|
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
|
|
configurePhase = null;
|
|
buildPhase = null;
|
|
checkPhase = null;
|
|
installPhase = null;
|
|
|
|
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;
|
|
broken = stdenv.isDarwin;
|
|
maintainers = with maintainers; [ dtzWill worldofpeace ];
|
|
};
|
|
}
|