mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
windows.mingw_w64*: Fetch common attrs from the headers package
This is the most upstream one, and so to avoid infinite recursion we should get the things from it. This isn't needed per-se now, but will be after the next commit.
This commit is contained in:
parent
989d83cbeb
commit
4bd76beac0
4 changed files with 20 additions and 22 deletions
|
@ -3,18 +3,12 @@
|
||||||
, windows
|
, windows
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
, mingw_w64_headers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation {
|
||||||
version = "11.0.1";
|
|
||||||
in stdenv.mkDerivation {
|
|
||||||
pname = "mingw-w64";
|
pname = "mingw-w64";
|
||||||
inherit version;
|
inherit (mingw_w64_headers) version src meta;
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2";
|
|
||||||
hash = "sha256-P2a84Gnui+10OaGhPafLkaXmfqYXDyExesf1eUYl7hA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
@ -30,8 +24,4 @@ in stdenv.mkDerivation {
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ windows.mingw_w64_headers ];
|
buildInputs = [ windows.mingw_w64_headers ];
|
||||||
hardeningDisable = [ "stackprotector" "fortify" ];
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
||||||
|
|
||||||
meta = {
|
|
||||||
platforms = lib.platforms.windows;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,19 @@
|
||||||
{ stdenvNoCC, mingw_w64 }:
|
{ lib, stdenvNoCC, fetchurl }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
name = "${mingw_w64.name}-headers";
|
pname = "mingw_w64-headers";
|
||||||
inherit (mingw_w64) src meta;
|
version = "11.0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${finalAttrs.version}.tar.bz2";
|
||||||
|
hash = "sha256-P2a84Gnui+10OaGhPafLkaXmfqYXDyExesf1eUYl7hA=";
|
||||||
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd mingw-w64-headers
|
cd mingw-w64-headers
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
meta = {
|
||||||
|
platforms = lib.platforms.windows;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ stdenv, mingw_w64 }:
|
{ stdenv, mingw_w64_headers }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "${mingw_w64.name}-pthreads";
|
pname = "mingw_w64-pthreads";
|
||||||
inherit (mingw_w64) src meta;
|
inherit (mingw_w64_headers) version src meta;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
# Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'.
|
# Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'.
|
||||||
|
|
|
@ -15464,7 +15464,7 @@ with pkgs;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
gccCrossLibcStdenv = overrideCC stdenv buildPackages.gccWithoutTargetLibc;
|
gccCrossLibcStdenv = overrideCC stdenvNoCC buildPackages.gccWithoutTargetLibc;
|
||||||
|
|
||||||
crossLibcStdenv =
|
crossLibcStdenv =
|
||||||
if stdenv.hostPlatform.useLLVM or false || stdenv.hostPlatform.isDarwin
|
if stdenv.hostPlatform.useLLVM or false || stdenv.hostPlatform.isDarwin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue