git.iko.soy/typeable/nixpkgs
on master help sign in
libmodulemd_1: init at 1.8.15
commit8fbae8c72defd1d325d7541456dce93c23f2cb73 authorworldofpeace <worldofpeace@protonmail.ch> dateTue 30 Jul 2019, 22:28 (7 years ago) parentfdd2898
3 files changed+51
pkgs/development/libraries/libmodulemd/1.nix+21 pkgs/development/libraries/libmodulemd/dont-check-docs.patch+29 pkgs/top-level/all-packages.nix+1
pkgs/development/libraries/libmodulemd/1.nixnew file+21
@@ -0,0 +1,21 @@
1+{ libmodulemd, fetchurl }:
2+
3+libmodulemd.overrideAttrs(old: rec {
4+ name = "libmodulemd-${version}";
5+ version = "1.8.15";
6+
7+ # Removes py output since there's no overrides here
8+ outputs = [ "out" "devdoc" ];
9+
10+ patches = [
11+ # Checks for glib docs in glib's prefix
12+ # but they're installed to another
13+ ./dont-check-docs.patch
14+ ];
15+
16+ src = fetchurl {
17+ url = "https://github.com/fedora-modularity/libmodulemd/releases/download/${name}/modulemd-${version}.tar.xz";
18+ sha256 = "0gz8p3qzji3cx0r57sy3gn4dhigg4k7pcxj3lmjcjn13vxh5rm7z";
19+ };
20+
21+})
pkgs/development/libraries/libmodulemd/dont-check-docs.patchnew file+29
@@ -0,0 +1,29 @@
1+diff --git a/meson.build b/meson.build
2+index 155c9e7..9125372 100644
3+--- a/meson.build
4++++ b/meson.build
5+@@ -60,15 +60,15 @@ sh = find_program('sh')
6+ sed = find_program('sed')
7+ test = find_program('test')
8+
9+-ret = run_command ([test, '-e', join_paths(glib_docpath, 'glib/index.html')])
10+-if ret.returncode() != 0
11+- error('Missing documentation for GLib.')
12+-endif
13+-
14+-ret = run_command ([test, '-e', join_paths(glib_docpath, 'gobject/index.html')])
15+-if ret.returncode() != 0
16+- error('Missing documentation for GObject.')
17+-endif
18++# ret = run_command ([test, '-e', join_paths(glib_docpath, 'glib/index.html')])
19++# if ret.returncode() != 0
20++# error('Missing documentation for GLib.')
21++# endif
22++
23++# ret = run_command ([test, '-e', join_paths(glib_docpath, 'gobject/index.html')])
24++# if ret.returncode() != 0
25++# error('Missing documentation for GObject.')
26++# endif
27+
28+ python_name = get_option('python_name')
29+
pkgs/top-level/all-packages.nix+1
@@ -12347,6 +12347,7 @@ in
1234712347 libvdpau = callPackage ../development/libraries/libvdpau { };
1234812348
1234912349 libmodulemd = callPackage ../development/libraries/libmodulemd { };
12350+ libmodulemd_1 = callPackage ../development/libraries/libmodulemd/1.nix { };
1235012351
1235112352 libvdpau-va-gl = callPackage ../development/libraries/libvdpau-va-gl { };
1235212353