Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
28 lines
845 B
Nix
28 lines
845 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libgnurx";
|
|
version = "2.5.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mingw/Other/UserContributed/regex/mingw-regex-${finalAttrs.version}/mingw-libgnurx-${finalAttrs.version}-src.tar.gz";
|
|
hash = "sha256-cUe3+AbsPQB4Q7OOGfQqW3xliUpX/8KXp2sNzV9nXXY=";
|
|
};
|
|
|
|
# file looks for libgnurx.a when compiling statically
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
|
|
ln -s $out/lib/libgnurx{.dll.a,.a}
|
|
'';
|
|
|
|
meta = {
|
|
downloadPage = "https://sourceforge.net/projects/mingw/files/Other/UserContributed/regex/";
|
|
description = "Regex functionality from glibc extracted into a separate library for win32";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.windows;
|
|
teams = [ lib.teams.windows ];
|
|
};
|
|
})
|