diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-08-20 08:43:12 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-08-20 08:43:12 +0200 |
commit | 78182194c652df7bdcfa0a6a788d17895188b777 (patch) | |
tree | 06d971dbc2b25a9a16d96781545d0d5d9ef3b0c8 /pkgs/development | |
parent | 656026c7415cd56535c972feed977550524ca2d1 (diff) | |
download | nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.tar nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.tar.gz nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.tar.bz2 nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.tar.lz nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.tar.xz nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.tar.zst nixpkgs-78182194c652df7bdcfa0a6a788d17895188b777.zip |
Revert Merge #184360: json-glib: add installed tests
Moving to staging, as it causes lots of rebuilds and it doesn't seem urgent. This reverts commit d6fb90726954441e24b7eece2d05c5d9630a90bc, reversing changes made to 600b02324c37abd1280051f872c914113f1f37bf.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/json-glib/default.nix | 15 | ||||
-rw-r--r-- | pkgs/development/libraries/json-glib/meson-add-installed-tests-prefix-option.patch | 27 |
2 files changed, 1 insertions, 41 deletions
diff --git a/pkgs/development/libraries/json-glib/default.nix b/pkgs/development/libraries/json-glib/default.nix index e095945daba..1f8f4fd1acc 100644 --- a/pkgs/development/libraries/json-glib/default.nix +++ b/pkgs/development/libraries/json-glib/default.nix @@ -4,7 +4,6 @@ , glib , meson , ninja -, nixosTests , pkg-config , gettext , gobject-introspection @@ -18,18 +17,13 @@ stdenv.mkDerivation rec { pname = "json-glib"; version = "1.6.6"; - outputs = [ "out" "dev" "devdoc" "installedTests" ]; + outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; sha256 = "luyYvnqR9t3jNjZyDj2i/27LuQ52zKpJSX8xpoVaSQ4="; }; - patches = [ - # Add option for changing installation path of installed tests. - ./meson-add-installed-tests-prefix-option.patch - ]; - strictDeps = true; depsBuildBuild = [ @@ -55,9 +49,6 @@ stdenv.mkDerivation rec { glib ]; - mesonFlags = [ - "-Dinstalled_test_prefix=${placeholder "installedTests"}" - ]; # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake) # it should be a build-time dep for build @@ -82,10 +73,6 @@ stdenv.mkDerivation rec { ''; passthru = { - tests = { - installedTests = nixosTests.installed-tests.json-glib; - }; - updateScript = gnome.updateScript { packageName = pname; versionPolicy = "odd-unstable"; diff --git a/pkgs/development/libraries/json-glib/meson-add-installed-tests-prefix-option.patch b/pkgs/development/libraries/json-glib/meson-add-installed-tests-prefix-option.patch deleted file mode 100644 index 626db09cd03..00000000000 --- a/pkgs/development/libraries/json-glib/meson-add-installed-tests-prefix-option.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git a/json-glib/tests/meson.build b/json-glib/tests/meson.build -index 1eb56c8..dca444e 100644 ---- a/json-glib/tests/meson.build -+++ b/json-glib/tests/meson.build -@@ -21,8 +21,9 @@ test_data = [ - 'stream-load.json', - ] - --installed_test_bindir = join_paths(json_libexecdir, 'installed-tests', json_api_name) --installed_test_datadir = join_paths(json_datadir, 'installed-tests', json_api_name) -+installed_test_prefix = get_option('installed_test_prefix') -+installed_test_bindir = join_paths(installed_test_prefix, 'libexec', 'installed-tests', json_api_name) -+installed_test_datadir = join_paths(installed_test_prefix, 'share', 'installed-tests', json_api_name) - - install_data(test_data, install_dir: installed_test_bindir) - -diff --git a/meson_options.txt b/meson_options.txt -index 068a03f..03f398a 100644 ---- a/meson_options.txt -+++ b/meson_options.txt -@@ -10,3 +10,6 @@ option('man', - option('tests', - type: 'boolean', value: true, - description: 'Build the tests') -+option('installed_test_prefix', -+ description: 'Prefix for installed tests', -+ type: 'string') |