nixpkgs/pkgs/tools/misc/ostree/default.nix

60 lines
1.7 KiB
Nix
Raw Normal View History

2014-11-07 05:30:04 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk_doc, gobjectIntrospection
2016-04-26 00:50:10 +00:00
, libgsystem, xz, e2fsprogs, libsoup, gpgme, which, autoconf, automake, libtool, fuse
, libcap, yacc, libxslt, docbook_xsl, docbook_xml_dtd_42
2014-11-07 05:30:04 +00:00
}:
2016-04-26 00:50:10 +00:00
let
libglnx-src = fetchFromGitHub {
owner = "GNOME";
repo = "libglnx";
2017-07-28 20:28:06 +00:00
rev = "50a0feaba03ffa5a1980d3a14487276b8f49f8a6";
sha256 = "1rn5jdh84y1yfpqmvidx82lkm0jr7scjzdrps57r37ksxvrk3ibs";
2016-04-26 00:50:10 +00:00
};
2014-11-07 05:30:04 +00:00
2016-04-26 00:50:10 +00:00
bsdiff-src = fetchFromGitHub {
owner = "mendsley";
repo = "bsdiff";
2017-07-28 20:28:06 +00:00
rev = "7d70d8f4ff48345bc76e314c9d98da91f78873fa";
sha256 = "0ai2kykj8i4bqcy3gry36r3n4ax0fldncfhksl5b293nf2fihnws";
2014-11-07 05:30:04 +00:00
};
2017-07-28 20:28:06 +00:00
version = "2017.9";
in stdenv.mkDerivation {
name = "ostree-${version}";
2014-11-07 05:30:04 +00:00
src = fetchFromGitHub {
rev = "v${version}";
2016-04-26 00:50:10 +00:00
owner = "ostreedev";
repo = "ostree";
2017-07-28 20:28:06 +00:00
sha256 = "1040xcw8qcs6xq8x4wg47hha3915qzb6lndb38wjyn6wzl1680q3";
2014-11-07 05:30:04 +00:00
};
nativeBuildInputs = [
2016-04-26 00:50:10 +00:00
autoconf automake libtool pkgconfig gtk_doc gobjectIntrospection which yacc
libxslt docbook_xsl docbook_xml_dtd_42
2014-11-07 05:30:04 +00:00
];
2016-04-26 00:50:10 +00:00
buildInputs = [ libgsystem xz e2fsprogs libsoup gpgme fuse libcap ];
prePatch = ''
rmdir libglnx bsdiff
cp --no-preserve=mode -r ${libglnx-src} libglnx
cp --no-preserve=mode -r ${bsdiff-src} bsdiff
'';
2014-11-07 05:30:04 +00:00
2016-04-26 00:50:10 +00:00
preConfigure = ''
env NOCONFIGURE=1 ./autogen.sh
configureFlags+="--with-systemdsystemunitdir=$out/lib/systemd/system"
2014-11-07 05:30:04 +00:00
'';
2016-04-26 00:50:10 +00:00
meta = with stdenv.lib; {
description = "Git for operating system binaries";
homepage = "http://live.gnome.org/OSTree/";
license = licenses.lgpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ copumpkin ];
};
2014-11-07 05:30:04 +00:00
}
2016-04-26 00:50:10 +00:00