nixpkgs/pkgs/os-specific/windows/libgnurx/default.nix

22 lines
571 B
Nix
Raw Normal View History

{ 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";
};
# 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 15:45:37 +01:00
platforms = lib.platforms.windows;
};
2018-07-21 04:00:58 +02:00
}