Skip to content
Merged
23 changes: 6 additions & 17 deletions pkgs/applications/misc/prusa-slicer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,14 @@
libbgcode,
heatshrink,
catch2,
webkitgtk_4_0,
webkitgtk_4_1,
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
systemd,
wxGTK-override ? null,
opencascade-override ? null,
}:
let
wxGTK-prusa = wxGTK32.overrideAttrs (old: {
pname = "wxwidgets-prusa3d-patched";
version = "3.2.0";
configureFlags = old.configureFlags ++ [ "--disable-glcanvasegl" ];
patches = [ ./wxWidgets-Makefile.in-fix.patch ];
src = fetchFromGitHub {
owner = "prusa3d";
repo = "wxWidgets";
rev = "78aa2dc0ea7ce99dc19adc1140f74c3e2e3f3a26";
hash = "sha256-rYvmNmvv48JSKVT4ph9AS+JdstnLSRmcpWz1IdgBzQo=";
fetchSubmodules = true;
};
});
nanosvg-fltk = nanosvg.overrideAttrs (old: rec {
nanosvg-fltk = nanosvg.overrideAttrs (old: {
pname = "nanosvg-fltk";
version = "unstable-2022-12-22";

Expand All @@ -68,7 +55,7 @@ let
};
});
openvdb_tbb_2021_8 = openvdb.override { tbb = tbb_2021_11; };
wxGTK-override' = if wxGTK-override == null then wxGTK-prusa else wxGTK-override;
wxGTK-override' = if wxGTK-override == null then wxGTK32 else wxGTK-override;
opencascade-override' =
if opencascade-override == null then opencascade-occt_7_6_1 else opencascade-override;
in
Expand All @@ -89,6 +76,8 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://github.com/prusa3d/PrusaSlicer/commit/cdc3db58f9002778a0ca74517865527f50ade4c3.patch";
hash = "sha256-zgpGg1jtdnCBaWjR6oUcHo5sGuZx5oEzpux3dpRdMAM=";
})
# https://github.com/prusa3d/PrusaSlicer/pull/11769
./fix-ambiguous-constructors.patch
];

# required for GCC 14
Expand Down Expand Up @@ -138,7 +127,7 @@ stdenv.mkDerivation (finalAttrs: {
libbgcode
heatshrink
catch2
webkitgtk_4_0
webkitgtk_4_1
]
++ lib.optionals withSystemd [
systemd
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 910328f3131e24e330808f5d4cb814454dbe201d Mon Sep 17 00:00:00 2001
From: Gregor Riepl <onitake@gmail.com>
Date: Mon, 27 Nov 2023 13:01:55 +0100
Subject: [PATCH] Make initializers explicit to avoid ambiguous wxArrayString
overloads

---
src/slic3r/GUI/PhysicalPrinterDialog.cpp | 2 +-
src/slic3r/GUI/Plater.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
index 849e987c731..7d0c628c23f 100644
--- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -607,7 +607,7 @@ void PhysicalPrinterDialog::build_printhost_settings(ConfigOptionsGroup* m_optgr
// Always fill in the "printhost_port" combo box from the config and select it.
{
Choice* choice = dynamic_cast<Choice*>(m_optgroup->get_field("printhost_port"));
- choice->set_values({ m_config->opt_string("printhost_port") });
+ choice->set_values(std::vector<std::string>({ m_config->opt_string("printhost_port") }));
choice->set_selection();
}

diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index debfe625fd4..4d61e29a2dc 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -4420,7 +4420,7 @@ void Plater::load_project(const wxString& filename)
s_multiple_beds.set_loading_project_flag(true);
ScopeGuard guard([](){ s_multiple_beds.set_loading_project_flag(false);});

- if (! load_files({ into_path(filename) }).empty()) {
+ if (! load_files(std::vector<boost::filesystem::path>({ into_path(filename) })).empty()) {
// At least one file was loaded.
p->set_project_filename(filename);
// Save the names of active presets and project specific config into ProjectDirtyStateManager.
64 changes: 23 additions & 41 deletions pkgs/applications/networking/instant-messengers/dino/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
buildPackages,
vala,
cmake,
ninja,
wrapGAppsHook4,
pkg-config,
Expand All @@ -15,17 +13,17 @@
gtk4,
glib-networking,
libadwaita,
libcanberra,
libnotify,
libsoup_2_4,
libsoup_3,
libgee,
libsignal-protocol-c,
libomemo-c,
libgcrypt,
meson,
sqlite,
gpgme,
pcre2,
qrencode,
icu,
gspell,
srtp,
libnice,
gnutls,
Expand All @@ -34,30 +32,28 @@
gst-plugins-good,
gst-plugins-bad,
gst-vaapi,
webrtc-audio-processing,
webrtc-audio-processing_1,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "dino";
version = "0.4.5";
version = "0.5.0";

src = fetchFromGitHub {
owner = "dino";
repo = "dino";
rev = "v${finalAttrs.version}";
sha256 = "sha256-lF2cUalCrVD6274Ey8wggEXNvKXydlRjvX+815geL1c=";
tag = "v${finalAttrs.version}";
hash = "sha256-Y3MGKpfhjmqnIvmt4mXnkmpjF/riXPDXyUiSrsceY6o=";
};

postPatch = ''
# don't overwrite manually set version information
substituteInPlace CMakeLists.txt \
--replace "include(ComputeVersion)" ""
echo ${finalAttrs.version} > VERSION
'';

nativeBuildInputs = [
vala
cmake
ninja # https://github.com/dino/dino/issues/230
meson
ninja
pkg-config
wrapGAppsHook4
gettext
Expand All @@ -76,11 +72,10 @@ stdenv.mkDerivation (finalAttrs: {
libnotify
gpgme
libgcrypt
libsoup_2_4
pcre2
libsoup_3
icu
libsignal-protocol-c
gspell
libcanberra
libomemo-c
srtp
libnice
gnutls
Expand All @@ -89,35 +84,22 @@ stdenv.mkDerivation (finalAttrs: {
gst-plugins-good # contains rtpbin, required for VP9
gst-plugins-bad # required for H264, MSDK
gst-vaapi # required for VAAPI
webrtc-audio-processing
webrtc-audio-processing_1
];

cmakeFlags = [
"-DBUILD_TESTS=true"
"-DRTP_ENABLE_H264=true"
"-DRTP_ENABLE_MSDK=true"
"-DRTP_ENABLE_VAAPI=true"
"-DRTP_ENABLE_VP9=true"
"-DVERSION_FOUND=true"
"-DVERSION_IS_RELEASE=true"
"-DVERSION_FULL=${finalAttrs.version}"
"-DXGETTEXT_EXECUTABLE=${lib.getBin buildPackages.gettext}/bin/xgettext"
"-DMSGFMT_EXECUTABLE=${lib.getBin buildPackages.gettext}/bin/msgfmt"
"-DGLIB_COMPILE_RESOURCES_EXECUTABLE=${lib.getDev buildPackages.glib}/bin/glib-compile-resources"
"-DSOUP_VERSION=${lib.versions.major libsoup_2_4.version}"
doCheck = true;

mesonFlags = [
"-Dplugin-notification-sound=enabled"
"-Dplugin-rtp-h264=enabled"
"-Dplugin-rtp-msdk=enabled"
"-Dplugin-rtp-vaapi=enabled"
"-Dplugin-rtp-vp9=enabled"
];

# Undefined symbols for architecture arm64: "_gpg_strerror"
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-lgpg-error";

doCheck = true;
checkPhase = ''
runHook preCheck
./xmpp-vala-test
./signal-protocol-vala-test
runHook postCheck
'';

# Dino looks for plugins with a .so filename extension, even on macOS where
# .dylib is appropriate, and despite the fact that it builds said plugins with
# that as their filename extension
Expand Down
25 changes: 12 additions & 13 deletions pkgs/by-name/gu/gupnp-igd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
docbook_xsl,
docbook_xml_dtd_412,
glib,
gupnp,
gupnp_1_6,
gnome,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "gupnp-igd";
version = "1.2.0";
version = "1.6.0";

outputs = [
"out"
"dev"
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-S1EgCYqhPt0ngYup7k1/6WG/VAv1DQVv9wPGFUXgK+E=";
url = "mirror://gnome/sources/gupnp-igd/${lib.versions.majorMinor finalAttrs.version}/gupnp-igd-${finalAttrs.version}.tar.xz";
hash = "sha256-QJmXgzmrIhJtSWjyozK20JT8RMeHl4YHgfH8LxF3G3Q=";
};

depsBuildBuild = [
Expand All @@ -46,7 +46,7 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [
glib
gupnp
gupnp_1_6
];

mesonFlags = [
Expand All @@ -56,20 +56,19 @@ stdenv.mkDerivation rec {

# Seems to get stuck sometimes.
# https://github.com/NixOS/nixpkgs/issues/119288
#doCheck = true;
# doCheck = true;

passthru = {
updateScript = gnome.updateScript {
packageName = pname;
packageName = "gupnp-igd";
versionPolicy = "odd-unstable";
freeze = true;
};
};

meta = with lib; {
meta = {
description = "Library to handle UPnP IGD port mapping";
homepage = "http://www.gupnp.org/";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.unix;
};
}
})
33 changes: 33 additions & 0 deletions pkgs/by-name/li/libnice/gupnp-igd-bump.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 7255d6376fad2c88eaadf1278ee8947181230866 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Sun, 16 Apr 2023 19:52:38 +0000
Subject: [PATCH] Update for gupnp-igd-1.6
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

New gupnp-igd has been released.
No significant changed in API so pkgconfig dependency can be simple
bumped.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 6a733b73..c42fa138 100644
--- a/meson.build
+++ b/meson.build
@@ -285,7 +285,7 @@ gst_dep = dependency('gstreamer-base-1.0', version: gst_req,
cdata.set('HAVE_GSTREAMER', gst_dep.found(), description: 'Build GStreamer plugin')

# GUPnP IGD
-gupnp_igd_dep = dependency('gupnp-igd-1.0', version: gupnp_igd_req, required: get_option('gupnp'))
+gupnp_igd_dep = dependency('gupnp-igd-1.6', version: gupnp_igd_req, required: get_option('gupnp'))
cdata.set('HAVE_GUPNP', gupnp_igd_dep.found(), description: 'Use the GUPnP IGD library')

libm = cc.find_library('m', required: false)
--
GitLab

23 changes: 9 additions & 14 deletions pkgs/by-name/li/libnice/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
lib,
stdenv,
fetchurl,
fetchpatch,
meson,
ninja,
pkg-config,
Expand All @@ -18,7 +17,7 @@
graphviz,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libnice";
version = "0.1.22";

Expand All @@ -29,18 +28,14 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];

src = fetchurl {
url = "https://libnice.freedesktop.org/releases/${pname}-${version}.tar.gz";
url = "https://libnice.freedesktop.org/releases/libnice-${finalAttrs.version}.tar.gz";
hash = "sha256-pfckzwnq5QxBp1FxQdidpKYeyerKMtpKAHP67VQXrX4=";
};

patches = [
# Fix generating data
# Note: upstream is not willing to merge our fix
# https://gitlab.freedesktop.org/libnice/libnice/merge_requests/35#note_98871
(fetchpatch {
url = "https://gitlab.freedesktop.org/libnice/libnice/commit/d470c4bf4f2449f7842df26ca1ce1efb63452bc6.patch";
sha256 = "0z74vizf92flfw1m83p7yz824vfykmnm0xbnk748bnnyq186i6mg";
})
# Bumps the gupnp_igd_dep version requested to 1.6
# https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/255
./gupnp-igd-bump.patch
];

nativeBuildInputs = [
Expand Down Expand Up @@ -78,7 +73,7 @@ stdenv.mkDerivation rec {
# see https://github.com/NixOS/nixpkgs/pull/53293#issuecomment-453739295
doCheck = false;

meta = with lib; {
meta = {
description = "GLib ICE implementation";
longDescription = ''
Libnice is an implementation of the IETF's Interactice Connectivity
Expand All @@ -88,10 +83,10 @@ stdenv.mkDerivation rec {
It provides a GLib-based library, libnice and a Glib-free library,
libstun as well as GStreamer elements.'';
homepage = "https://libnice.freedesktop.org/";
platforms = platforms.unix;
license = with licenses; [
platforms = lib.platforms.unix;
license = with lib.licenses; [
lgpl21
mpl11
];
};
}
})
Loading