uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/os-specific/windows/cygwin-setup/default.nix
Normal file
46
pkgs/os-specific/windows/cygwin-setup/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchcvs, autoconf, automake, libtool, flex, bison, pkg-config
|
||||
, zlib, bzip2, xz, 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 xz 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue