mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 08:14:19 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
107 lines
2.1 KiB
Nix
107 lines
2.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
fetchFromGitLab,
|
|
fetchpatch,
|
|
python3,
|
|
umockdev,
|
|
gobject-introspection,
|
|
dbus,
|
|
asciidoc,
|
|
libxml2,
|
|
libxslt,
|
|
docbook_xml_dtd_45,
|
|
docbook-xsl-nons,
|
|
glib,
|
|
systemd,
|
|
polkit,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bolt";
|
|
version = "0.9.7";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "bolt";
|
|
repo = "bolt";
|
|
rev = version;
|
|
sha256 = "sha256-6m4Yrev9W5WV4/pptc8tJ4hc6QSC+eJ7BSt2mx33s9U=";
|
|
};
|
|
|
|
patches = [
|
|
# meson install tries to create /var/lib/boltd
|
|
./0001-skip-mkdir.patch
|
|
|
|
# Test does not work on ZFS with atime disabled.
|
|
# Upstream issue: https://gitlab.freedesktop.org/bolt/bolt/-/issues/167
|
|
(fetchpatch {
|
|
url = "https://gitlab.freedesktop.org/bolt/bolt/-/commit/c2f1d5c40ad71b20507e02faa11037b395fac2f8.diff";
|
|
revert = true;
|
|
sha256 = "6w7ll65W/CydrWAVi/qgzhrQeDv1PWWShulLxoglF+I=";
|
|
})
|
|
];
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
asciidoc
|
|
docbook_xml_dtd_45
|
|
docbook-xsl-nons
|
|
libxml2
|
|
libxslt
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
glib
|
|
] ++ lib.optional (!doCheck) python3;
|
|
|
|
buildInputs = [
|
|
polkit
|
|
systemd
|
|
];
|
|
|
|
# https://gitlab.freedesktop.org/bolt/bolt/-/issues/181
|
|
doCheck = false;
|
|
|
|
preCheck = ''
|
|
export LD_LIBRARY_PATH=${umockdev.out}/lib/
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
dbus
|
|
gobject-introspection
|
|
umockdev
|
|
(python3.pythonOnBuildForHost.withPackages (p: [
|
|
p.pygobject3
|
|
p.dbus-python
|
|
p.python-dbusmock
|
|
]))
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs scripts tests
|
|
'';
|
|
|
|
mesonFlags = [
|
|
"-Dlocalstatedir=/var"
|
|
];
|
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
|
PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
|
|
|
|
meta = with lib; {
|
|
description = "Thunderbolt 3 device management daemon";
|
|
mainProgram = "boltctl";
|
|
homepage = "https://gitlab.freedesktop.org/bolt/bolt";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ callahad ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|