Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions pkgs/by-name/fr/fractal/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
gtksourceview5,
lcms2,
libadwaita,
libglycin,
gst_all_1,
desktop-file-utils,
appstream-glib,
openssl,
pipewire,
libshumate,
wrapGAppsHook4,
blueprint-compiler,
bubblewrap,
sqlite,
xdg-desktop-portal,
libseccomp,
Expand All @@ -32,19 +33,19 @@

stdenv.mkDerivation (finalAttrs: {
pname = "fractal";
version = "12.1";
version = "13";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "fractal";
tag = finalAttrs.version;
hash = "sha256-xeB6N4ljXGzysy5RnDRK1wPiIRUSDcl+5BIdp6NO5ZA=";
hash = "sha256-zIB04OIhMSm6OWHalnLO9Ng87dsvsmYurrro3hKwoYU=";
};

cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src;
hash = "sha256-CHduzW++BYzasFv/x0Q1T7EaTlo1EqYY2gxQJv+ek0A=";
hash = "sha256-5wI74sKytewbRs0T/IQZFEaRTgJcF6HyDEK0mpjy0LU=";
};

patches = [
Expand All @@ -55,16 +56,8 @@ stdenv.mkDerivation (finalAttrs: {

postPatch = ''
substituteInPlace src/meson.build --replace-fail \
"'src' / rust_target / meson.project_name()" \
"'src' / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()"
'';

# Dirty approach to add patches after cargoSetupPostUnpackHook
# We should eventually use a cargo vendor patch hook instead
preConfigure = ''
pushd ../$(stripHash $cargoDeps)/glycin-2.*
patch -p3 < ${libglycin.passthru.glycinPathsPatch}
popd
Comment thread
adamcstephens marked this conversation as resolved.
"target_dir / rust_target / meson.project_name()" \
"target_dir / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()"
'';

nativeBuildInputs = [
Expand All @@ -81,6 +74,7 @@ stdenv.mkDerivation (finalAttrs: {
desktop-file-utils
appstream-glib
wrapGAppsHook4
blueprint-compiler
];

buildInputs = [
Expand Down Expand Up @@ -108,6 +102,7 @@ stdenv.mkDerivation (finalAttrs: {
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${glycin-loaders}/share"
--prefix PATH : "${lib.makeBinPath [ bubblewrap ]}"
Comment thread
adamcstephens marked this conversation as resolved.
)
'';

Expand Down
Loading