entangle: fix build (#344986)

This commit is contained in:
Peder Bergebakken Sundt 2024-10-06 02:55:58 +02:00 committed by GitHub
commit cb3226fd0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 84 additions and 82 deletions

View File

@ -1,53 +1,55 @@
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
, itstool
, libxml2
, meson
, ninja
, perl
, python3
, pkgconf
, wrapGAppsHook3
, at-spi2-core
, dbus
, elfutils
, libepoxy
, gexiv2
, glib
, gobject-introspection
, gst-plugins-base
, gstreamer
, gtk3
, lcms2
, libdatrie
, libgphoto2
, libgudev
, libpeas
, libraw
, libselinux
, libsepol
, libthai
, libunwind
, libxkbcommon
, orc
, pcre
, pcre2
, udev
, util-linux
, xorg
, zstd
{
lib,
stdenv,
fetchFromGitLab,
fetchpatch,
itstool,
libxml2,
meson,
ninja,
perl,
python3,
pkgconf,
wrapGAppsHook3,
at-spi2-core,
dbus,
elfutils,
libepoxy,
gexiv2,
glib,
gobject-introspection,
gst_all_1,
gtk3,
lcms2,
libdatrie,
libgphoto2,
libgudev,
libpeas,
libraw,
libselinux,
libsepol,
lerc,
libthai,
libunwind,
libxkbcommon,
orc,
pcre,
pcre2,
udev,
util-linux,
xorg,
zstd,
cmake,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "entangle";
version = "3.0";
src = fetchFromGitLab {
owner = "entangle";
repo = "entangle";
rev = "v${version}";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "hz2WSDOjriQSavFlDT+35x1X5MeInq80ZrSP1WR/td0=";
};
@ -71,39 +73,43 @@ stdenv.mkDerivation rec {
pkgconf
wrapGAppsHook3
gobject-introspection
cmake
];
buildInputs = [
at-spi2-core
dbus
libepoxy
elfutils
gexiv2
glib
gst-plugins-base
gstreamer
gtk3
lcms2
libdatrie
libgphoto2
libgudev
libpeas
libraw
libselinux
libsepol
libthai
libunwind
libxkbcommon
orc
pcre # required by libselinux before we USE_PCRE2
pcre2 # required by glib-2.0
udev
util-linux
zstd
] ++ (with xorg; [
libXdmcp
libXtst
]);
buildInputs =
[
at-spi2-core
dbus
libepoxy
elfutils
gexiv2
glib
lerc
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
gtk3
lcms2
libdatrie
libgphoto2
libgudev
libpeas
libraw
libselinux
libsepol
libthai
libunwind
libxkbcommon
orc
pcre # required by libselinux before we USE_PCRE2
pcre2 # required by glib-2.0
udev
util-linux
zstd
]
++ (with xorg; [
libXdmcp
libXtst
]);
# Disable building of doc/reference since it requires network connection to render XML to HTML
# Patch build script shebangs
@ -120,7 +126,7 @@ stdenv.mkDerivation rec {
--replace "Exec=entangle" "Exec=$out/bin/entangle"
'';
meta = with lib; {
meta = {
description = "Tethered camera control and capture";
longDescription = ''
Entangle uses GTK and libgphoto2 to provide a graphical interface
@ -130,9 +136,9 @@ stdenv.mkDerivation rec {
This app can also serve as a camera app for mobile devices.
'';
homepage = "https://gitlab.com/entangle/entangle";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ ShamrockLee ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ ShamrockLee ];
mainProgram = "entangle";
};
}
})

View File

@ -29066,10 +29066,6 @@ with pkgs;
enhanced-ctorrent = callPackage ../applications/networking/p2p/enhanced-ctorrent { };
entangle = callPackage ../applications/video/entangle {
inherit (gst_all_1) gstreamer gst-plugins-base;
};
eolie = callPackage ../applications/networking/browsers/eolie { };
eos-installer = callPackage ../applications/misc/eos-installer { };