2018-02-13 00:53:39 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, substituteAll
|
|
|
|
|
|
|
|
, autoreconfHook
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, docbook_xsl
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, pkgconfig
|
|
|
|
, xmlto
|
|
|
|
|
|
|
|
, acl
|
|
|
|
, bazaar
|
|
|
|
, binutils
|
|
|
|
, bzip2
|
|
|
|
, coreutils
|
|
|
|
, cpio
|
2018-06-23 16:00:34 +01:00
|
|
|
, curl
|
2018-02-13 00:53:39 +00:00
|
|
|
, elfutils
|
|
|
|
, flatpak
|
|
|
|
, gitMinimal
|
|
|
|
, glib
|
|
|
|
, gnutar
|
2018-07-17 21:11:16 +01:00
|
|
|
, json-glib
|
2018-02-13 00:53:39 +00:00
|
|
|
, libcap
|
|
|
|
, libdwarf
|
|
|
|
, libsoup
|
2018-09-14 03:52:18 +01:00
|
|
|
, libyaml
|
2018-02-13 00:53:39 +00:00
|
|
|
, ostree
|
|
|
|
, patch
|
|
|
|
, rpm
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2018-10-16 06:22:12 +01:00
|
|
|
version = "1.0.1";
|
2018-02-13 00:53:39 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "flatpak-builder-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" "man" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/flatpak/flatpak-builder/releases/download/${version}/${name}.tar.xz";
|
2018-10-16 06:22:12 +01:00
|
|
|
sha256 = "01p3j8ndk9bimnqibw3dyny0ysv6nw2f7z5im19s9jlhlzdqb48w";
|
2018-02-13 00:53:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
pkgconfig
|
|
|
|
xmlto
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
acl
|
|
|
|
bzip2
|
2018-06-23 16:00:34 +01:00
|
|
|
curl
|
2018-02-13 00:53:39 +00:00
|
|
|
elfutils
|
|
|
|
flatpak
|
|
|
|
glib
|
2018-07-17 21:11:16 +01:00
|
|
|
json-glib
|
2018-02-13 00:53:39 +00:00
|
|
|
libcap
|
|
|
|
libdwarf
|
|
|
|
libsoup
|
|
|
|
libxml2
|
2018-09-14 03:52:18 +01:00
|
|
|
libyaml
|
2018-02-13 00:53:39 +00:00
|
|
|
ostree
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# patch taken from gtk_doc
|
|
|
|
./respect-xml-catalog-files-var.patch
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
bzr = "${bazaar}/bin/bzr";
|
|
|
|
cp = "${coreutils}/bin/cp";
|
|
|
|
patch = "${patch}/bin/patch";
|
|
|
|
tar = "${gnutar}/bin/tar";
|
|
|
|
unzip = "${unzip}/bin/unzip";
|
|
|
|
rpm2cpio = "${rpm}/bin/rpm2cpio";
|
|
|
|
cpio = "${cpio}/bin/cpio";
|
|
|
|
git = "${gitMinimal}/bin/git";
|
|
|
|
rofilesfuse = "${ostree}/bin/rofiles-fuse";
|
|
|
|
strip = "${binutils}/bin/strip";
|
|
|
|
eustrip = "${elfutils}/bin/eu-strip";
|
|
|
|
euelfcompress = "${elfutils}/bin/eu-elfcompress";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tool to build flatpaks from source";
|
|
|
|
homepage = https://flatpak.org/;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|