Merge branch 'staging'; security /cc #21642

This commit is contained in:
Vladimír Čunát
2017-01-06 16:32:47 +01:00
41 changed files with 261 additions and 183 deletions

View File

@@ -11,8 +11,6 @@ stdenv.mkDerivation {
owner = "bohoomil";
};
phases = "$prePhases unpackPhase installPhase $postPhases";
installPhase = ''
mkdir -p $out/etc/fonts/conf.d
cp conf.d.infinality/*.conf $out/etc/fonts/conf.d

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
buildInputs = [ autoconf automake libtool ];
preConfigurePhases = "./bootstrap";
preConfigure = "./bootstrap";
meta = {
description = "A program and library for changing the tempo, pitch and playback rate of audio";

View File

@@ -0,0 +1,55 @@
{ stdenv, fetchurl, tcl, tk, fetchpatch } :
stdenv.mkDerivation rec {
version = "8.4.3";
name = "tix-${version}";
src = fetchurl {
url = "mirror://sourceforge/tix/tix/8.4.3/Tix8.4.3-src.tar.gz";
sha256 = "1jq3dkyk9mqkj4cg7mdk5r0cclqsby9l2b7wrysi0zk5yw7h8bsn";
};
patches = [
(fetchpatch {
name = "tix-8.4.3-tcl8.5.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-tcltk/tix/files/tix-8.4.3-tcl8.5.patch?id=56bd759df1d0c750a065b8c845e93d5dfa6b549d";
sha256 = "0wzqmcxxq0rqpnjgxz10spw92yhfygnlwv0h8pcx2ycnqiljz6vj";
})
] ++ stdenv.lib.optional (tcl.release == "8.6")
(fetchpatch {
name = "tix-8.4.3-tcl8.6.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-tcltk/tix/files/tix-8.4.3-tcl8.6.patch?id=56bd759df1d0c750a065b8c845e93d5dfa6b549d";
sha256 = "1jaz0l22xj7x1k4rb9ia6i1psnbwk4pblgq4gfvya7gg7fbb7r36";
})
;
buildInputs = [ tcl tk ];
# the configure script expects to find the location of the sources of
# tcl and tk in {tcl,tk}Config.sh
# In fact, it only needs some private headers. We copy them in
# the private_headers folders and trick the configure script into believing
# the sources are here.
preConfigure = ''
mkdir -p private_headers/generic
< ${tcl}/lib/tclConfig.sh sed "s@TCL_SRC_DIR=.*@TCL_SRC_DIR=private_headers@" > tclConfig.sh
< ${tk}/lib/tkConfig.sh sed "s@TK_SRC_DIR=.*@TK_SRC_DIR=private_headers@" > tkConfig.sh
for i in ${tcl}/include/* ${tk.dev}/include/*; do
ln -s $i private_headers/generic;
done;
'';
configureFlags = ''
--with-tclinclude=${tcl}/include
--with-tclconfig=.
--with-tkinclude=${tk.dev}/include
--with-tkconfig=.
--libdir=''${prefix}/lib
'';
meta = with stdenv.lib; {
description = "A widget library for Tcl/Tk";
homepage = http://tix.sourceforge.net/;
platforms = platforms.all;
license = with licenses; [
bsd2 # tix
gpl2 # patches from portage
];
};
}

View File

@@ -16,6 +16,7 @@ stdenv.mkDerivation {
postInstall = ''
ln -s $out/bin/wish* $out/bin/wish
cp ../{unix,generic}/*.h $out/include
'';
configureFlags = [

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation {
};
buildInputs = [ automake autoconf libtool lzma ];
setSourceRoot = "cd openzim-*/zimlib; export sourceRoot=`pwd`";
preConfigurePhases = [ "./autogen.sh" ];
preConfigure = "./autogen.sh";
meta = {
description = "Library for reading and writing ZIM files (file format for storing Web content offline)";