xdg-dbus-proxy: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-08-16 17:11:08 +02:00
parent c925bd932e
commit 253a063787
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -1,32 +1,32 @@
{ stdenv
, lib
{ dbus
, docbook-xsl-nons
, docbook_xml_dtd_43
, fetchurl
, glib
, lib
, libxslt
, meson
, ninja
, pkg-config
, libxslt
, docbook-xsl-nons
, docbook_xml_dtd_43
, dbus
, glib
, stdenv
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xdg-dbus-proxy";
version = "0.1.5";
src = fetchurl {
url = "https://github.com/flatpak/xdg-dbus-proxy/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-Bh3Pr4oGUOX9nVQy3+iL2nSeoNB53BNjBL/s+84GYfs=";
url = "https://github.com/flatpak/xdg-dbus-proxy/releases/download/${finalAttrs.version}/xdg-dbus-proxy-${finalAttrs.version}.tar.xz";
hash = "sha256-Bh3Pr4oGUOX9nVQy3+iL2nSeoNB53BNjBL/s+84GYfs=";
};
nativeBuildInputs = [
docbook-xsl-nons
docbook_xml_dtd_43
libxslt
meson
ninja
pkg-config
libxslt
docbook-xsl-nons
docbook_xml_dtd_43
];
buildInputs = [
@ -40,12 +40,12 @@ stdenv.mkDerivation rec {
# dbus[2345]: Failed to start message bus: Failed to open "/etc/dbus-1/session.conf": No such file or directory
doCheck = false;
meta = with lib; {
meta = {
description = "DBus proxy for Flatpak and others";
homepage = "https://github.com/flatpak/xdg-dbus-proxy";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
license = lib.licenses.lgpl21Plus;
mainProgram = "xdg-dbus-proxy";
maintainers = with lib.maintainers; [ jtojnar ];
platforms = lib.platforms.linux;
};
}
})