treewide: cross fixes
This commit is contained in:
parent
a32cd711ef
commit
da9a9a4404
41 changed files with 187 additions and 53 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config
|
||||
{ lib, stdenv, fetchurl, pkg-config, buildPackages
|
||||
, buildsystem
|
||||
}:
|
||||
|
||||
|
@ -12,12 +12,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-nq6lNM1wtTxar0UxeulXcBaFprSojb407Sb0+q6Hmks=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ buildsystem ];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
|
||||
"BUILD_CC=$(CC_FOR_BUILD)"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
|
@ -29,6 +30,13 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "XaD/uBb4prRPMDdEyoJ6NAgBGMHJONjXmvF7f+Z5gPg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gnome-characters/-/commit/3e28a6ad668e2239b14f2e05bc477ec1bfb210ba.patch";
|
||||
sha256 = "sha256-2N4eewknhOXBABs6BPA5/YuqZMT8dyXW857iamrrtuA=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
gobject-introspection
|
||||
|
|
|
@ -45,6 +45,9 @@ stdenv.mkDerivation rec {
|
|||
desktop-file-utils
|
||||
libxml2
|
||||
gobject-introspection # for finding vapi files
|
||||
# error: Package `...' not found in specified Vala API directories or GObject-Introspection GIR directories
|
||||
# TODO: the vala setuphook should look for vala filess in targetOffset instead of hostOffset
|
||||
gsound
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
|
@ -29,6 +30,19 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "TV5FFp1r9DkC16npoHk8kW65LaumuoWzXI629nLNq9c=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# meson: Remove redundant check for glib-mkenums
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gnome-logs/-/commit/01386ce9a69652a00bdb163e569b51150ca8903e.diff";
|
||||
sha256 = "sha256-tJJEai4Jw8aVcyhsFTYILiUV1xhsysX/rleeLP13DVM=";
|
||||
})
|
||||
# meson: remove redundant check for pkg-config
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gnome-logs/-/commit/ad350729a8b81f2c8eb2122de0956bb2199b48da.patch";
|
||||
sha256 = "sha256-5qGYyKM+B9XNZKytWH8K4QfSuBf7wpaPCWT6YIO5FGY=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3
|
||||
meson
|
||||
|
@ -41,6 +55,7 @@ stdenv.mkDerivation rec {
|
|||
libxslt
|
||||
docbook_xsl
|
||||
docbook_xml_dtd_43
|
||||
glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -31,13 +31,14 @@ stdenv.mkDerivation rec {
|
|||
ninja
|
||||
wrapGAppsHook
|
||||
python3
|
||||
gobject-introspection
|
||||
gjs
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk4
|
||||
libadwaita
|
||||
gjs
|
||||
gobject-introspection
|
||||
libgweather
|
||||
gnome.adwaita-icon-theme
|
||||
geoclue2
|
||||
|
|
|
@ -42,6 +42,13 @@ stdenv.mkDerivation rec {
|
|||
itstool
|
||||
wrapGAppsHook
|
||||
python3
|
||||
openssh
|
||||
gnupg
|
||||
gcr
|
||||
# error: Package `...' not found in specified Vala API directories or GObject-Introspection GIR directories
|
||||
# TODO: the vala setuphook should look for vala filess in targetOffset instead of hostOffset
|
||||
libhandy
|
||||
libsecret
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -50,13 +57,11 @@ stdenv.mkDerivation rec {
|
|||
glib-networking
|
||||
gcr
|
||||
gsettings-desktop-schemas
|
||||
gnupg
|
||||
gpgme
|
||||
libsecret
|
||||
avahi
|
||||
libsoup
|
||||
p11-kit
|
||||
openssh
|
||||
openldap
|
||||
libpwquality
|
||||
libhandy
|
||||
|
|
|
@ -73,13 +73,13 @@ stdenv.mkDerivation rec {
|
|||
pkg-config
|
||||
python3
|
||||
rsync
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
accountsservice
|
||||
audit
|
||||
glib
|
||||
gobject-introspection
|
||||
gtk3
|
||||
keyutils
|
||||
libX11
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, fetchurl
|
||||
, gnome
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gtk4
|
||||
|
@ -49,6 +50,8 @@ stdenv.mkDerivation rec {
|
|||
docbook-xsl-nons
|
||||
docbook_xml_dtd_43
|
||||
python3
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
|
|||
gettext
|
||||
wrapGAppsHook4
|
||||
libxml2
|
||||
glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||
# Fixup adapted from export-zips.sh in the source.
|
||||
|
||||
extensiondir=$out/share/gnome-shell/extensions
|
||||
schemadir=${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
||||
schemadir=${glib.makeSchemaPath "$out" "$name"}
|
||||
|
||||
glib-compile-schemas $schemadir
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ stdenv.mkDerivation rec {
|
|||
wrapGAppsHook
|
||||
meson
|
||||
ninja
|
||||
glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
|
|||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config intltool ];
|
||||
nativeBuildInputs = [ pkg-config intltool gtk3 ];
|
||||
buildInputs = [ gtk3 librsvg pango atk gtk2 gdk-pixbuf ];
|
||||
propagatedBuildInputs = [ gnome.adwaita-icon-theme hicolor-icon-theme ];
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||
outputs = [ "out" "dev" ];
|
||||
|
||||
buildInputs = [ gtk3 ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [ pkg-config gobject-introspection ];
|
||||
propagatedBuildInputs =
|
||||
[ libX11 libGL libGLU libXext libXfixes libXdamage libXcomposite libXi cogl pango
|
||||
atk json-glib gobject-introspection libxcb libinput libgudev libxkbcommon
|
||||
|
|
|
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config libintl automake autoconf ];
|
||||
nativeBuildInputs = [ pkg-config libintl automake autoconf gobject-introspection ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-introspection"
|
||||
|
@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
|
|||
] ++ lib.optional gstreamerSupport "--enable-cogl-gst"
|
||||
++ lib.optionals (!stdenv.isDarwin) [ "--enable-gles1" "--enable-gles2" ];
|
||||
|
||||
# TODO: this shouldn't propagate so many things
|
||||
# especially not gobject-introspection
|
||||
propagatedBuildInputs = with xorg; [
|
||||
glib gdk-pixbuf gobject-introspection wayland mesa
|
||||
libGL libXrandr libXfixes libXcomposite libXdamage
|
||||
|
|
|
@ -46,10 +46,11 @@ stdenv.mkDerivation rec {
|
|||
wrapGAppsHook
|
||||
vala
|
||||
shared-mime-info
|
||||
gnupg
|
||||
openssh
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gnupg
|
||||
libgcrypt
|
||||
libtasn1
|
||||
pango
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gettext
|
||||
|
@ -53,6 +54,8 @@ stdenv.mkDerivation rec {
|
|||
gtk-doc
|
||||
docbook-xsl-nons
|
||||
gobject-introspection
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, fetchurl
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, pkg-config
|
||||
, exiv2
|
||||
|
@ -35,13 +36,13 @@ stdenv.mkDerivation rec {
|
|||
gtk-doc
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_43
|
||||
(python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ]))
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
# Python binding overrides
|
||||
python3
|
||||
python3.pkgs.pygobject3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, stdenv
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gnome
|
||||
|
@ -55,15 +56,17 @@ in stdenv.mkDerivation rec {
|
|||
makeWrapper
|
||||
which # for locale detection
|
||||
libxml2 # for xml-stripblanks
|
||||
dbus # for dbus-run-session
|
||||
gobject-introspection
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gobject-introspection
|
||||
cairo
|
||||
readline
|
||||
libsysprof-capture
|
||||
spidermonkey_91
|
||||
dbus # for dbus-run-session
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
|
|
@ -14,8 +14,8 @@ stdenv.mkDerivation rec {
|
|||
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config gettext ];
|
||||
buildInputs = [ glib gobject-introspection ];
|
||||
nativeBuildInputs = [ pkg-config gettext gobject-introspection ];
|
||||
buildInputs = [ glib ];
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, fetchurl
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gettext
|
||||
|
@ -47,6 +48,8 @@ stdenv.mkDerivation rec {
|
|||
gtk-doc
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_43
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, stdenv
|
||||
, buildPackages
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, libxml2
|
||||
|
@ -38,10 +39,10 @@ stdenv.mkDerivation rec {
|
|||
libxml2
|
||||
autoreconfHook
|
||||
gtk-doc
|
||||
glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
icu
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
|
@ -53,6 +54,11 @@ stdenv.mkDerivation rec {
|
|||
enchant2
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"GLIB_COMPILE_RESOURCES=${lib.getDev buildPackages.glib}/bin/glib-compile-resources"
|
||||
"GLIB_MKENUMS=${lib.getDev buildPackages.glib}/bin/glib-mkenums"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, python3, gtk3, glibmm, cairomm, pangomm, atkmm, libepoxy, gnome }:
|
||||
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, python3, gtk3, glibmm, cairomm, pangomm, atkmm, libepoxy, gnome, glib, gdk-pixbuf }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtkmm";
|
||||
|
@ -11,7 +11,14 @@ stdenv.mkDerivation rec {
|
|||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config meson ninja python3 ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
python3
|
||||
glib
|
||||
gdk-pixbuf # for gdk-pixbuf-pixdata
|
||||
];
|
||||
buildInputs = [ libepoxy ];
|
||||
|
||||
propagatedBuildInputs = [ glibmm gtk3 atkmm cairomm pangomm ];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
}:
|
||||
|
||||
let
|
||||
pythonEnv = python3.withPackages(ps: with ps; [
|
||||
pythonEnv = python3.pythonForBuild.withPackages(ps: with ps; [
|
||||
setuptools
|
||||
]);
|
||||
in
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitLab, meson, ninja, glib, check, python3, vala, gtk-doc, glibcLocales
|
||||
{ lib, stdenv, fetchFromGitLab, meson, mesonEmulatorHook, ninja, glib, check, python3, vala, gtk-doc, glibcLocales
|
||||
, libxml2, libxslt, pkg-config, sqlite, docbook_xsl, docbook_xml_dtd_43, gobject-introspection }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
|
|||
ninja
|
||||
pkg-config
|
||||
vala
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -38,6 +40,12 @@ stdenv.mkDerivation rec {
|
|||
sqlite
|
||||
];
|
||||
|
||||
# TODO: send patch upstream to make running tests optional
|
||||
postPatch = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
substituteInPlace meson.build \
|
||||
--replace "subdir('tests')" ""
|
||||
'';
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
mesonFlags = [
|
||||
|
|
|
@ -33,6 +33,10 @@ stdenv.mkDerivation rec {
|
|||
hash = "sha256-xxnLgPKPOND/ITvDC6SOD2GlkzlIX3BzBbt6p2AEjgY=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gi-docgen
|
||||
meson
|
||||
|
@ -40,6 +44,7 @@ stdenv.mkDerivation rec {
|
|||
pkg-config
|
||||
sassc
|
||||
vala
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
|
@ -50,7 +55,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [
|
||||
fribidi
|
||||
gobject-introspection
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
AppKit
|
||||
Foundation
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, fetchurl
|
||||
, ninja
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, pkg-config
|
||||
, vala
|
||||
, gobject-introspection
|
||||
|
@ -43,6 +44,8 @@ stdenv.mkDerivation rec {
|
|||
glib
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
xvfb-run
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -55,6 +55,14 @@ stdenv.mkDerivation rec {
|
|||
patchShebangs ./tests/
|
||||
'';
|
||||
|
||||
# checking pkg-config is at least version 0.9.0... ./configure: line 15213: no: command not found
|
||||
# configure: error: in `/build/libgsf-1.14.50':
|
||||
# configure: error: The pkg-config script could not be found or is too old. Make sure it
|
||||
# is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||
preConfigure = ''
|
||||
export PKG_CONFIG="$(command -v "$PKG_CONFIG")"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
|
|
|
@ -35,6 +35,10 @@ stdenv.mkDerivation rec {
|
|||
./fix-pkgconfig.patch
|
||||
];
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
|
@ -43,8 +47,7 @@ stdenv.mkDerivation rec {
|
|||
vala
|
||||
gi-docgen
|
||||
gobject-introspection
|
||||
python3
|
||||
python3.pkgs.pygobject3
|
||||
(python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ]))
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -63,6 +66,18 @@ stdenv.mkDerivation rec {
|
|||
postPatch = ''
|
||||
patchShebangs build-aux/meson/meson_post_install.py
|
||||
patchShebangs build-aux/meson/gen_locations_variant.py
|
||||
|
||||
# Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
|
||||
# it should be a build-time dep for build
|
||||
# TODO: send upstream
|
||||
substituteInPlace doc/meson.build \
|
||||
--replace "'gi-docgen', ver" "'gi-docgen', native:true, ver" \
|
||||
--replace "'gi-docgen', req" "'gi-docgen', native:true, req"
|
||||
|
||||
# gir works for us even when cross-compiling
|
||||
# TODO: send upstream because downstream users can use the option to disable gir if they don't have it working
|
||||
substituteInPlace libgweather/meson.build \
|
||||
--replace "g_ir_scanner.found() and not meson.is_cross_build()" "g_ir_scanner.found()"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
|
|
|
@ -31,7 +31,6 @@ stdenv.mkDerivation rec {
|
|||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
|
||||
"devdoc"
|
||||
] ++ lib.optionals enableGlade [
|
||||
"glade"
|
||||
|
@ -43,6 +42,10 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-R3iL01gE69M8sJkR6XU0TIQ1ngttlSCv0cgh66i6d/8=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gobject-introspection
|
||||
gi-docgen
|
||||
|
@ -70,9 +73,8 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
||||
"-Dgtk_doc=true"
|
||||
"-Dglade_catalog=${if enableGlade then "enabled" else "disabled"}"
|
||||
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
|
||||
];
|
||||
|
||||
# Uses define_variable in pkg-config, but we still need it to use the glade output
|
||||
|
|
|
@ -15,7 +15,9 @@ stdenv.mkDerivation rec {
|
|||
pname = "liblouis";
|
||||
version = "3.22.0";
|
||||
|
||||
outputs = [ "out" "dev" "man" "info" "doc" ];
|
||||
outputs = [ "out" "dev" "info" "doc" ]
|
||||
# configure: WARNING: cannot generate manual pages while cross compiling
|
||||
++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ "man" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "liblouis";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, vala, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, gdk-pixbuf, gobject-introspection, gnome }:
|
||||
{ lib, stdenv, fetchurl, meson, mesonEmulatorHook, ninja, pkg-config, vala, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, gdk-pixbuf, gobject-introspection, gnome }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libmediaart";
|
||||
|
@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "w7xQJdfbOAWH+cjrgAxhH2taFta0t4/P+T9ih2pnfxc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config vala gtk-doc docbook_xsl docbook_xml_dtd_412 gobject-introspection ];
|
||||
nativeBuildInputs = [ meson ninja pkg-config vala gtk-doc docbook_xsl docbook_xml_dtd_412 gobject-introspection ]
|
||||
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [ glib gdk-pixbuf ];
|
||||
|
||||
mesonFlags = [
|
||||
|
|
|
@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1iVSD6AuiXcCmyRq5Dm8IYloll8egtYSIItxPx3MPQ4=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
|
|
|
@ -40,6 +40,10 @@ stdenv.mkDerivation rec {
|
|||
})
|
||||
];
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
, pipewire
|
||||
, # options
|
||||
enableDocs ? true
|
||||
, enableGI ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||
, enableGI ? true
|
||||
}:
|
||||
let
|
||||
mesonEnableFeature = b: if b then "enabled" else "disabled";
|
||||
|
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
|
|||
gobject-introspection
|
||||
] ++ lib.optionals (enableDocs || enableGI) [
|
||||
doxygen
|
||||
(python3.withPackages (ps: with ps;
|
||||
(python3.pythonForBuild.withPackages (ps: with ps;
|
||||
lib.optionals enableDocs [ sphinx sphinx-rtd-theme breathe ] ++
|
||||
lib.optionals enableGI [ lxml ]
|
||||
))
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
, python
|
||||
, pygobject3
|
||||
, gobject-introspection
|
||||
, gst-plugins-base
|
||||
, gst_all_1
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
|
@ -28,22 +28,27 @@ buildPythonPackage rec {
|
|||
# Python 2.x is not supported.
|
||||
disabled = !isPy3k;
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
python
|
||||
gobject-introspection
|
||||
gst-plugins-base
|
||||
gst_all_1.gst-plugins-base
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gst-plugins-base
|
||||
gst_all_1.gst-plugins-base
|
||||
pygobject3
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dpygi-overrides-dir=${placeholder "out"}/${python.sitePackages}/gi/overrides"
|
||||
# Exec format error during configure
|
||||
"-Dpython=${python.pythonForBuild.interpreter}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -43,10 +43,10 @@ stdenv.mkDerivation rec {
|
|||
shared-mime-info
|
||||
wrapGAppsHook
|
||||
gnome.adwaita-icon-theme
|
||||
glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
json-glib
|
||||
pango
|
||||
|
|
|
@ -44,6 +44,10 @@ stdenv.mkDerivation rec {
|
|||
})
|
||||
];
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
asciidoc
|
||||
docbook_xml_dtd_45
|
||||
|
@ -53,10 +57,10 @@ stdenv.mkDerivation rec {
|
|||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
glib
|
||||
] ++ lib.optional (!doCheck) python3;
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
polkit
|
||||
systemd
|
||||
];
|
||||
|
@ -71,7 +75,7 @@ stdenv.mkDerivation rec {
|
|||
dbus
|
||||
gobject-introspection
|
||||
umockdev
|
||||
(python3.withPackages
|
||||
(python3.pythonForBuild.withPackages
|
||||
(p: [ p.pygobject3 p.dbus-python p.python-dbusmock ]))
|
||||
];
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, pkg-config
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, fetchFromGitLab
|
||||
, fetchpatch
|
||||
|
@ -24,13 +25,6 @@
|
|||
, nixosTests
|
||||
}:
|
||||
|
||||
let
|
||||
testPythonPkgs = ps: with ps; [
|
||||
pygobject3
|
||||
dbus-python
|
||||
python-dbusmock
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "power-profiles-daemon";
|
||||
version = "0.12";
|
||||
|
@ -58,6 +52,14 @@ stdenv.mkDerivation rec {
|
|||
gobject-introspection
|
||||
wrapGAppsNoGuiHook
|
||||
python3.pkgs.wrapPython
|
||||
# checkInput but cheked for during the configuring
|
||||
(python3.pythonForBuild.withPackages (ps: with ps; [
|
||||
pygobject3
|
||||
dbus-python
|
||||
python-dbusmock
|
||||
]))
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -81,13 +83,12 @@ stdenv.mkDerivation rec {
|
|||
checkInputs = [
|
||||
umockdev
|
||||
dbus
|
||||
(python3.withPackages testPythonPkgs)
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||
"-Dgtk_doc=true"
|
||||
"-Dtests=true"
|
||||
"-Dtests=${lib.boolToString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ stdenv
|
||||
, fetchurl
|
||||
, meson
|
||||
, mesonEmulatorHook
|
||||
, ninja
|
||||
, gettext
|
||||
, gtk-doc
|
||||
|
@ -51,6 +52,8 @@ stdenv.mkDerivation rec {
|
|||
docbook_xml_dtd_43
|
||||
libxml2
|
||||
vala
|
||||
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
mesonEmulatorHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -72,7 +75,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace src/nma-ws/nma-eap.c --subst-var-by \
|
||||
NM_APPLET_GSETTINGS ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
||||
NM_APPLET_GSETTINGS ${glib.makeSchemaPath "$out" "$name"}
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -44,7 +44,6 @@ stdenv.mkDerivation rec {
|
|||
glib
|
||||
polkit
|
||||
python3
|
||||
gobject-introspection
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gtk3
|
||||
|
@ -54,6 +53,8 @@ stdenv.mkDerivation rec {
|
|||
] ++ lib.optional enableSystemd systemd
|
||||
++ lib.optional enableBashCompletion bash-completion;
|
||||
nativeBuildInputs = [
|
||||
gobject-introspection
|
||||
glib
|
||||
vala
|
||||
gettext
|
||||
pkg-config
|
||||
|
|
|
@ -4010,8 +4010,8 @@ in {
|
|||
};
|
||||
|
||||
gst-python = callPackage ../development/python-modules/gst-python {
|
||||
inherit (pkgs) meson;
|
||||
inherit (pkgs.gst_all_1) gst-plugins-base;
|
||||
# inherit (pkgs) meson won't work because it won't be spliced
|
||||
inherit (pkgs.buildPackages) meson;
|
||||
};
|
||||
|
||||
gtfs-realtime-bindings = callPackage ../development/python-modules/gtfs-realtime-bindings { };
|
||||
|
|
Loading…
Reference in a new issue