9788188273
Fixes the evaluation of packages in pkgs/os-specific/windows that weren't updated to include a new lib parameter after the refactor from stdenv.lib -> lib (#109490). I originally only intended this change to fix `pkgsCross.mingw32.buildPackages.gcc` & `pkgsCross.mingwW64.buildPackages.gcc` to support building wine with `mingwSupport`, but I noticed this was an issue for all updated windows packages. Most of these other packages fail to build for other reasons.
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ lib, stdenv, fetchcvs, autoconf, automake, libtool, flex, bison, pkg-config
|
|
, zlib, bzip2, lzma, libgcrypt
|
|
}:
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cygwin-setup";
|
|
version = "20131101";
|
|
|
|
src = fetchcvs {
|
|
cvsRoot = ":pserver:anoncvs@cygwin.com:/cvs/cygwin-apps";
|
|
module = "setup";
|
|
date = version;
|
|
sha256 = "024wxaaxkf7p1i78bh5xrsqmfz7ss2amigbfl2r5w9h87zqn9aq3";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool flex bison pkg-config ];
|
|
|
|
buildInputs = let
|
|
mkStatic = flip overrideDerivation (o: {
|
|
dontDisableStatic = true;
|
|
configureFlags = toList (o.configureFlags or []) ++ [ "--enable-static" ];
|
|
buildInputs = map mkStatic (o.buildInputs or []);
|
|
propagatedBuildInputs = map mkStatic (o.propagatedBuildInputs or []);
|
|
});
|
|
in map mkStatic [ zlib bzip2 lzma libgcrypt ];
|
|
|
|
configureFlags = [ "--disable-shared" ];
|
|
|
|
dontDisableStatic = true;
|
|
|
|
preConfigure = ''
|
|
autoreconf -vfi
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -vD setup.exe "$out/bin/setup.exe"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://sourceware.org/cygwin-apps/setup.html";
|
|
description = "A tool for installing Cygwin";
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|