flatpak: 1.0.5 -> 1.1.2
This commit is contained in:
parent
24d1d6cf9d
commit
1e5c28f2b9
@ -1,26 +1,24 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, docbook_xml_dtd_412, docbook_xml_dtd_42, docbook_xml_dtd_43, docbook_xsl, which, libxml2
|
{ stdenv, fetchurl, autoreconfHook, docbook_xml_dtd_412, docbook_xml_dtd_42, docbook_xml_dtd_43, docbook_xsl, which, libxml2
|
||||||
, gobject-introspection, gtk-doc, intltool, libxslt, pkgconfig, xmlto, appstream-glib, substituteAll, glibcLocales, yacc, xdg-dbus-proxy, p11-kit
|
, gobject-introspection, gtk-doc, intltool, libxslt, pkgconfig, xmlto, appstream-glib, substituteAll, glibcLocales, yacc, xdg-dbus-proxy, p11-kit
|
||||||
, bubblewrap, bzip2, dbus, glib, gpgme, json-glib, libarchive, libcap, libseccomp, coreutils, python2, hicolor-icon-theme
|
, bubblewrap, bzip2, dbus, glib, gpgme, json-glib, libarchive, libcap, libseccomp, coreutils, gettext, python2, hicolor-icon-theme
|
||||||
, libsoup, lzma, ostree, polkit, python3, systemd, xorg, valgrind, glib-networking, makeWrapper, gnome3 }:
|
, libsoup, lzma, ostree, polkit, python3, systemd, xorg, valgrind, glib-networking, wrapGAppsHook, gnome3 }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "1.0.5";
|
pname = "flatpak";
|
||||||
desktop_schemas = gnome3.gsettings-desktop-schemas;
|
version = "1.1.2";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "flatpak-${version}";
|
|
||||||
|
|
||||||
# TODO: split out lib once we figure out what to do with triggerdir
|
# TODO: split out lib once we figure out what to do with triggerdir
|
||||||
outputs = [ "out" "man" "doc" "installedTests" ];
|
outputs = [ "out" "man" "doc" "installedTests" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/flatpak/flatpak/releases/download/${version}/${name}.tar.xz";
|
url = "https://github.com/flatpak/flatpak/releases/download/${version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1wj88lp23bzz0c5n1i84nr2xff572i5cc10fqd9xh7qhj3ivk1w0";
|
sha256 = "01z7ybskxh6r58yh1m98z0z36fba4ljaxpqmh4y6kkaw8pyhhs6i";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-test-paths.patch;
|
src = ./fix-test-paths.patch;
|
||||||
inherit coreutils glibcLocales;
|
inherit coreutils gettext glibcLocales;
|
||||||
hicolorIconTheme = hicolor-icon-theme;
|
hicolorIconTheme = hicolor-icon-theme;
|
||||||
})
|
})
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
@ -34,12 +32,13 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoreconfHook libxml2 docbook_xml_dtd_412 docbook_xml_dtd_42 docbook_xml_dtd_43 docbook_xsl which gobject-introspection
|
autoreconfHook libxml2 docbook_xml_dtd_412 docbook_xml_dtd_42 docbook_xml_dtd_43 docbook_xsl which gobject-introspection
|
||||||
gtk-doc intltool libxslt pkgconfig xmlto appstream-glib yacc makeWrapper
|
gtk-doc intltool libxslt pkgconfig xmlto appstream-glib yacc wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
bubblewrap bzip2 dbus glib gpgme json-glib libarchive libcap libseccomp
|
bubblewrap bzip2 dbus glib gpgme json-glib libarchive libcap libseccomp
|
||||||
libsoup lzma ostree polkit python3 systemd xorg.libXau
|
libsoup lzma ostree polkit python3 systemd xorg.libXau
|
||||||
|
gnome3.gsettings-desktop-schemas glib-networking
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ valgrind ];
|
checkInputs = [ valgrind ];
|
||||||
@ -65,12 +64,6 @@ in stdenv.mkDerivation rec {
|
|||||||
patchShebangs tests
|
patchShebangs tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
wrapProgram $out/bin/flatpak \
|
|
||||||
--prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules" \
|
|
||||||
--prefix XDG_DATA_DIRS : "${desktop_schemas}/share/gsettings-schemas/${desktop_schemas.name}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Linux application sandboxing and distribution framework";
|
description = "Linux application sandboxing and distribution framework";
|
||||||
homepage = https://flatpak.org/;
|
homepage = https://flatpak.org/;
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
--- a/tests/libtest.sh
|
--- a/tests/libtest.sh
|
||||||
+++ b/tests/libtest.sh
|
+++ b/tests/libtest.sh
|
||||||
@@ -296,7 +296,7 @@
|
@@ -328,7 +328,7 @@
|
||||||
# running installed-tests: assume we know what we're doing
|
# running installed-tests: assume we know what we're doing
|
||||||
:
|
_flatpak_bwrap_works=true
|
||||||
elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \
|
elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \
|
||||||
- --ro-bind / / /bin/true > bwrap-result 2>&1; then
|
- --ro-bind / / /bin/true > bwrap-result 2>&1; then
|
||||||
+ --ro-bind / / @coreutils@/bin/true > bwrap-result 2>&1; then
|
+ --ro-bind / / @coreutils@/bin/true > bwrap-result 2>&1; then
|
||||||
sed -e 's/^/# /' < bwrap-result
|
_flatpak_bwrap_works=false
|
||||||
echo "1..0 # SKIP Cannot run bwrap"
|
else
|
||||||
exit 0
|
_flatpak_bwrap_works=true
|
||||||
@@ -309,12 +309,12 @@
|
@@ -309,12 +309,12 @@
|
||||||
export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)"
|
export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)"
|
||||||
DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)"
|
DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)"
|
||||||
@ -24,6 +24,24 @@
|
|||||||
gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye || true
|
gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye || true
|
||||||
fusermount -u $XDG_RUNTIME_DIR/doc || :
|
fusermount -u $XDG_RUNTIME_DIR/doc || :
|
||||||
if test -n "${TEST_SKIP_CLEANUP:-}"; then
|
if test -n "${TEST_SKIP_CLEANUP:-}"; then
|
||||||
|
--- a/tests/make-test-app.sh
|
||||||
|
+++ b/tests/make-test-app.sh
|
||||||
|
@@ -114,13 +114,13 @@ msgid "Hello world"
|
||||||
|
msgstr "Hallo Welt"
|
||||||
|
EOF
|
||||||
|
mkdir -p ${DIR}/files/de/share/de/LC_MESSAGES
|
||||||
|
-msgfmt --output-file ${DIR}/files/de/share/de/LC_MESSAGES/helloworld.mo de.po
|
||||||
|
+@gettext@/bin/msgfmt --output-file ${DIR}/files/de/share/de/LC_MESSAGES/helloworld.mo de.po
|
||||||
|
cat > fr.po <<EOF
|
||||||
|
msgid "Hello world"
|
||||||
|
msgstr "Bonjour le monde"
|
||||||
|
EOF
|
||||||
|
mkdir -p ${DIR}/files/fr/share/fr/LC_MESSAGES
|
||||||
|
-msgfmt --output-file ${DIR}/files/fr/share/fr/LC_MESSAGES/helloworld.mo fr.po
|
||||||
|
+@gettext@/bin/msgfmt --output-file ${DIR}/files/fr/share/fr/LC_MESSAGES/helloworld.mo fr.po
|
||||||
|
|
||||||
|
flatpak build-finish ${DIR}
|
||||||
|
mkdir -p repos
|
||||||
--- a/tests/make-test-runtime.sh
|
--- a/tests/make-test-runtime.sh
|
||||||
+++ b/tests/make-test-runtime.sh
|
+++ b/tests/make-test-runtime.sh
|
||||||
@@ -26,6 +26,7 @@
|
@@ -26,6 +26,7 @@
|
||||||
@ -61,7 +79,7 @@
|
|||||||
- fi
|
- fi
|
||||||
-}
|
-}
|
||||||
-
|
-
|
||||||
for i in $@; do
|
for i in $@ bash ls cat echo readlink; do
|
||||||
- I=`which $i`
|
- I=`which $i`
|
||||||
- add_bin $I
|
- add_bin $I
|
||||||
-done
|
-done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user