mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
215a07c1a9
Merge conflicts: * unzip (almost trivial) * dvswitch (trivial) * gmp (copied result of `git merge`) The last item introduced gmp-5.0.3, thus full rebuild. +ensureDir->mkdir -p in TeX packages was catched by git but not svn. svn path=/nixpkgs/branches/stdenv-updates/; revision=32091
32 lines
671 B
Nix
32 lines
671 B
Nix
{ stdenv, fetchurl, xz, binutilsCross ? null
|
|
, gccCross ? null, onlyHeaders ? false }:
|
|
|
|
let
|
|
name = "w32api-3.17-2";
|
|
in
|
|
stdenv.mkDerivation ({
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mingw/MinGW/Base/w32api/w32api-3.17/${name}-mingw32-src.tar.lzma";
|
|
sha256 = "09rhnl6zikmdyb960im55jck0rdy5z9nlg3akx68ixn7khf3j8wb";
|
|
};
|
|
|
|
buildNativeInputs = [ xz ];
|
|
|
|
} //
|
|
(if onlyHeaders then {
|
|
name = name + "-headers";
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R include $out
|
|
'';
|
|
} else {
|
|
buildInputs = [ gccCross binutilsCross ];
|
|
|
|
crossConfig = gccCross.crossConfig;
|
|
|
|
dontStrip = true;
|
|
})
|
|
)
|