31 Jul 2024 |
quapka4 | Yes, something like BeautifulSoup for HTML, but for Nix files. | 10:47:02 |
Tranquil Ity | Well, HTML is a markup language while Nix is a programming language. All I can find is https://github.com/nix-community/rnix-parser in Rust, you can probably bind it to Python in some way. | 11:04:25 |
quapka4 | In reply to @ity:itycodes.org Well, HTML is a markup language while Nix is a programming language. All I can find is https://github.com/nix-community/rnix-parser in Rust, you can probably bind it to Python in some way. Nice, thanks. | 11:10:39 |
| cynerd left the room. | 11:53:02 |
| cynerd joined the room. | 11:53:50 |
| @thalos:jupiterbroadcasting.com left the room. | 17:34:56 |
1 Aug 2024 |
| @ibtalot:matrix.org left the room. | 04:50:08 |
| @thescientiac:matrix.org left the room. | 05:15:58 |
| aneeshusa joined the room. | 05:18:51 |
| Brian May joined the room. | 07:07:44 |
quapka4 | Hi, I struggle a bit with building one package, that expects OPENSSL_INSTALL_DIR pointing to the directory containing the lib directory with the lib<name>.so files. However openssl.out points to bin and lib.makeLibraryPath [ openssl ] gives the /lib suffix. What I did is:
cmakeFlags = [
( "-DOPENSSL_INSTALL_DIR=" + lib.makeLibraryPath [ openssl ] + "/.." )
];
However, is there a clearer way how to get the path to the lib derivation output without the `lib` part?
| 10:32:18 |
quapka4 | * Hi, I struggle a bit with building one package, that expects OPENSSL_INSTALL_DIR pointing to the directory containing the lib directory with the lib<name>.so files. However openssl.out points to bin and lib.makeLibraryPath [ openssl ] gives the /lib suffix. What I did is:
cmakeFlags = [
( "-DOPENSSL_INSTALL_DIR=" + lib.makeLibraryPath [ openssl ] + "/.." )
];
However, is there a clearer way how to get the path to the lib derivation output without the lib part?
| 10:32:22 |
quapka4 | * Hi, I struggle a bit with building one package, that expects OPENSSL_INSTALL_DIR pointing to the directory containing the lib directory with the lib<name>.so files. However openssl.out points to bin and lib.makeLibraryPath [ openssl ] gives the /lib suffix. What I did is:
cmakeFlags = [
( "-DOPENSSL_INSTALL_DIR=" + lib.makeLibraryPath [ openssl ] + "/.." )
];
However, is there a clearer way how to get the path to the lib derivation output without the lib part?
| 10:32:44 |
| cleverca22 joined the room. | 12:52:22 |
Qyriad | @quapka4 "-DOPENSSL_INSTALL_DIR=${lib.getLib openssl}/lib" ? | 14:58:32 |
Qyriad | Oh wait, you want without the lib suffix? lib.getLib openssl | 14:59:22 |
Qyriad | Oh wait, you want without the /lib suffix? Then just lib.getLib openssl | 14:59:28 |
2 Aug 2024 |
| Alex (tinwood) changed their display name from Alex K (tinwood) to Alex (tinwood). | 10:42:37 |
| @rayne:spooky.computer | 11:52:19 |
| papanito joined the room. | 12:32:53 |
| @cosmia:matrix.org joined the room. | 13:14:07 |
| @cosmia:matrix.org left the room. | 13:25:52 |
| @minec:ins4.xyz changed their display name from minec to minec (Old). | 18:43:17 |
| @minec:ins4.xyz left the room. | 18:52:01 |
| @dykeaura:matrix.org left the room. | 19:36:51 |
3 Aug 2024 |
| Víctor Martínez joined the room. | 10:34:55 |
Gaétan Lepage | Hey,
Is it possible to escape a ${foo} in a nix string ? | 17:10:39 |
Philip Taron (UTC-8) | Welcome to Nix 2.18.5. Type :? for help.
nix-repl> ''
''${foo}
''
"\${foo}\n"
nix-repl> ''''${foo}''
"\${foo}"
| 17:14:25 |
emily | just putting this here to scare you ''''\'''${a}'' | 17:18:06 |
Gaétan Lepage | Thanks... I'm not super sure to make it work in my case though
substituteInPlace src/python/CMakeLists.txt \
--replace-fail "find_package(pybind11 ${PYBIND11_VER} QUIET)" "find_package(pybind11 QUIET)"
| 17:18:10 |