7 , gobject-introspection
37 testPython = (python3.withPackages (p: with p; [
40 in stdenv.mkDerivation rec {
44 outputs = [ "out" "dev" "man" "installedTests" ];
47 url = "https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz";
48 sha256 = "16v73v63h16ika73kgh2cvgm0v27r2d48m932mbj3xm6s295kapx";
52 # Tests access the helper using relative path
53 # https://github.com/ostreedev/ostree/issues/1593
54 # Patch from https://github.com/ostreedev/ostree/pull/1633
55 ./01-Drop-ostree-trivial-httpd-CLI-move-to-tests-director.patch
57 # Workarounds for https://github.com/ostreedev/ostree/issues/1592
60 # Hard-code paths in tests
62 src = ./fix-test-paths.patch;
63 python3 = testPython.interpreter;
64 openssl = "${openssl}/bin/openssl";
96 util-linuxMinimal # for libmount
103 enableParallelBuilding = true;
106 "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
107 "--with-systemdsystemgeneratordir=${placeholder "out"}/lib/systemd/system-generators"
108 "--enable-installed-tests"
109 "--with-ed25519-libsodium"
113 "installed_testdir=${placeholder "installedTests"}/libexec/installed-tests/libostree"
114 "installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/libostree"
118 env NOCONFIGURE=1 ./autogen.sh
122 typelibPath = lib.makeSearchPath "/lib/girepository-1.0" [
124 gobject-introspection
127 for test in $installedTests/libexec/installed-tests/libostree/*.js; do
128 wrapProgram "$test" --prefix GI_TYPELIB_PATH : "${typelibPath}"
134 installedTests = nixosTests.installed-tests.ostree;
139 description = "Git for operating system binaries";
140 homepage = "https://ostree.readthedocs.io/en/latest/";
141 license = licenses.lgpl2Plus;
142 platforms = platforms.linux;
143 maintainers = with maintainers; [ copumpkin ];