diff options
author | lodi <anthony.lodi@gmail.com> | 2019-11-08 01:04:51 -0500 |
---|---|---|
committer | lodi <anthony.lodi@gmail.com> | 2019-11-08 01:17:15 -0500 |
commit | 32497cf8c171a4e3546503dec9fb0199ccd88f7a (patch) | |
tree | 26d8ab02f717487fc53f4c9995e426c491113b15 /pkgs/development/libraries/libco-canonical | |
parent | 6fa62dbefd4a9db4d8cceadd982e4e62f103c240 (diff) | |
download | nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.tar nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.tar.gz nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.tar.bz2 nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.tar.lz nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.tar.xz nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.tar.zst nixlib-32497cf8c171a4e3546503dec9fb0199ccd88f7a.zip |
libco-canonical: fix pkgconfig includedir
Patched Makefile so that includedir correctly points to "dev" output instead of "out" output.
Diffstat (limited to 'pkgs/development/libraries/libco-canonical')
-rw-r--r-- | pkgs/development/libraries/libco-canonical/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libco-canonical/default.nix b/pkgs/development/libraries/libco-canonical/default.nix index 09c27ae7c9cf..bd0bbac5f6f3 100644 --- a/pkgs/development/libraries/libco-canonical/default.nix +++ b/pkgs/development/libraries/libco-canonical/default.nix @@ -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"; |