3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/windows/libgnurx/default.nix

22 lines
571 B
Nix
Raw Normal View History

{ 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";
};
# file looks for libgnurx.a when compiling statically
postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
ln -s $out/lib/libgnurx{.dll.a,.a}
'';
meta = {
2021-01-15 14:45:37 +00:00
platforms = lib.platforms.windows;
};
2018-07-21 03:00:58 +01:00
}