1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6stdenv.mkDerivation (finalAttrs: {
7 pname = "libgnurx";
8 version = "2.5.1";
9
10 src = fetchurl {
11 url = "mirror://sourceforge/mingw/Other/UserContributed/regex/mingw-regex-${finalAttrs.version}/mingw-libgnurx-${finalAttrs.version}-src.tar.gz";
12 hash = "sha256-cUe3+AbsPQB4Q7OOGfQqW3xliUpX/8KXp2sNzV9nXXY=";
13 };
14
15 # file looks for libgnurx.a when compiling statically
16 postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
17 ln -s $out/lib/libgnurx{.dll.a,.a}
18 '';
19
20 meta = {
21 downloadPage = "https://sourceforge.net/projects/mingw/files/Other/UserContributed/regex/";
22 description = "Regex functionality from glibc extracted into a separate library for win32";
23 license = lib.licenses.gpl2Plus;
24 platforms = lib.platforms.windows;
25 teams = [ lib.teams.windows ];
26 };
27})