git.iko.soy/typeable/nixpkgs
on master help sign in
ostree: 2018.9 → 2019.1
commit2a92edfbc4fe5a21c3a9fa33686b1b0a6fbf6401 authorJan Tojnar <jtojnar@gmail.com> dateMon 24 Dec 2018, 23:54 (8 years ago) parentf2a1a4e
1 file changed+11−36
pkgs/tools/misc/ostree/default.nix+11−36
pkgs/tools/misc/ostree/default.nix+11−36
@@ -1,34 +1,17 @@
1−{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, gtk-doc, gobject-introspection, gnome3
1+{ stdenv, fetchurl, fetchpatch, pkgconfig, gtk-doc, gobject-introspection, gnome3
22, glib, systemd, xz, e2fsprogs, libsoup, gpgme, which, autoconf, automake, libtool, fuse, utillinuxMinimal, libselinux
33, libarchive, libcap, bzip2, yacc, libxslt, docbook_xsl, docbook_xml_dtd_42, python3
44}:
55
6−let
7− version = "2018.9";
8−
9− libglnx-src = fetchFromGitHub {
10− owner = "GNOME";
11− repo = "libglnx";
12− rev = "470af8763ff7b99bec950a6ae0a957c1dcfc8edd";
13− sha256 = "1fwik38i6w3r6pn4qkizradcqp1m83n7ljh9jg0y3p3kvrbfxh15";
14− };
15−
16− bsdiff-src = fetchFromGitHub {
17− owner = "mendsley";
18− repo = "bsdiff";
19− rev = "1edf9f656850c0c64dae260960fabd8249ea9c60";
20− sha256 = "1h71d2h2d3anp4msvpaff445rnzdxii3id2yglqk7af9i43kdsn1";
21− };
22−in stdenv.mkDerivation {
23− name = "ostree-${version}";
6+stdenv.mkDerivation rec {
7+ pname = "ostree";
8+ version = "2019.1";
249
2510 outputs = [ "out" "dev" "man" "installedTests" ];
2611
27− src = fetchFromGitHub {
28− rev = "v${version}";
29− owner = "ostreedev";
30− repo = "ostree";
31− sha256 = "0a8gr4qqxcvz3fqv9w4dxy6iq0rq4kdzf08rzv8xg4gic3ldgyvj";
12+ src = fetchurl {
13+ url = "https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz";
14+ sha256 = "08y7nsxl305dnlfak4kyj88lld848y4kg6bvjqngcxaqqvkk9xqm";
3215 };
3316
3417 patches = [
@@ -57,13 +40,6 @@ in stdenv.mkDerivation {
5740 (python3.withPackages (p: with p; [ pyyaml ])) gnome3.gjs # for tests
5841 ];
5942
60− prePatch = ''
61− rmdir libglnx bsdiff
62− cp --no-preserve=mode -r ${libglnx-src} libglnx
63− cp --no-preserve=mode -r ${bsdiff-src} bsdiff
64− '';
65−
66−
6743 preConfigure = ''
6844 env NOCONFIGURE=1 ./autogen.sh
6945 '';
@@ -71,17 +47,16 @@ in stdenv.mkDerivation {
7147 enableParallelBuilding = true;
7248
7349 configureFlags = [
74− "--with-systemdsystemunitdir=$(out)/lib/systemd/system"
75− "--with-systemdsystemgeneratordir=$(out)/lib/systemd/system-generators"
50+ "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
51+ "--with-systemdsystemgeneratordir=${placeholder "out"}/lib/systemd/system-generators"
7652 "--enable-installed-tests"
7753 ];
7854
7955 makeFlags = [
80− "installed_testdir=$(installedTests)/libexec/installed-tests/libostree"
81− "installed_test_metadir=$(installedTests)/share/installed-tests/libostree"
56+ "installed_testdir=${placeholder "installedTests"}/libexec/installed-tests/libostree"
57+ "installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/libostree"
8258 ];
8359
84−
8560 meta = with stdenv.lib; {
8661 description = "Git for operating system binaries";
8762 homepage = https://ostree.readthedocs.io/en/latest/;