2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchcvs,
|
|
|
|
autoconf,
|
|
|
|
automake,
|
|
|
|
libtool,
|
|
|
|
flex,
|
|
|
|
bison,
|
|
|
|
pkg-config,
|
|
|
|
zlib,
|
|
|
|
bzip2,
|
|
|
|
xz,
|
|
|
|
libgcrypt,
|
2024-05-02 00:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
flex
|
|
|
|
bison
|
|
|
|
pkg-config
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00: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 [ ]);
|
|
|
|
});
|
|
|
|
in
|
|
|
|
map mkStatic [
|
|
|
|
zlib
|
|
|
|
bzip2
|
|
|
|
xz
|
|
|
|
libgcrypt
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|