···
1
-
{ lib, stdenv, fetchFromGitHub
2
-
, autoconf, autoconf-archive, automake, glib, intltool, libtool, pkg-config
3
-
, gnome-desktop, gnupg, gtk3, udisks
1
+
{ lib, stdenv, fetchFromGitHub, writeText
2
+
, glib, meson, ninja, pkg-config, python3
3
+
, coreutils, gnome-desktop, gnupg, gtk3, systemdMinimal, udisks
stdenv.mkDerivation rec {
rev = "Release_${version}";
14
-
sha256 = "1nl6vim5dd83kvskmf13xp9d6zx39fayz4z0wqwf7xf4nwl07gwz";
14
+
sha256 = "utTTux8o8TN51bvnGldrtMEatiLA1AiHf/9XJZ7k7KM=";
20
-
autoconf autoconf-archive automake glib intltool libtool pkg-config
20
+
glib gnupg meson ninja pkg-config python3
22
-
buildInputs = [ gnome-desktop gtk3 udisks ];
22
+
buildInputs = [ gnome-desktop gtk3 systemdMinimal udisks ];
26
+
substituteInPlace tests/test-scribe.c \
27
+
--replace /bin/true ${coreutils}/bin/true \
28
+
--replace /bin/false ${coreutils}/bin/false
"--libexecdir=${placeholder "out"}/bin"
30
-
"--localstatedir=/var"
31
-
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
33
+
"--cross-file=${writeText "crossfile.ini" ''
35
+
gpg = '${gnupg}/bin/gpg'
34
-
# These are for runtime, so can't be discovered from PATH, which
35
-
# is constructed from nativeBuildInputs.
36
-
GPG_PATH = "${gnupg}/bin/gpg";
37
-
GPGCONF_PATH = "${gnupg}/bin/gpgconf";
39
+
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
enableParallelBuilding = true;