Merge remote-tracking branch 'origin/stdenv-updates' into illumos
Conflicts: pkgs/development/libraries/gmp/5.1.1.nix pkgs/development/libraries/mpc/default.nix pkgs/development/libraries/mpfr/default.nix pkgs/development/libraries/ppl/default.nix pkgs/tools/misc/coreutils/default.nix
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{stdenv, fetchurl, openssl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mktorrent-1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/mktorrent/mktorrent-1.0.tar.gz;
|
||||
sha256 = "17qi3nfky240pq6qcmf5qg324mxm83vk9r3nvsdhsvinyqm5d3kg";
|
||||
};
|
||||
|
||||
makeFlags = "CFLAGS=-lgcc_s USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1" +
|
||||
stdenv.lib.optionalString stdenv.isi686 " USE_LARGE_FILES=1";
|
||||
|
||||
preInstall = ''
|
||||
installFlags=PREFIX=$out
|
||||
'';
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
meta = {
|
||||
homepage = http://mktorrent.sourceforge.net/;
|
||||
license = "GPLv2+";
|
||||
description = "Command line utility to create BitTorrent metainfo files";
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1v2xzwwwhc5j5kmvg4sv6baxjpsfqh8ln7ilv4mgb1408rs7xmky";
|
||||
};
|
||||
|
||||
patches = [ ./glibc.patch ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
buildInputs = [ curl emacs ] ++ (stdenv.lib.optionals doCheck [ check bc ]);
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
--- recutils-1.5/lib/stdio.in.h
|
||||
+++ recutils-1.5/lib/stdio.in.h
|
||||
@@ -699,22 +699,11 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
-#if @GNULIB_GETS@
|
||||
-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
|
||||
-# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
||||
-# undef gets
|
||||
-# define gets rpl_gets
|
||||
-# endif
|
||||
-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
|
||||
-_GL_CXXALIAS_RPL (gets, char *, (char *s));
|
||||
-# else
|
||||
-_GL_CXXALIAS_SYS (gets, char *, (char *s));
|
||||
-# undef gets
|
||||
-# endif
|
||||
-_GL_CXXALIASWARN (gets);
|
||||
/* It is very rare that the developer ever has full control of stdin,
|
||||
- so any use of gets warrants an unconditional warning. Assume it is
|
||||
- always declared, since it is required by C89. */
|
||||
+ so any use of gets warrants an unconditional warning; besides, C11
|
||||
+ removed it. */
|
||||
+#undef gets
|
||||
+#if HAVE_RAW_DECL_GETS
|
||||
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
#endif
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
{stdenv, fetchurl, ncurses, libevent}:
|
||||
{stdenv, fetchurl, ncurses, libevent, pkgconfig}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tmux";
|
||||
version = "1.5";
|
||||
version = "1.7";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${pname}/${name}.tar.gz";
|
||||
sha256 = "eb8215b57c05b765d2446d9acb2bc5edcdb3eb4ea31af89ee127a27e90056306";
|
||||
sha256 = "0ywy1x2g905hmhkdz418ik42lcvnhnwr8fv63rcqczfg27d6nd38";
|
||||
};
|
||||
|
||||
makeFlags = "PREFIX=\${out}";
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
crossAttrs = {
|
||||
preBuild = ''
|
||||
makeFlags=" $makeFlags CC=${stdenv.cross.config}-gcc "
|
||||
'';
|
||||
};
|
||||
# There's a bug in tmux's configure script, --disable-static actually enables it
|
||||
# Fixed upstream in revision ThomasAdam/tmux@e964ff70e696f30f0301d11deb45c8ada54e0c55
|
||||
# Remove on next update
|
||||
dontDisableStatic = true;
|
||||
|
||||
buildInputs = [ ncurses libevent ];
|
||||
|
||||
@@ -41,6 +40,6 @@ stdenv.mkDerivation rec {
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.thammers ];
|
||||
maintainers = with stdenv.lib.maintainers; [ shlevy thammers ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user