1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

cygwin-setup: remove 'with lib;'

This commit is contained in:
Felix Buehler 2024-08-13 22:21:53 +02:00 committed by Valentin Gagarin
parent 3bf56ef4ea
commit 92d44ea36f

View file

@ -2,8 +2,6 @@
, zlib, bzip2, xz, libgcrypt
}:
with lib;
stdenv.mkDerivation rec {
pname = "cygwin-setup";
version = "20131101";
@ -18,9 +16,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake libtool flex bison pkg-config ];
buildInputs = let
mkStatic = flip overrideDerivation (o: {
mkStatic = lib.flip lib.overrideDerivation (o: {
dontDisableStatic = true;
configureFlags = toList (o.configureFlags or []) ++ [ "--enable-static" ];
configureFlags = lib.toList (o.configureFlags or []) ++ [ "--enable-static" ];
buildInputs = map mkStatic (o.buildInputs or []);
propagatedBuildInputs = map mkStatic (o.propagatedBuildInputs or []);
});
@ -41,6 +39,6 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://sourceware.org/cygwin-apps/setup.html";
description = "Tool for installing Cygwin";
license = licenses.gpl2Plus;
license = lib.licenses.gpl2Plus;
};
}