mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
76999cc40e
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases = true;}'’ work in Nixpkgs. Misc... - qtikz: use libsForQt5.callPackage This ensures we get the right poppler. - rewrites: docbook5_xsl -> docbook_xsl_ns docbook_xml_xslt -> docbook_xsl diffpdf: fixup
106 lines
1.9 KiB
Nix
106 lines
1.9 KiB
Nix
{ 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
|
|
, curl
|
|
, elfutils
|
|
, flatpak
|
|
, gitMinimal
|
|
, glib
|
|
, gnutar
|
|
, json-glib
|
|
, libcap
|
|
, libdwarf
|
|
, libsoup
|
|
, ostree
|
|
, patch
|
|
, rpm
|
|
, unzip
|
|
}:
|
|
|
|
let
|
|
version = "0.99.3";
|
|
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";
|
|
sha256 = "0sq3rcy3vwa36p6wq63wdvkk0hrs3qj1ngk26j9947nc14z39plk";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
docbook_xml_dtd_412
|
|
docbook_xml_dtd_42
|
|
docbook_xml_dtd_43
|
|
docbook_xsl
|
|
gettext
|
|
libxml2
|
|
libxslt
|
|
pkgconfig
|
|
xmlto
|
|
];
|
|
|
|
buildInputs = [
|
|
acl
|
|
bzip2
|
|
curl
|
|
elfutils
|
|
flatpak
|
|
glib
|
|
json-glib
|
|
libcap
|
|
libdwarf
|
|
libsoup
|
|
libxml2
|
|
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;
|
|
};
|
|
}
|