3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/windows/cygwin-setup/default.nix
aszlig c6cb3276dd
windows/cygwin-setup: Drop meta.platforms attr.
This prevents cross-builds, so let's drop it for now.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-04 00:52:39 +01:00

47 lines
1.2 KiB
Nix

{ stdenv, fetchcvs, autoconf, automake, libtool, flex, bison, pkgconfig
, zlib, bzip2, lzma, libgcrypt_1_6
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "cygwin-setup-${version}";
version = "20131101";
src = fetchcvs {
cvsRoot = ":pserver:anoncvs@cygwin.com:/cvs/cygwin-apps";
module = "setup";
date = version;
sha256 = "024wxaaxkf7p1i78bh5xrsqmfz7ss2amigbfl2r5w9h87zqn9aq3";
};
nativeBuildInputs = [ autoconf automake libtool flex bison pkgconfig ];
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_1_6 ];
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;
};
}