libproxy: proper solution for include-path issues
Also move the postPatch code to a better place.
This commit is contained in:
parent
4908c48bf5
commit
3a48b90483
@ -55,6 +55,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Fix running script that will try to install git hooks.
|
||||
# Though it will not do anything since we do not keep .git/ directory.
|
||||
# https://github.com/libproxy/libproxy/issues/262
|
||||
chmod +x data/install-git-hook.sh
|
||||
patchShebangs data/install-git-hook.sh
|
||||
|
||||
# Fix include-path propagation in non-static builds.
|
||||
# https://github.com/libproxy/libproxy/pull/239#issuecomment-2056620246
|
||||
substituteInPlace src/libproxy/meson.build \
|
||||
--replace-fail "requires_private: 'gobject-2.0'" "requires: 'gobject-2.0'"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
gi-docgen
|
||||
gobject-introspection
|
||||
@ -80,14 +93,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
postPatch = ''
|
||||
# Fix running script that will try to install git hooks.
|
||||
# Though it will not do anything since we do not keep .git/ directory.
|
||||
# https://github.com/libproxy/libproxy/issues/262
|
||||
chmod +x data/install-git-hook.sh
|
||||
patchShebangs data/install-git-hook.sh
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
||||
moveToOutput "share/doc" "$devdoc"
|
||||
|
Loading…
Reference in New Issue
Block a user