Repository navigation
libr3: migrate to pcre2 and modernize - #526145
ethancedwards8 wants to merge 1 commit into
Conversation
|
Link: NixOS#356387 Signed-off-by: Ethan Carter Edwards <[email protected]>
|
Maybe we can add the optional deps, while we're at it. |
|
@mweinelt I couldn't quite get this example to work but: with the src as https://github.com/c9s/r3/blob/2.0/examples/simple.c It wouldn't compile unless I added pcre2 to the But when I compile I get these linking errors: so I'm not confident that this package is actually being compiled correctly. You may have more insight into what's going on here |
|
I do not, sorry. |
This comment was marked as low quality.
This comment was marked as low quality.
| propagatedBuildInputs = [ pcre ]; | ||
| buildInputs = [ | ||
| check | ||
| pcre2 |
There was a problem hiding this comment.
This actually needs to be propagated. Reason being their header:
cat ${libr3}/include/r3/r3.h
/*
* r3.h
* Copyright (C) 2014 c9s <[email protected]>
*
* Distributed under terms of the MIT license.
*/
#ifndef R3_NODE_H
#define R3_NODE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
...No downstream package can use that header without also having pcre2 available. This is what propagatedBuildInputs is for.
| pcre2 | |
| ]; | |
| propagatedBuildInputs = [ | |
| pcre2 |
There was a problem hiding this comment.
(probably should get a comment explaining why)
|
Also needs a rebase after #535754 |
|
i will not have time to work on this... |
|
Continued in #563264, because i want to get rid of |
Link: #356387
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.