2021-01-20 03:09:31 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2018-07-21 04:00:58 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.5.1";
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "libgnurx";
|
|
|
|
inherit version;
|
2018-07-21 04:00:58 +02:00
|
|
|
src = fetchurl {
|
2019-08-13 23:52:01 +02:00
|
|
|
url = "mirror://sourceforge/mingw/Other/UserContributed/regex/mingw-regex-${version}/mingw-${pname}-${version}-src.tar.gz";
|
2018-07-21 04:00:58 +02:00
|
|
|
sha256 = "0xjxcxgws3bblybw5zsp9a4naz2v5bs1k3mk8dw00ggc0vwbfivi";
|
|
|
|
};
|
2018-08-10 17:51:18 +02:00
|
|
|
|
2021-04-28 16:15:37 +02: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 17:51:18 +02:00
|
|
|
meta = {
|
2021-01-15 15:45:37 +01:00
|
|
|
platforms = lib.platforms.windows;
|
2018-08-10 17:51:18 +02:00
|
|
|
};
|
2018-07-21 04:00:58 +02:00
|
|
|
}
|