Jan Tojnar 2021-11-22 16:27:40 +01:00
parent 0bbd6b822e
commit bd9179343a

View File

@ -21,6 +21,7 @@
, coreutils , coreutils
, cpio , cpio
, curl , curl
, debugedit
, elfutils , elfutils
, flatpak , flatpak
, gitMinimal , gitMinimal
@ -46,44 +47,15 @@ let
installed_test_metadir = "${placeholder "installedTests"}/share/installed-tests/flatpak-builder"; installed_test_metadir = "${placeholder "installedTests"}/share/installed-tests/flatpak-builder";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "flatpak-builder"; pname = "flatpak-builder";
version = "1.0.14"; version = "1.2.0";
outputs = [ "out" "doc" "man" "installedTests" ]; outputs = [ "out" "doc" "man" "installedTests" ];
src = fetchurl { src = fetchurl {
url = "https://github.com/flatpak/flatpak-builder/releases/download/${version}/${pname}-${version}.tar.xz"; url = "https://github.com/flatpak/flatpak-builder/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-abZa9PY4BBJ1GMVFGE+d/JqTWM3tqr7yseUGI64rjYs="; sha256 = "sha256-38tqPKONYeB3W3CkaatQUoXhKTYUYt8JAE5tQlHCRqg=";
}; };
nativeBuildInputs = [
autoreconfHook
docbook_xml_dtd_412
docbook_xml_dtd_42
docbook_xml_dtd_43
docbook_xsl
gettext
libxml2
libxslt
pkg-config
xmlto
];
buildInputs = [
acl
bzip2
curl
elfutils
flatpak
glib
json-glib
libcap
libdwarf
libsoup
libxml2
libyaml
ostree
];
patches = [ patches = [
# patch taken from gtk_doc # patch taken from gtk_doc
./respect-xml-catalog-files-var.patch ./respect-xml-catalog-files-var.patch
@ -113,8 +85,41 @@ in stdenv.mkDerivation rec {
}) })
]; ];
nativeBuildInputs = [
autoreconfHook
# TODO: Remove older versions.
# https://github.com/flatpak/flatpak-builder/pull/437
docbook_xml_dtd_412
docbook_xml_dtd_42
docbook_xml_dtd_43
docbook_xsl
gettext
libxml2
libxslt
pkg-config
xmlto
];
buildInputs = [
acl
bzip2
curl
debugedit
elfutils
flatpak
glib
json-glib
libcap
libdwarf
libsoup
libxml2
libyaml
ostree
];
configureFlags = [ configureFlags = [
"--enable-installed-tests" "--enable-installed-tests"
"--with-system-debugedit"
]; ];
makeFlags = [ makeFlags = [
@ -125,6 +130,8 @@ in stdenv.mkDerivation rec {
# Some scripts used by tests need to use shebangs that are available in Flatpak runtimes. # Some scripts used by tests need to use shebangs that are available in Flatpak runtimes.
dontPatchShebangs = true; dontPatchShebangs = true;
enableParallelBuilding = true;
# Installed tests # Installed tests
postFixup = '' postFixup = ''
for file in ${installed_testdir}/{test-builder.sh,test-builder-python.sh}; do for file in ${installed_testdir}/{test-builder.sh,test-builder-python.sh}; do