2021-01-20 02:09:31 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2018-07-21 03:00:58 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.5.1";
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "libgnurx";
|
|
|
|
inherit version;
|
2018-07-21 03:00:58 +01:00
|
|
|
src = fetchurl {
|
2019-08-13 22:52:01 +01:00
|
|
|
url = "mirror://sourceforge/mingw/Other/UserContributed/regex/mingw-regex-${version}/mingw-${pname}-${version}-src.tar.gz";
|
2018-07-21 03:00:58 +01:00
|
|
|
sha256 = "0xjxcxgws3bblybw5zsp9a4naz2v5bs1k3mk8dw00ggc0vwbfivi";
|
|
|
|
};
|
2018-08-10 16:51:18 +01:00
|
|
|
|
2021-04-28 15:15:37 +01:00
|
|
|
# file looks for libgnurx.a when compiling statically
|
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
|
|
|
|
ln -s $out/lib/libgnurx{.dll.a,.a}
|
|
|
|
'';
|
|
|
|
|
2018-08-10 16:51:18 +01:00
|
|
|
meta = {
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.windows;
|
2018-08-10 16:51:18 +01:00
|
|
|
};
|
2018-07-21 03:00:58 +01:00
|
|
|
}
|