https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
179 B
Nix
11 lines
179 B
Nix
{ stdenvNoCC, mingw_w64 }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "${mingw_w64.name}-headers";
|
|
inherit (mingw_w64) src meta;
|
|
|
|
preConfigure = ''
|
|
cd mingw-w64-headers
|
|
'';
|
|
|
|
}
|