Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken CMake-generated pkg-config files #172150

Closed
wants to merge 99 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
9c6f916
zxing: fix paths in pkg-config file
alexshpilkin May 9, 2022
fbd1b02
gst_all_1.gst-plugins-bad: link with zxing-cpp
alexshpilkin May 9, 2022
0764de0
spirv-tools: fix paths in pkg-config files
alexshpilkin May 9, 2022
5673ca3
libjxl: fix paths in pkg-config files
alexshpilkin May 9, 2022
a6d70f7
wildmidi: fix paths in pkg-config file
alexshpilkin May 9, 2022
eeb7354
usrsctp: fix paths in pkg-config file
alexshpilkin May 9, 2022
e867c55
openalSoft: update homepage URL
alexshpilkin May 9, 2022
2fbfcad
openalSoft: fix paths in pkg-config file
alexshpilkin May 9, 2022
62011ff
libebur128: fix paths in pkg-config file
alexshpilkin May 9, 2022
25ec748
openobex: fix paths in pkg-config file
alexshpilkin May 9, 2022
d7923ae
ffmpegthumbnailer: fix path in pkg-config file
alexshpilkin May 9, 2022
45e0d3c
libmatroska: fix paths in pkg-config file
alexshpilkin May 9, 2022
ad65ea0
extra-cmake-modules: fix paths in generated pkg-config files
alexshpilkin May 9, 2022
3fdaf9f
libebml: fix paths in pkg-config file
alexshpilkin May 9, 2022
f9328d8
fixup 5673ca3bc6d use upstream fix
alexshpilkin May 13, 2022
fb9aa5e
libargs: fix path in pkg-config file
alexshpilkin May 13, 2022
76e5d0c
arrow-cpp: fix paths in CMake and pkg-config files
alexshpilkin May 16, 2022
d01ac37
bcc: fix path in pkg-config file
alexshpilkin May 16, 2022
91b6833
bcg729: fix path in pkg-config file
alexshpilkin May 16, 2022
f23a7bc
cglm: fix paths in pkg-config file
alexshpilkin May 16, 2022
852a7e2
cm256cc: fix path in pkg-config file
alexshpilkin May 16, 2022
cae7524
cog: fix path in pkg-config file
alexshpilkin May 16, 2022
3a46bad
cxxopts: fix path in pkg-config file
alexshpilkin May 16, 2022
eed4382
plasma5Packages.drumstick: fix paths in pkg-config files
alexshpilkin May 16, 2022
bbb47fd
eccodes: fix paths in pkg-config files
alexshpilkin May 16, 2022
f74f367
entt: fix path in pkg-config file
alexshpilkin May 16, 2022
c7757a2
gbenchmark: fix paths in pkg-config file
alexshpilkin May 16, 2022
a1b03a4
geos: fix paths in pkg-config file
alexshpilkin May 16, 2022
738e888
getdns: fix paths in pkg-config file
alexshpilkin May 16, 2022
35a3c63
google-cloud-cpp: fix paths in pkg-config files
alexshpilkin May 17, 2022
e84188c
libbaseencode: fix paths in pkg-config file
alexshpilkin May 17, 2022
3706b06
libbtbb: fix paths in pkg-config file
alexshpilkin May 17, 2022
c627ccf
libcork: fix paths in pkg-config file
alexshpilkin May 17, 2022
69ff649
libcotp: fix paths in pkg-config file
alexshpilkin May 17, 2022
d75acc0
libdnf: fix path in pkg-config file
alexshpilkin May 17, 2022
34c8d45
libiio: fix paths in pkg-config file
alexshpilkin May 17, 2022
5b3e94c
libkeyfinder: fix paths in pkg-config file
alexshpilkin May 17, 2022
68ef94e
lxqt.lxqt-build-tools: fix paths in generated pkg-config files
alexshpilkin May 17, 2022
898f662
libmodule: fix paths in pkg-config file
alexshpilkin May 17, 2022
1b72d31
libnats-c: fix path in pkg-config file
alexshpilkin May 17, 2022
0652be6
libquotient: fix paths in pkg-config file
alexshpilkin May 17, 2022
32851a9
libsurvive: fix path in pkg-config file
alexshpilkin May 17, 2022
3687ae2
libtorrent-rasterbar: fix paths in pkg-config file
alexshpilkin May 18, 2022
33c0932
fixup 2fbfcad79a1 use upstream fix
alexshpilkin May 18, 2022
2f5f9a9
libtsm: fix paths in pkg-config file
alexshpilkin May 18, 2022
333fa3a
libunarr: fix paths in pkg-config file
alexshpilkin May 18, 2022
7368d37
maliit-framework: fix paths in pkg-config files
alexshpilkin May 18, 2022
e05fc95
mysocketw: fix path in pkg-config file
alexshpilkin May 18, 2022
0c3abef
nanomsg: fix path in pkg-config file
alexshpilkin May 18, 2022
38d34ad
notcurses: fix paths in pkg-config files
alexshpilkin May 18, 2022
adfe4cf
obexftp: fix paths in pkg-config file
alexshpilkin May 18, 2022
ea7cbe0
olm: fix paths in pkg-config file
alexshpilkin May 18, 2022
243e996
opencolorio: fix path in pkg-config file
alexshpilkin May 18, 2022
a56ddc8
opendht: fix paths in pkg-config file
alexshpilkin May 18, 2022
fea268e
fixup 91b683318e5 escaping
alexshpilkin May 18, 2022
42c2657
openxr-loader: fix path in pkg-config file
alexshpilkin May 18, 2022
20dc199
orcania: fix paths in pkg-config file
alexshpilkin May 18, 2022
77a4e90
openwebrx: fix paths in pkg-config file
alexshpilkin May 18, 2022
f8c8b28
powercap: fix paths in pkg-config file
alexshpilkin May 18, 2022
c839327
proj: fix paths in CMake and pkg-config files
alexshpilkin May 18, 2022
5eff4f4
prometheus-cpp: fix paths in pkg-config files
alexshpilkin May 18, 2022
e35cdb8
rabbitmq-c: fix paths in pkg-config file
alexshpilkin May 18, 2022
24518f6
recastnavigation: fix paths in pkg-config file
alexshpilkin May 18, 2022
6973a5a
reproc: fix paths in pkg-config files
alexshpilkin May 18, 2022
b377ca5
rinutils: fix path in pkg-config file
alexshpilkin May 18, 2022
41f554c
rnp: fix path in pkg-config file
alexshpilkin May 18, 2022
adc0fa6
rocm-thunk: fix paths in pkg-config file
alexshpilkin May 18, 2022
759cf1e
seexpr: fix path in pkg-config file
alexshpilkin May 18, 2022
339b4bd
sentencepiece: fix paths in pkg-config file
alexshpilkin May 18, 2022
ad3a58a
shadowsocks-libev: fix paths in pkg-config files
alexshpilkin May 18, 2022
d558bef
soapysdr: fix paths in pkg-config file
alexshpilkin May 18, 2022
12205df
spdlog: fix path in pkg-config file
alexshpilkin May 18, 2022
1198abc
spirv-headers: fix path in pkg-config file
alexshpilkin May 18, 2022
1dcc563
tdlib: fix paths in pkg-config files
alexshpilkin May 18, 2022
98ce40a
tinyobjloader: fix paths in pkg-config file
alexshpilkin May 18, 2022
633b60b
fixup a1b03a463df use upstream fix
alexshpilkin May 18, 2022
75235b3
fixup 76e5d0c0789 use upstream fix
alexshpilkin May 19, 2022
59ce8c2
libbaseencode: 1.0.12 -> 1.0.14
alexshpilkin May 19, 2022
b61acfb
libcotp: 1.2.4 -> 1.2.6
alexshpilkin May 19, 2022
2361850
fixup 20dc1995934 use upstream fix
alexshpilkin May 19, 2022
ee37130
fixup 5b3e94c69d9 use upstream fix
alexshpilkin May 19, 2022
5b57746
xsimd: fix path in pkg-config file
alexshpilkin May 19, 2022
acee5b1
xtensor: fix path in pkg-config file
alexshpilkin May 19, 2022
f3b9a8a
libzra: fix paths in pkg-config file
alexshpilkin May 26, 2022
bc2aee8
fixup 41f554cda0e use upstream fix
alexshpilkin Jun 1, 2022
73a41bf
fixup 68ef94e545c add upstreaming note
alexshpilkin Jun 1, 2022
fd3435d
fixup b377ca57ab0 use upstream fix
alexshpilkin Jun 1, 2022
ad23326
rinutils: 0.10.0 -> 0.10.1
alexshpilkin Jun 1, 2022
8973b0a
revert 34c8d45f02c for upstream fix
alexshpilkin Jun 1, 2022
df99db8
libiio: 0.21 -> 0.23
alexshpilkin Jun 2, 2022
133a1ac
fixup 7368d376d52 use upstream fix
alexshpilkin Jun 2, 2022
b06c284
fixup 77a4e90b7e2 use upstream fix
alexshpilkin Jun 2, 2022
7a925c8
fixup 45e0d3c2911 use upstream fix
alexshpilkin Jun 2, 2022
372e946
fixup 3fdaf9f8811 use upstream fix
alexshpilkin Jun 2, 2022
61b4600
fixup e05fc95e027 use upstream fix
alexshpilkin Jun 3, 2022
e935bf7
fixup f8c8b28d130 use upstream fix
alexshpilkin Jun 3, 2022
9f0567d
fixup 12205dfc2b1 use upstream fix
alexshpilkin Jun 3, 2022
248292d
revert 5eff4f4c188 for upstream fix
alexshpilkin Jun 3, 2022
3688d1b
prometheus-cpp: 1.0.0 -> 1.0.1
alexshpilkin Jun 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions pkgs/development/libraries/mysocketw/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, fetchurl
, openssl
, cmake
}:

let

joinpaths-src = fetchurl {
url = "https://AnotherFoxGuy.com/CMakeCM/modules/JoinPaths.cmake";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in #181875

hash = "sha256-eUsNj6YqO3mMffEtUBFFgNGkeiNL+2tNgwkutkam7MQ=";
};

in
stdenv.mkDerivation rec {
pname = "mysocketw";
version = "3.11.0";
Expand All @@ -16,6 +26,15 @@ stdenv.mkDerivation rec {
hash = "sha256-mpfhmKE2l59BllkOjmURIfl17lAakXpmGh2x9SFSaAo=";
};

patches = [
# in master post 3.11.0, see https://github.com/RigsOfRods/socketw/issues/16
(fetchpatch {
name = "fix-pkg-config.patch";
url = "https://github.com/RigsOfRods/socketw/commit/17cad062c3673bd0da74a2fecadb01dbf9813a07.patch";
sha256 = "01b019gfm01g0r1548cizrf7mqigsda8jnrzhg8dhi9c49nfw1bp";
})
];

nativeBuildInputs = [
cmake
];
Expand All @@ -24,11 +43,13 @@ stdenv.mkDerivation rec {
openssl
];

postPatch = ''
# https://github.com/RigsOfRods/socketw/issues/16
substituteInPlace SocketW.pc.in \
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
'' + lib.optionalString stdenv.isDarwin ''
postUnpack = ''(
mkdir -p source/build/_cmcm-modules/resolved && cd $_
cp ${joinpaths-src} JoinPaths.cmake
printf %s 'https://AnotherFoxGuy.com/CMakeCM::modules/JoinPaths.cmake.1' > JoinPaths.cmake.whence
)'';

postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/Makefile \
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
'';
Expand Down