forked from mirrors/nixpkgs
Merge pull request #68875 from worldofpeace/dont-use-deprecated-dbusdirs
Don't use deprecated dbusdirs
This commit is contained in:
commit
86c7fc4113
|
@ -53,6 +53,11 @@ stdenv.mkDerivation rec {
|
||||||
url = "https://src.fedoraproject.org/rpms/lightdm/raw/4cf0d2bed8d1c68970b0322ccd5dbbbb7a0b12bc/f/lightdm-1.25.1-disable_dmrc.patch";
|
url = "https://src.fedoraproject.org/rpms/lightdm/raw/4cf0d2bed8d1c68970b0322ccd5dbbbb7a0b12bc/f/lightdm-1.25.1-disable_dmrc.patch";
|
||||||
sha256 = "06f7iabagrsiws2l75sx2jyljknr9js7ydn151p3qfi104d1541n";
|
sha256 = "06f7iabagrsiws2l75sx2jyljknr9js7ydn151p3qfi104d1541n";
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/canonical/lightdm/commit/a99376f5f51aa147aaf81287d7ce70db76022c47.patch";
|
||||||
|
sha256 = "1zyx1qqajrmqcf9hbsapd39gmdanswd9l78rq7q6rdy4692il3yn";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
||||||
|
|
|
@ -46,6 +46,7 @@ in mkDerivation {
|
||||||
"-DQT_IMPORTS_DIR=${placeholder "out"}/${qtbase.qtQmlPrefix}"
|
"-DQT_IMPORTS_DIR=${placeholder "out"}/${qtbase.qtQmlPrefix}"
|
||||||
"-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc"
|
"-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc"
|
||||||
"-DSYSTEMD_SYSTEM_UNIT_DIR=${placeholder "out"}/lib/systemd/system"
|
"-DSYSTEMD_SYSTEM_UNIT_DIR=${placeholder "out"}/lib/systemd/system"
|
||||||
|
"-DDBUS_CONFIG_DIR=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, intltool, glib, dbus-glib, libxklavier,
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, dbus-glib, libxklavier,
|
||||||
libcanberra-gtk3, libnotify, nss, polkit, gnome3, gtk3, mate,
|
libcanberra-gtk3, libnotify, nss, polkit, gnome3, gtk3, mate,
|
||||||
pulseaudioSupport ? stdenv.config.pulseaudio or true, libpulseaudio,
|
pulseaudioSupport ? stdenv.config.pulseaudio or true, libpulseaudio,
|
||||||
wrapGAppsHook }:
|
wrapGAppsHook, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mate-settings-daemon";
|
pname = "mate-settings-daemon";
|
||||||
|
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0yr5v6b9hdk20j29smbw1k4fkyg82i5vlflmgly0vi5whgc74gym";
|
sha256 = "0yr5v6b9hdk20j29smbw1k4fkyg82i5vlflmgly0vi5whgc74gym";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/mate-desktop/mate-settings-daemon/pull/296.patch";
|
||||||
|
sha256 = "00dfn8h47zw3wr7yya82vvp19wsw51whn8jwgayn4hkjd161s9nm";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
intltool
|
intltool
|
||||||
|
|
|
@ -70,6 +70,11 @@ stdenv.mkDerivation rec {
|
||||||
url = "https://gitlab.freedesktop.org/accountsservice/accountsservice/commit/0e712e935abd26499ff5995ab363e5bfd9ee7c4c.patch";
|
url = "https://gitlab.freedesktop.org/accountsservice/accountsservice/commit/0e712e935abd26499ff5995ab363e5bfd9ee7c4c.patch";
|
||||||
sha256 = "1y60a5fmgfqjzprwpizilrazqn3mggdlgc5sgcpsprsp62fv78rl";
|
sha256 = "1y60a5fmgfqjzprwpizilrazqn3mggdlgc5sgcpsprsp62fv78rl";
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.freedesktop.org/accountsservice/accountsservice/commit/ced73d0fcbd2a54085a660d260482fc70d79bd5c.patch";
|
||||||
|
sha256 = "0s7fknfgxl8hnf6givmhfg4586fjb2n64i9arh1w7xnq7x9x8d4c";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
|
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
|
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
|
||||||
"--disable-gtk"
|
"--disable-gtk" "--with-dbus-sys=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
(stdenv.lib.enableFeature gtk3Support "gtk3")
|
(stdenv.lib.enableFeature gtk3Support "gtk3")
|
||||||
"--${if qt4Support then "enable" else "disable"}-qt4"
|
"--${if qt4Support then "enable" else "disable"}-qt4"
|
||||||
(stdenv.lib.enableFeature withPython "python")
|
(stdenv.lib.enableFeature withPython "python")
|
||||||
|
|
|
@ -61,6 +61,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-system-bubblewrap=${bubblewrap}/bin/bwrap"
|
"--with-system-bubblewrap=${bubblewrap}/bin/bwrap"
|
||||||
"--with-system-dbus-proxy=${xdg-dbus-proxy}/bin/xdg-dbus-proxy"
|
"--with-system-dbus-proxy=${xdg-dbus-proxy}/bin/xdg-dbus-proxy"
|
||||||
|
"--dbus_config_dir=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--enable-installed-tests"
|
"--enable-installed-tests"
|
||||||
];
|
];
|
||||||
|
|
|
@ -43,6 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"-Dsysconfdir_install=${placeholder "out"}/etc"
|
"-Dsysconfdir_install=${placeholder "out"}/etc"
|
||||||
"-Ddbus-srv-user=geoclue"
|
"-Ddbus-srv-user=geoclue"
|
||||||
|
"-Ddbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
"-D3g-source=false"
|
"-D3g-source=false"
|
||||||
"-Dcdma-source=false"
|
"-Dcdma-source=false"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, glib, expat, pam, perl
|
{ stdenv, fetchurl, pkgconfig, glib, expat, pam, perl, fetchpatch
|
||||||
, intltool, spidermonkey_60 , gobject-introspection, libxslt, docbook_xsl, dbus
|
, intltool, spidermonkey_60 , gobject-introspection, libxslt, docbook_xsl, dbus
|
||||||
, docbook_xml_dtd_412, gtk-doc, coreutils
|
, docbook_xml_dtd_412, gtk-doc, coreutils
|
||||||
, useSystemd ? stdenv.isLinux, systemd
|
, useSystemd ? stdenv.isLinux, systemd
|
||||||
|
@ -22,6 +22,14 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1c9lbpndh5zis22f154vjrhnqw65z8s85nrgl42v738yf6g0q5w8";
|
sha256 = "1c9lbpndh5zis22f154vjrhnqw65z8s85nrgl42v738yf6g0q5w8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.freedesktop.org/polkit/polkit/merge_requests/11.patch";
|
||||||
|
sha256 = "17lv7xj5ksa27iv4zpm4zwd4iy8zbwjj4ximslfq3sasiz9kxhlp";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
sed -i -e "s/-Wl,--as-needed//" configure.ac
|
sed -i -e "s/-Wl,--as-needed//" configure.ac
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, intltool, pkgconfig, glib, polkit, cups }:
|
{ stdenv, fetchurl, intltool, pkgconfig, glib, polkit, cups, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.2.6";
|
version = "0.2.6";
|
||||||
|
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkgconfig intltool ];
|
nativeBuildInputs = [ pkgconfig intltool ];
|
||||||
buildInputs = [ glib polkit cups ];
|
buildInputs = [ glib polkit cups ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.freedesktop.org/cups-pk-helper/cups-pk-helper/merge_requests/2.patch";
|
||||||
|
sha256 = "1kamhr5kn8c1y0q8xbip0fgr7maf3dyddlvab4n0iypk7rwwikl0";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "PolicyKit helper to configure cups with fine-grained privileges";
|
description = "PolicyKit helper to configure cups with fine-grained privileges";
|
||||||
homepage = http://www.freedesktop.org/wiki/Software/cups-pk-helper/;
|
homepage = http://www.freedesktop.org/wiki/Software/cups-pk-helper/;
|
||||||
|
|
|
@ -48,6 +48,7 @@ stdenv.mkDerivation rec {
|
||||||
] ++ optionals stdenv.isLinux [
|
] ++ optionals stdenv.isLinux [
|
||||||
"--enable-dbus"
|
"--enable-dbus"
|
||||||
"--enable-pam"
|
"--enable-pam"
|
||||||
|
"--with-dbusdir=${placeholder "out"}/share/dbus-1"
|
||||||
] ++ optional (libusb != null) "--enable-libusb"
|
] ++ optional (libusb != null) "--enable-libusb"
|
||||||
++ optional (gnutls != null) "--enable-ssl"
|
++ optional (gnutls != null) "--enable-ssl"
|
||||||
++ optional (avahi != null) "--enable-avahi"
|
++ optional (avahi != null) "--enable-avahi"
|
||||||
|
@ -81,7 +82,6 @@ stdenv.mkDerivation rec {
|
||||||
"STATEDIR=$(TMPDIR)/dummy"
|
"STATEDIR=$(TMPDIR)/dummy"
|
||||||
# Idem for /etc.
|
# Idem for /etc.
|
||||||
"PAMDIR=$(out)/etc/pam.d"
|
"PAMDIR=$(out)/etc/pam.d"
|
||||||
"DBUSDIR=$(out)/etc/dbus-1"
|
|
||||||
"XINETD=$(out)/etc/xinetd.d"
|
"XINETD=$(out)/etc/xinetd.d"
|
||||||
"SERVERROOT=$(out)/etc/cups"
|
"SERVERROOT=$(out)/etc/cups"
|
||||||
# Idem for /usr.
|
# Idem for /usr.
|
||||||
|
|
|
@ -48,12 +48,12 @@ stdenv.mkDerivation rec {
|
||||||
"--enable-library"
|
"--enable-library"
|
||||||
"--enable-cups"
|
"--enable-cups"
|
||||||
"--enable-pie"
|
"--enable-pie"
|
||||||
"--with-dbusconfdir=$(out)/etc"
|
"--with-dbusconfdir=${placeholder "out"}/share"
|
||||||
"--with-dbussystembusdir=$(out)/share/dbus-1/system-services"
|
"--with-dbussystembusdir=${placeholder "out"}/share/dbus-1/system-services"
|
||||||
"--with-dbussessionbusdir=$(out)/share/dbus-1/services"
|
"--with-dbussessionbusdir=${placeholder "out"}/share/dbus-1/services"
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
"--with-systemduserunitdir=$(out)/etc/systemd/user"
|
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
||||||
"--with-udevdir=$(out)/lib/udev"
|
"--with-udevdir=${placeholder "out"}/lib/udev"
|
||||||
] ++ optional enableWiimote [ "--enable-wiimote" ]
|
] ++ optional enableWiimote [ "--enable-wiimote" ]
|
||||||
++ optional enableMidi [ "--enable-midi" ]
|
++ optional enableMidi [ "--enable-midi" ]
|
||||||
++ optional enableSixaxis [ "--enable-sixaxis" ]);
|
++ optional enableSixaxis [ "--enable-sixaxis" ]);
|
||||||
|
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
|
||||||
# Work around `make install' trying to create /var/lib/bluetooth.
|
# Work around `make install' trying to create /var/lib/bluetooth.
|
||||||
installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
|
installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
|
||||||
|
|
||||||
makeFlags = "rulesdir=$(out)/lib/udev/rules.d";
|
makeFlags = "rulesdir=${placeholder "out"}/lib/udev/rules.d";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $test/{bin,test}
|
mkdir -p $test/{bin,test}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, gtk-doc
|
, gtk-doc
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
@ -153,6 +154,11 @@ stdenv.mkDerivation rec {
|
||||||
# needs a different set of modules than po/make-images
|
# needs a different set of modules than po/make-images
|
||||||
inherit installedTestsPython;
|
inherit installedTestsPython;
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/fwupd/fwupd/commit/41a25be6f4b371c367904284e9251cd461ad5cfe.patch";
|
||||||
|
sha256 = "0vv3x2pq5bpmg9c8ax5dsqcblw45n7jmzgw6p8h4asyjy57mzhaq";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -56,7 +56,7 @@ in stdenv.mkDerivation {
|
||||||
#dontAddPrefix = true;
|
#dontAddPrefix = true;
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Ddbuspolicydir=${placeholder "out"}/etc/dbus-1/system.d"
|
"-Ddbuspolicydir=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
"-Ddbussessionservicedir=${placeholder "out"}/share/dbus-1/services"
|
"-Ddbussessionservicedir=${placeholder "out"}/share/dbus-1/services"
|
||||||
"-Ddbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services"
|
"-Ddbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services"
|
||||||
"-Dpamconfdir=${placeholder "out"}/etc/pam.d"
|
"-Dpamconfdir=${placeholder "out"}/etc/pam.d"
|
||||||
|
|
|
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/etc/dbus-1/system.d $out/share/dbus-1/system-services $out/etc/systemd/system
|
mkdir -p $out/etc/dbus-1/system.d $out/share/dbus-1/system-services $out/etc/systemd/system
|
||||||
cp -v "dbus/"*service $out/share/dbus-1/system-services
|
cp -v "dbus/"*service $out/share/dbus-1/system-services
|
||||||
sed -e "s@/sbin/wpa_supplicant@$out&@" -i "$out/share/dbus-1/system-services/"*
|
sed -e "s@/sbin/wpa_supplicant@$out&@" -i "$out/share/dbus-1/system-services/"*
|
||||||
cp -v dbus/dbus-wpa_supplicant.conf $out/etc/dbus-1/system.d
|
cp -v dbus/dbus-wpa_supplicant.conf $out/share/dbus-1/system.d
|
||||||
cp -v "systemd/"*.service $out/etc/systemd/system
|
cp -v "systemd/"*.service $out/etc/systemd/system
|
||||||
rm $out/share/man/man8/wpa_priv.8
|
rm $out/share/man/man8/wpa_priv.8
|
||||||
install -Dm444 wpa_supplicant.conf $out/share/doc/wpa_supplicant/wpa_supplicant.conf.example
|
install -Dm444 wpa_supplicant.conf $out/share/doc/wpa_supplicant/wpa_supplicant.conf.example
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, gnome3, librsvg, wrapGAppsHook, gobject-introspection
|
, gnome3, librsvg, wrapGAppsHook, gobject-introspection
|
||||||
, withNetworkManager ?
|
, withNetworkManager ?
|
||||||
config.networking.networkmanager.enable or false, networkmanager
|
config.networking.networkmanager.enable or false, networkmanager
|
||||||
, withPulseAudio ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
|
, withPulseAudio ? config.pulseaudio or stdenv.isLinux, libpulseaudio, fetchpatch }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pythonPackages = python3Packages;
|
pythonPackages = python3Packages;
|
||||||
|
@ -29,6 +29,14 @@ in stdenv.mkDerivation rec {
|
||||||
++ lib.optional withPulseAudio libpulseaudio
|
++ lib.optional withPulseAudio libpulseaudio
|
||||||
++ lib.optional withNetworkManager networkmanager;
|
++ lib.optional withNetworkManager networkmanager;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/blueman-project/blueman/pull/1103.patch";
|
||||||
|
sha256 = "0zqdi6ya97jljwinn10n9q6bixl23ww55c0pkhskn140qnrj42wf";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = lib.optionalString withPulseAudio ''
|
postPatch = lib.optionalString withPulseAudio ''
|
||||||
sed -i 's,CDLL(",CDLL("${libpulseaudio.out}/lib/,g' blueman/main/PulseAudioUtils.py
|
sed -i 's,CDLL(",CDLL("${libpulseaudio.out}/lib/,g' blueman/main/PulseAudioUtils.py
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--without-python"
|
"--without-python"
|
||||||
] ++ (if enableDbus then [
|
] ++ (if enableDbus then [
|
||||||
"--with-dbusconfdir=${placeholder "out"}/etc"
|
"--with-dbusconfdir=${placeholder "out"}/share"
|
||||||
] else [
|
] else [
|
||||||
"--without-dbus"
|
"--without-dbus"
|
||||||
]) ++ (if enableVideo then [
|
]) ++ (if enableVideo then [
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchurl, ostree, rpm, which, autoconf, automake, libtool, pkgconfig, cargo, rustc,
|
{ stdenv, fetchurl, ostree, rpm, which, autoconf, automake, libtool, pkgconfig, cargo, rustc,
|
||||||
gobject-introspection, gtk-doc, libxml2, libxslt, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_43, gperf, cmake,
|
gobject-introspection, gtk-doc, libxml2, libxslt, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_43, gperf, cmake,
|
||||||
libcap, glib, systemd, json-glib, libarchive, libsolv, librepo, polkit,
|
libcap, glib, systemd, json-glib, libarchive, libsolv, librepo, polkit,
|
||||||
bubblewrap, pcre, check, python, json_c, libmodulemd_1, utillinux, sqlite, cppunit }:
|
bubblewrap, pcre, check, python, json_c, libmodulemd_1, utillinux, sqlite, cppunit, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "rpm-ostree";
|
pname = "rpm-ostree";
|
||||||
|
@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
|
||||||
# https://github.com/NixOS/nixpkgs/pull/50953#issuecomment-449777169
|
# https://github.com/NixOS/nixpkgs/pull/50953#issuecomment-449777169
|
||||||
# https://github.com/NixOS/nixpkgs/pull/50953#issuecomment-452177080
|
# https://github.com/NixOS/nixpkgs/pull/50953#issuecomment-452177080
|
||||||
./fix-introspection-build.patch
|
./fix-introspection-build.patch
|
||||||
|
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/coreos/rpm-ostree/commit/60053d0d3d2279d120ae7007c6048e499d2c4d14.patch";
|
||||||
|
sha256 = "0ig21zip09iy2da7ksg87jykaj3q8jyzh8r7yrpzyql85qxiwm0m";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" "devdoc" ];
|
outputs = [ "out" "dev" "man" "devdoc" ];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, autoreconfHook, pkgconfig, docbook_xsl, libxslt, docbook_xml_dtd_45
|
, autoreconfHook, pkgconfig, docbook_xsl, libxslt, docbook_xml_dtd_45
|
||||||
, acl, attr, boost, btrfs-progs, dbus, diffutils, e2fsprogs, libxml2
|
, acl, attr, boost, btrfs-progs, dbus, diffutils, e2fsprogs, libxml2
|
||||||
, lvm2, pam, python, utillinux }:
|
, lvm2, pam, python, utillinux, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "snapper";
|
pname = "snapper";
|
||||||
|
@ -23,6 +23,14 @@ stdenv.mkDerivation rec {
|
||||||
lvm2 pam python utillinux
|
lvm2 pam python utillinux
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/openSUSE/snapper/commit/c51708aea22d9436da287cba84424557ad03644b.patch";
|
||||||
|
sha256 = "106pf7pv8z3q37c8ckmgwxs1phf2fy7l53a9g5xq5kk2rjj1cx34";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Hard-coded root paths, hard-coded root paths everywhere...
|
# Hard-coded root paths, hard-coded root paths everywhere...
|
||||||
for file in {client,data,pam,scripts}/Makefile.am; do
|
for file in {client,data,pam,scripts}/Makefile.am; do
|
||||||
|
|
|
@ -26,8 +26,8 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=\${out}/etc"
|
"--sysconfdir=\${out}/etc"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--with-dbusconfdir=\${out}/etc"
|
"--with-dbusconfdir=${placeholder "out"}/share"
|
||||||
"--with-dbusdatadir=\${out}/usr/share"
|
"--with-dbusdatadir=${placeholder "out"}/share"
|
||||||
"--disable-maintainer-mode"
|
"--disable-maintainer-mode"
|
||||||
"--enable-openconnect=builtin"
|
"--enable-openconnect=builtin"
|
||||||
"--with-openconnect=${openconnect}/sbin/openconnect"
|
"--with-openconnect=${openconnect}/sbin/openconnect"
|
||||||
|
|
|
@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist \
|
substituteInPlace $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist \
|
||||||
--replace "/usr/local/sbin" "$out/bin"
|
--replace "/usr/local/sbin" "$out/bin"
|
||||||
'' + optionalString stdenv.isLinux ''
|
'' + optionalString stdenv.isLinux ''
|
||||||
install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf
|
install -Dm644 dbus/dnsmasq.conf $out/share/dbus-1/system.d/dnsmasq.conf
|
||||||
install -Dm755 contrib/lease-tools/dhcp_lease_time $out/bin/dhcp_lease_time
|
install -Dm755 contrib/lease-tools/dhcp_lease_time $out/bin/dhcp_lease_time
|
||||||
install -Dm755 contrib/lease-tools/dhcp_release $out/bin/dhcp_release
|
install -Dm755 contrib/lease-tools/dhcp_release $out/bin/dhcp_release
|
||||||
install -Dm755 contrib/lease-tools/dhcp_release6 $out/bin/dhcp_release6
|
install -Dm755 contrib/lease-tools/dhcp_release6 $out/bin/dhcp_release6
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, substituteAll, openfortivpn, intltool, pkgconfig, file, gtk3,
|
{ stdenv, fetchurl, substituteAll, openfortivpn, intltool, pkgconfig, file, gtk3,
|
||||||
networkmanager, ppp, libsecret, withGnome ? true, gnome3 }:
|
networkmanager, ppp, libsecret, withGnome ? true, gnome3, fetchpatch }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "NetworkManager-fortisslvpn";
|
pname = "NetworkManager-fortisslvpn";
|
||||||
|
@ -17,6 +17,11 @@ in stdenv.mkDerivation {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit openfortivpn;
|
inherit openfortivpn;
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/merge_requests/11.patch";
|
||||||
|
sha256 = "0l7l2r1njh62lh2pf497ibf99sgkvjsj58xr76qx3jxgq9zfw6n9";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ openfortivpn networkmanager ppp ]
|
buildInputs = [ openfortivpn networkmanager ppp ]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, substituteAll, iodine, intltool, pkgconfig, networkmanager, libsecret, gtk3
|
{ stdenv, fetchurl, substituteAll, iodine, intltool, pkgconfig, networkmanager, libsecret, gtk3
|
||||||
, withGnome ? true, gnome3 }:
|
, withGnome ? true, gnome3, fetchpatch }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "NetworkManager-iodine";
|
pname = "NetworkManager-iodine";
|
||||||
|
@ -17,6 +17,11 @@ in stdenv.mkDerivation {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit iodine;
|
inherit iodine;
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/network-manager-iodine/merge_requests/2.patch";
|
||||||
|
sha256 = "108pkf0mddj32s46k7jkmpwcaq2ylci4dqpp7wck3zm9q2jffff2";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ iodine networkmanager ]
|
buildInputs = [ iodine networkmanager ]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, substituteAll, openconnect, intltool, pkgconfig, autoreconfHook, networkmanager, gcr, libsecret, file
|
{ stdenv, fetchurl, substituteAll, openconnect, intltool, pkgconfig, autoreconfHook, networkmanager, gcr, libsecret, file
|
||||||
, gtk3, withGnome ? true, gnome3, kmod }:
|
, gtk3, withGnome ? true, gnome3, kmod, fetchpatch }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "NetworkManager-openconnect";
|
pname = "NetworkManager-openconnect";
|
||||||
|
@ -17,6 +17,11 @@ in stdenv.mkDerivation {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit kmod openconnect;
|
inherit kmod openconnect;
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/NetworkManager-openconnect/merge_requests/9.patch";
|
||||||
|
sha256 = "0yd2dmq6gq6y4czr7dqdgaiqvw2vyv2gikznpfdxyfn2v1pcrk9m";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ openconnect networkmanager ]
|
buildInputs = [ openconnect networkmanager ]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, substituteAll, openvpn, intltool, libxml2, pkgconfig, file, networkmanager, libsecret
|
{ stdenv, fetchurl, substituteAll, openvpn, intltool, libxml2, pkgconfig, file, networkmanager, libsecret
|
||||||
, gtk3, withGnome ? true, gnome3, kmod }:
|
, gtk3, withGnome ? true, gnome3, kmod, fetchpatch }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "NetworkManager-openvpn";
|
pname = "NetworkManager-openvpn";
|
||||||
|
@ -17,6 +17,11 @@ in stdenv.mkDerivation {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit kmod openvpn;
|
inherit kmod openvpn;
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/merge_requests/13.patch";
|
||||||
|
sha256 = "06cvqi28v72dd53fw8ix95mqj885xhwi8qcs2q7hvm5bvnhwn704";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ openvpn networkmanager ]
|
buildInputs = [ openvpn networkmanager ]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, substituteAll, vpnc, intltool, pkgconfig, networkmanager, libsecret
|
{ stdenv, fetchurl, substituteAll, vpnc, intltool, pkgconfig, networkmanager, libsecret
|
||||||
, gtk3, withGnome ? true, gnome3, kmod, file }:
|
, gtk3, withGnome ? true, gnome3, kmod, file, fetchpatch }:
|
||||||
let
|
let
|
||||||
pname = "NetworkManager-vpnc";
|
pname = "NetworkManager-vpnc";
|
||||||
version = "1.2.6";
|
version = "1.2.6";
|
||||||
|
@ -16,6 +16,11 @@ in stdenv.mkDerivation {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit vpnc kmod;
|
inherit vpnc kmod;
|
||||||
})
|
})
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/NetworkManager-vpnc/merge_requests/5.patch";
|
||||||
|
sha256 = "0z0x5vqmrsap3ynamhya7gh6c6k5grhj2vqpy76alnv9xns8dzi6";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ vpnc networkmanager ]
|
buildInputs = [ vpnc networkmanager ]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl, fetchpatch
|
||||||
, pkgconfig, autoreconfHook
|
, pkgconfig, autoreconfHook
|
||||||
, gmp, python, iptables, ldns, unbound, openssl, pcsclite
|
, gmp, python, iptables, ldns, unbound, openssl, pcsclite
|
||||||
, openresolv
|
, openresolv
|
||||||
|
@ -38,6 +38,12 @@ stdenv.mkDerivation rec {
|
||||||
./ext_auth-path.patch
|
./ext_auth-path.patch
|
||||||
./firewall_defaults.patch
|
./firewall_defaults.patch
|
||||||
./updown-path.patch
|
./updown-path.patch
|
||||||
|
|
||||||
|
# Don't use etc/dbus-1/system.d
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/strongswan/strongswan/pull/150.patch";
|
||||||
|
sha256 = "1irfxb99blb8v3hs0kmlhzkkwbmds1p0gq319z8lmacz36cgyj2c";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = optionalString stdenv.isLinux ''
|
postPatch = optionalString stdenv.isLinux ''
|
||||||
|
|
|
@ -8,6 +8,10 @@ stdenv.mkDerivation {
|
||||||
sha256 = "1kc4520zjc1z72mknylfvrsyda9rbmm5c9mw8w13zhdwg3zbna06";
|
sha256 = "1kc4520zjc1z72mknylfvrsyda9rbmm5c9mw8w13zhdwg3zbna06";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
" --with-dbus-sys=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ glib libxml2 libxslt getopt nixUnstable libintl libiconv dysnomia ];
|
buildInputs = [ glib libxml2 libxslt getopt nixUnstable libintl libiconv dysnomia ];
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,8 @@ stdenv.mkDerivation rec {
|
||||||
"--disable-offline-update"
|
"--disable-offline-update"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--with-dbus-sys=$(out)/etc/dbus-1/system.d"
|
"--with-dbus-sys=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
"--with-systemdsystemunitdir=$(out)/lib/systemd/system/"
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system/"
|
||||||
]
|
]
|
||||||
++ lib.optional enableNixBackend "--enable-nix"
|
++ lib.optional enableNixBackend "--enable-nix"
|
||||||
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
|
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ thinkpad ? false
|
{ thinkpad ? false
|
||||||
, stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null
|
, stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null
|
||||||
, libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd }:
|
, libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
||||||
|
@ -11,16 +11,23 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l";
|
sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/16.patch";
|
||||||
|
sha256 = "1y39zsmxjll9hip8464qwhq5qg06c13pnafyafgxdph75lvhdll7";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ glib dbus-glib polkit nss pam systemd ]
|
buildInputs = [ glib dbus-glib polkit nss pam systemd ]
|
||||||
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
||||||
++ stdenv.lib.optional (!thinkpad) libfprint;
|
++ stdenv.lib.optional (!thinkpad) libfprint;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig intltool ];
|
nativeBuildInputs = [ pkgconfig intltool ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=${placeholder "out"}/etc"
|
"--sysconfdir=${placeholder "out"}/etc"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
|
@ -23,9 +23,10 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=$(out)/etc" "--localstatedir=/var"
|
"--sysconfdir=${placeholder "out"}/etc"
|
||||||
"--with-dbus-sys-dir=$(out)/etc/dbus-1/system.d"
|
"--localstatedir=/var"
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
"--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue