2021-01-19 18:09:31 -08:00
|
|
|
{ lib, stdenv, fetchcvs, autoconf, automake, libtool, flex, bison, pkg-config
|
2021-03-14 11:12:53 -07:00
|
|
|
, zlib, bzip2, xz, libgcrypt
|
2014-03-03 13:47:05 -08:00
|
|
|
}:
|
|
|
|
|
2021-01-15 06:45:37 -08:00
|
|
|
with lib;
|
2014-03-03 13:47:05 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "cygwin-setup";
|
2014-03-03 13:47:05 -08:00
|
|
|
version = "20131101";
|
|
|
|
|
|
|
|
src = fetchcvs {
|
|
|
|
cvsRoot = ":pserver:anoncvs@cygwin.com:/cvs/cygwin-apps";
|
|
|
|
module = "setup";
|
|
|
|
date = version;
|
|
|
|
sha256 = "024wxaaxkf7p1i78bh5xrsqmfz7ss2amigbfl2r5w9h87zqn9aq3";
|
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool flex bison pkg-config ];
|
2014-03-03 13:47:05 -08:00
|
|
|
|
|
|
|
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 []);
|
|
|
|
});
|
2021-03-14 11:12:53 -07:00
|
|
|
in map mkStatic [ zlib bzip2 xz libgcrypt ];
|
2014-03-03 13:47:05 -08:00
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [ "--disable-shared" ];
|
2014-03-03 13:47:05 -08:00
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoreconf -vfi
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vD setup.exe "$out/bin/setup.exe"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://sourceware.org/cygwin-apps/setup.html";
|
2014-03-03 13:47:05 -08:00
|
|
|
description = "A tool for installing Cygwin";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|