libco-canonical: fix pkgconfig includedir

Patched Makefile so that includedir correctly points to "dev" output
instead of "out" output.
This commit is contained in:
lodi 2019-11-08 01:04:51 -05:00
parent 6fa62dbefd
commit 32497cf8c1

View file

@ -19,6 +19,17 @@ stdenv.mkDerivation rec {
outputs = [ "dev" "out" ];
patchPhase = ''
# upstream project assumes all build products will go into single directory
# `$prefix` but we need `includedir` to point to "dev", not "out"
#
# pkgs/build-support/setup-hooks/multiple-outputs.sh would normally patch
# this automatically, but it fails here due to use of absolute paths
substituteInPlace Makefile \
--replace "@includedir@|\$(PREFIX)" "@includedir@|${placeholder "dev"}"
'';
meta = {
description = "A cooperative multithreading library written in C89";
homepage = "https://github.com/canonical/libco";