diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-06-19 11:51:01 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-06-22 17:53:51 -0400 |
commit | bb7067f882bf3c53ea68780a8ec0a7117f563253 (patch) | |
tree | 02be64697b37a74b462fc977a86737119d15a780 /pkgs/os-specific/windows/mingw-w64/default.nix | |
parent | c2e2152afc513fa4eda51b96dc5c7f349c3497da (diff) |
mingw-w64: Clean up, especially clarifying staging
Diffstat (limited to 'pkgs/os-specific/windows/mingw-w64/default.nix')
-rw-r--r-- | pkgs/os-specific/windows/mingw-w64/default.nix | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/pkgs/os-specific/windows/mingw-w64/default.nix b/pkgs/os-specific/windows/mingw-w64/default.nix index 49612b0b4618e..697e035318220 100644 --- a/pkgs/os-specific/windows/mingw-w64/default.nix +++ b/pkgs/os-specific/windows/mingw-w64/default.nix @@ -1,36 +1,6 @@ -{ stdenv, fetchurl, binutils ? null, gccCross ? null -, onlyHeaders ? false -, onlyPthreads ? false -}: - -let - version = "4.0.6"; - name = "mingw-w64-${version}"; -in -stdenv.mkDerivation ({ - inherit name; - - src = fetchurl { - url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2"; - sha256 = "0p01vm5kx1ixc08402z94g1alip4vx66gjpvyi9maqyqn2a76h0c"; - }; -} // -(if onlyHeaders then { - name = name + "-headers"; - preConfigure = '' - cd mingw-w64-headers - ''; - configureFlags = "--without-crt"; -} else if onlyPthreads then { - name = name + "-pthreads"; - preConfigure = '' - cd mingw-w64-libraries/winpthreads - ''; -} else { - buildInputs = [ gccCross binutils ]; - - crossConfig = gccCross.crossConfig; +{ stdenv, callPackage }: +stdenv.mkDerivation { + inherit (callPackage ./common.nix {}) name src; dontStrip = true; -}) -) +} |