Merge staging into staging-next
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, wrapGAppsHook
|
||||
, gnome3, avahi, gtk3, libappindicator-gtk3, libnotify, libpulseaudio
|
||||
, xlibsWrapper
|
||||
, xlibsWrapper, gsettings-desktop-schemas
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
gnome3.adwaita-icon-theme
|
||||
avahi gtk3 libappindicator-gtk3 libnotify libpulseaudio xlibsWrapper
|
||||
gnome3.gsettings-desktop-schemas
|
||||
gsettings-desktop-schemas
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "zstd-${version}";
|
||||
version = "1.3.8";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "03jfbjzgqy5gvpym28r2phphdn536zvwfc6cw58ffk5ssm6blnqd";
|
||||
sha256 = "1gfxi3ymgavjfxh84rhfjan7l4pymwfrn051nwc7n0s3mxp09m6v";
|
||||
rev = "v${version}";
|
||||
repo = "zstd";
|
||||
owner = "facebook";
|
||||
@@ -33,8 +33,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace programs/zstdgrep \
|
||||
--replace "=grep" "=${gnugrep}/bin/grep" \
|
||||
--replace "=zstdcat" "=$out/bin/zstdcat"
|
||||
--replace ":-grep" ":-${gnugrep}/bin/grep" \
|
||||
--replace ":-zstdcat" ":-$out/bin/zstdcat"
|
||||
|
||||
substituteInPlace programs/zstdless \
|
||||
--replace "zstdcat" "$out/bin/zstdcat"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, pkgconfig, openssl, pcsclite, check }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "yubico-piv-tool-1.6.2";
|
||||
name = "yubico-piv-tool-1.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://developers.yubico.com/yubico-piv-tool/Releases/${name}.tar.gz";
|
||||
sha256 = "06r3vxgj7qrk8si7khjy696sm45h3w9d0rrrj0hyswalqzavqqga";
|
||||
sha256 = "0zzxh8p9p097zkh9b3prbnigxsc2wy1pj1r8f5ikli9i81z54a5l";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
stdenv.mkDerivation rec {
|
||||
# when updating this to >=7, check, see previous reverts:
|
||||
# nix-build -A nixos.tests.networking.scripted.macvlan.x86_64-linux nixos/release-combined.nix
|
||||
name = "dhcpcd-7.1.1";
|
||||
name = "dhcpcd-7.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://roy/dhcpcd/${name}.tar.xz";
|
||||
sha256 = "0h94g5nl9bg3x3qaajqaz6izl6mlvyjgp93nifnlfb7r7n3j8yd2";
|
||||
sha256 = "0hmjxix7jmbbzgjw8chxgp6kzmwf5sxdimb35i1cnsm830rmbzsz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
{ stdenv, fetchurl, substituteAll, intltool, pkgconfig, dbus, dbus-glib
|
||||
, gnome3, systemd, libuuid, polkit, gnutls, ppp, dhcp, iptables
|
||||
, libgcrypt, dnsmasq, bluez5, readline
|
||||
, gnome3, systemd, libuuid, polkit, gnutls, ppp, dhcp, iptables, python3, vala
|
||||
, libgcrypt, dnsmasq, bluez5, readline, libselinux, audit
|
||||
, gobject-introspection, modemmanager, openresolv, libndp, newt, libsoup
|
||||
, ethtool, gnused, coreutils, file, inetutils, kmod, jansson, libxslt
|
||||
, python3Packages, docbook_xsl, openconnect, curl, autoreconfHook }:
|
||||
, ethtool, gnused, coreutils, inetutils, kmod, jansson, gtk-doc, libxslt
|
||||
, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_42, docbook_xml_dtd_43
|
||||
, openconnect, curl, meson, ninja, libpsl, libredirect }:
|
||||
|
||||
let
|
||||
pname = "NetworkManager";
|
||||
pythonForDocs = python3.withPackages (pkgs: with pkgs; [ pygobject3 ]);
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "network-manager-${version}";
|
||||
version = "1.16.0";
|
||||
@@ -16,44 +18,34 @@ in stdenv.mkDerivation rec {
|
||||
sha256 = "0b2x9hrg41cd17psqi0vacwj733v99hxczn53gdfs0yanqrji5lf";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./tools
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace configure --replace /usr/bin/uname ${coreutils}/bin/uname
|
||||
substituteInPlace configure --replace /usr/bin/file ${file}/bin/file
|
||||
|
||||
# Fixes: error: po/Makefile.in.in was not created by intltoolize.
|
||||
intltoolize --automake --copy --force
|
||||
'';
|
||||
outputs = [ "out" "dev" "devdoc" "man" "doc" ];
|
||||
|
||||
# Right now we hardcode quite a few paths at build time. Probably we should
|
||||
# patch networkmanager to allow passing these path in config file. This will
|
||||
# remove unneeded build-time dependencies.
|
||||
configureFlags = [
|
||||
"--with-dhclient=${dhcp}/bin/dhclient"
|
||||
"--with-dnsmasq=${dnsmasq}/bin/dnsmasq"
|
||||
mesonFlags = [
|
||||
"-Ddhclient=${dhcp}/bin/dhclient"
|
||||
"-Ddnsmasq=${dnsmasq}/bin/dnsmasq"
|
||||
# Upstream prefers dhclient, so don't add dhcpcd to the closure
|
||||
"--with-dhcpcd=no"
|
||||
"--with-pppd=${ppp}/bin/pppd"
|
||||
"--with-iptables=${iptables}/bin/iptables"
|
||||
"-Ddhcpcd=no"
|
||||
"-Dpppd=${ppp}/bin/pppd"
|
||||
"-Diptables=${iptables}/bin/iptables"
|
||||
# to enable link-local connections
|
||||
"--with-udev-dir=${placeholder "out"}/lib/udev"
|
||||
"--with-resolvconf=${openresolv}/sbin/resolvconf"
|
||||
"--sysconfdir=/etc" "--localstatedir=/var"
|
||||
"--with-dbus-sys-dir=${placeholder "out"}/etc/dbus-1/system.d"
|
||||
"--with-crypto=gnutls" "--disable-more-warnings"
|
||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||
"--with-kernel-firmware-dir=/run/current-system/firmware"
|
||||
"--with-session-tracking=systemd"
|
||||
"--with-modem-manager-1"
|
||||
"--with-nmtui"
|
||||
"--disable-gtk-doc"
|
||||
"--with-libnm-glib" # legacy library, TODO: remove
|
||||
"--disable-tests"
|
||||
"-Dudev_dir=${placeholder "out"}/lib/udev"
|
||||
"-Dresolvconf=${openresolv}/bin/resolvconf"
|
||||
"-Ddbus_conf_dir=${placeholder "out"}/etc/dbus-1/system.d"
|
||||
"-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||
"-Dkernel_firmware_dir=/run/current-system/firmware"
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
"-Dcrypto=gnutls"
|
||||
"-Dsession_tracking=systemd"
|
||||
"-Dmodem_manager=true"
|
||||
"-Dnmtui=true"
|
||||
"-Ddocs=true"
|
||||
"-Dlibnm_glib=true" # legacy library, TODO: remove
|
||||
"-Dtests=no"
|
||||
"-Dqt=false"
|
||||
];
|
||||
|
||||
patches = [
|
||||
@@ -63,31 +55,45 @@ in stdenv.mkDerivation rec {
|
||||
inherit (stdenv) shell;
|
||||
})
|
||||
|
||||
# Meson does not support using different directories during build and
|
||||
# for installation like Autotools did with flags passed to make install.
|
||||
./fix-install-paths.patch
|
||||
|
||||
# Our gobject-introspection patches make the shared library paths absolute
|
||||
# in the GIR files. When building docs, the library is not yet installed,
|
||||
# though, so we need to replace the absolute path with a local one during build.
|
||||
# We are replacing the variables in postPatch since substituteAll does not support
|
||||
# placeholders.
|
||||
./fix-docs-build.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
systemd libuuid polkit ppp libndp curl
|
||||
systemd libselinux audit libpsl libuuid polkit ppp libndp curl
|
||||
bluez5 dnsmasq gobject-introspection modemmanager readline newt libsoup jansson
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ dbus-glib gnutls libgcrypt python3Packages.pygobject3 ];
|
||||
propagatedBuildInputs = [ dbus-glib gnutls libgcrypt ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook intltool pkgconfig libxslt docbook_xsl ];
|
||||
nativeBuildInputs = [
|
||||
meson ninja intltool pkgconfig
|
||||
vala gobject-introspection
|
||||
dbus-glib # for dbus-binding-tool
|
||||
# Docs
|
||||
gtk-doc libxslt docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_42 docbook_xml_dtd_43 pythonForDocs
|
||||
];
|
||||
|
||||
doCheck = false; # requires /sys, the net
|
||||
|
||||
installFlags = [
|
||||
"sysconfdir=${placeholder "out"}/etc"
|
||||
"localstatedir=${placeholder "out"}/var"
|
||||
"runstatedir=${placeholder "out"}/run"
|
||||
];
|
||||
postPatch = ''
|
||||
patchShebangs ./tools
|
||||
patchShebangs libnm/generate-setting-docs.py
|
||||
|
||||
substituteInPlace libnm/meson.build \
|
||||
--subst-var-by DOCS_LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||
--subst-var-by DOCS_NIX_REDIRECTS "${placeholder "out"}/lib/libnm.so.0=$PWD/build/libnm/libnm.so.0"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/NetworkManager
|
||||
|
||||
# FIXME: Workaround until NixOS' dbus+systemd supports at_console policy
|
||||
substituteInPlace $out/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf --replace 'at_console="true"' 'group="networkmanager"'
|
||||
|
||||
# systemd in NixOS doesn't use `systemctl enable`, so we need to establish
|
||||
# aliases ourselves.
|
||||
ln -s $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
|
||||
|
||||
11
pkgs/tools/networking/network-manager/fix-docs-build.patch
Normal file
11
pkgs/tools/networking/network-manager/fix-docs-build.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/libnm/meson.build
|
||||
+++ b/libnm/meson.build
|
||||
@@ -262,6 +262,8 @@
|
||||
'env', '-i',
|
||||
'GI_TYPELIB_PATH=' + gi_typelib_path,
|
||||
'LD_LIBRARY_PATH=' + ld_library_path,
|
||||
+ 'LD_PRELOAD=' + '@DOCS_LD_PRELOAD@',
|
||||
+ 'NIX_REDIRECTS=' + '@DOCS_NIX_REDIRECTS@',
|
||||
]
|
||||
|
||||
name = 'nm-property-docs.xml'
|
||||
@@ -0,0 +1,25 @@
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -925,9 +925,9 @@
|
||||
join_paths('tools', 'meson-post-install.sh'),
|
||||
nm_datadir,
|
||||
nm_bindir,
|
||||
- nm_pkgconfdir,
|
||||
+ nm_prefix + nm_pkgconfdir,
|
||||
nm_pkglibdir,
|
||||
- nm_pkgstatedir,
|
||||
+ nm_prefix + nm_pkgstatedir,
|
||||
enable_docs ? 'install_docs' : '',
|
||||
nm_mandir,
|
||||
)
|
||||
--- a/src/settings/plugins/ifcfg-rh/meson.build
|
||||
+++ b/src/settings/plugins/ifcfg-rh/meson.build
|
||||
@@ -70,7 +70,7 @@
|
||||
)
|
||||
|
||||
meson.add_install_script('sh', '-c',
|
||||
- 'mkdir -p $DESTDIR/@0@/sysconfig/network-scripts'.format(nm_sysconfdir))
|
||||
+ 'mkdir -p $DESTDIR/@0@/sysconfig/network-scripts'.format(nm_prefix + nm_sysconfdir))
|
||||
|
||||
if enable_tests
|
||||
subdir('tests')
|
||||
@@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, alsaLib, atk, cairo, cups, udev, hicolor-icon-theme
|
||||
, dbus, expat, fontconfig, freetype, gdk_pixbuf, glib, gtk3, gnome3
|
||||
, libnotify, nspr, nss, pango, systemd, xorg, autoPatchelfHook, wrapGAppsHook
|
||||
, runtimeShell }:
|
||||
, runtimeShell, gsettings-desktop-schemas }:
|
||||
|
||||
let
|
||||
versionSuffix = "20190205202117.6394d03e6c";
|
||||
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
|
||||
freetype
|
||||
gdk_pixbuf
|
||||
glib
|
||||
gnome3.gsettings-desktop-schemas
|
||||
gsettings-desktop-schemas
|
||||
gtk3
|
||||
libnotify
|
||||
nspr
|
||||
|
||||
68
pkgs/tools/text/gtranslator/default.nix
Normal file
68
pkgs/tools/text/gtranslator/default.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, meson
|
||||
, ninja
|
||||
, pkgconfig
|
||||
, itstool
|
||||
, gettext
|
||||
, python3
|
||||
, wrapGAppsHook
|
||||
, libxml2
|
||||
, libgda
|
||||
, gspell
|
||||
, glib
|
||||
, gtk3
|
||||
, gtksourceview4
|
||||
, gnome3
|
||||
, gsettings-desktop-schemas
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtranslator";
|
||||
version = "3.32.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "1dqigah7x6h3afw5jcs3lw3h9y0acj72arcgxr89l6galvknr2xa";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkgconfig
|
||||
itstool
|
||||
gettext
|
||||
python3
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libxml2
|
||||
glib
|
||||
gtk3
|
||||
gtksourceview4
|
||||
libgda
|
||||
gettext
|
||||
gspell
|
||||
gsettings-desktop-schemas
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x build-aux/meson/meson_post_install.py
|
||||
patchShebangs build-aux/meson/meson_post_install.py
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GNOME translation making program";
|
||||
homepage = https://wiki.gnome.org/Apps/Gtranslator;
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user