bolt: init at 0.7

This commit is contained in:
Dan Callahan 2019-02-18 21:58:30 +00:00
parent b121c01672
commit c2a1d01a4b
No known key found for this signature in database
GPG Key ID: 8D6DD713E9EBA7FD
3 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/scripts/meson-install.sh b/scripts/meson-install.sh
index 859ae81..05a1c58 100644
--- a/scripts/meson-install.sh
+++ b/scripts/meson-install.sh
@@ -7,5 +7,5 @@ fi
BOLT_DBDIR=$1
-echo "Creating database dir: ${BOLT_DBDIR}"
-mkdir -p "${DESTDIR}/${BOLT_DBDIR}"
+# echo "Creating database dir: ${BOLT_DBDIR}"
+# mkdir -p "${DESTDIR}/${BOLT_DBDIR}"

View File

@ -0,0 +1,61 @@
{ stdenv, meson, ninja, pkgconfig, fetchFromGitLab,
python3, umockdev, gobject-introspection, dbus,
asciidoc, libxml2, libxslt, docbook_xml_dtd_45, docbook_xsl,
glib, systemd, polkit
}:
stdenv.mkDerivation rec {
pname = "bolt";
version = "0.7";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "bolt";
repo = "bolt";
rev = "${version}";
sha256 = "0xn2c31kcjh1j76gq1qrcxwjyjyqnsxygkfrvh3xk07qc92f99xd";
};
nativeBuildInputs = [
meson ninja pkgconfig
asciidoc libxml2 libxslt docbook_xml_dtd_45 docbook_xsl
] ++ stdenv.lib.optional (!doCheck) python3;
buildInputs = [
glib systemd polkit
];
doCheck = true;
preCheck = ''
export LD_LIBRARY_PATH=${umockdev.out}/lib/
'';
checkInputs = [
dbus umockdev gobject-introspection
(python3.withPackages
(p: [ p.pygobject3 p.dbus-python p.python-dbusmock ]))
];
# meson install tries to create /var/lib/boltd
patches = [ ./0001-skip-mkdir.patch ];
postPatch = ''
patchShebangs tests/test-integration
'';
mesonFlags = [
"-Dlocalstatedir=/var"
];
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
meta = with stdenv.lib; {
description = "Thunderbolt 3 device management daemon";
homepage = https://gitlab.freedesktop.org/bolt/bolt;
license = licenses.lgpl21Plus;
maintainers = [ maintainers.callahad ];
platforms = platforms.linux;
};
}

View File

@ -14314,6 +14314,8 @@ in
inherit (python3Packages) bedup;
bolt = callPackage ../os-specific/linux/bolt { };
bridge-utils = callPackage ../os-specific/linux/bridge-utils { };
busybox = callPackage ../os-specific/linux/busybox { };