Merge branch 'master' into staging
This commit is contained in:
27
pkgs/tools/misc/mysqltuner/default.nix
Normal file
27
pkgs/tools/misc/mysqltuner/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchFromGitHub, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mysqltuner-${version}";
|
||||
version = "1.6.18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "major";
|
||||
repo = "MySQLTuner-perl";
|
||||
rev = version;
|
||||
sha256 = "14dblrjqciyx6k7yczfzbaflc7hdxnj0kyy6q0lqfz8imszdkpi2";
|
||||
};
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m0755 mysqltuner.pl $out/bin/mysqltuner
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Make recommendations for increased performance and stability of MariaDB/MySQL";
|
||||
homepage = http://mysqltuner.com;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
@@ -7,8 +7,8 @@ let
|
||||
libglnx-src = fetchFromGitHub {
|
||||
owner = "GNOME";
|
||||
repo = "libglnx";
|
||||
rev = "769522753c25537e520adc322fa62e5390272add";
|
||||
sha256 = "0gfc8dl63xpmf73dwb1plj7cymq7z6w6wq5m06yx8jymwhq7x1l8";
|
||||
rev = "36396b49ad6636c9959f3dfac5e04d41584b1a92";
|
||||
sha256 = "146flrpzybm2s12wg05rnglnfd2f2jx3xzvns2pq28kvg09bgcfn";
|
||||
};
|
||||
|
||||
bsdiff-src = fetchFromGitHub {
|
||||
@@ -17,15 +17,16 @@ let
|
||||
rev = "1edf9f656850c0c64dae260960fabd8249ea9c60";
|
||||
sha256 = "1h71d2h2d3anp4msvpaff445rnzdxii3id2yglqk7af9i43kdsn1";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
rev = "v2016.5";
|
||||
name = "ostree-${rev}";
|
||||
|
||||
version = "2016.11";
|
||||
in stdenv.mkDerivation {
|
||||
name = "ostree-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
rev = "v${version}";
|
||||
owner = "ostreedev";
|
||||
repo = "ostree";
|
||||
sha256 = "1dfyhzgv94ldjv2l4jxf4xhks2z5ljljqa3k579qskds755n6kvg";
|
||||
sha256 = "19xmg01mxdykx74r9ra11hc15qd1fjqbxdn23jrn2pcvz8dw9zgc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -43,6 +44,8 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
preConfigure = ''
|
||||
env NOCONFIGURE=1 ./autogen.sh
|
||||
|
||||
configureFlags+="--with-systemdsystemunitdir=$out/lib/systemd/system"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -1,35 +1,60 @@
|
||||
{ stdenv, fetchFromGitHub, ostree, rpm, which, autoconf, automake, libtool, pkgconfig,
|
||||
libcap, glib, libgsystem, json_glib, libarchive, libhif, librepo, gtk_doc, elfutils,
|
||||
libxslt, docbook_xsl, docbook_xml_dtd_42, acl }:
|
||||
libcap, glib, libgsystem, json_glib, libarchive, libsolv, librepo, gtk_doc, elfutils,
|
||||
gperf, cmake, pcre, check, python, libxslt, docbook_xsl, docbook_xml_dtd_42, acl }:
|
||||
|
||||
let
|
||||
libglnx-src = fetchFromGitHub {
|
||||
owner = "GNOME";
|
||||
repo = "libglnx";
|
||||
rev = "85c9dd5c073a8c0d74c4baa2e4a94f5535984e62";
|
||||
sha256 = "08m8wxlkymwq5hsc26k7ndwiqiw1ggaaxyi2qfhqznasgbp4g623";
|
||||
rev = "4ae5e3beaaa674abfabf7404ab6fafcc4ec547db";
|
||||
sha256 = "1npb9zbyb4bl0nxqf0pcqankcwzs3k1x8i2wkdwhgak4qcvxvfqn";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
rev = "v2016.1";
|
||||
name = "rpm-ostree";
|
||||
|
||||
libdnf-src = fetchFromGitHub {
|
||||
owner = "rpm-software-management";
|
||||
repo = "libhif";
|
||||
rev = "b69552b3b3a42fd41698a925d5f5f623667bac63";
|
||||
sha256 = "0h6k09rb4imzbmsn7mspwl0js2awqdpb4ysdqq550vw2nr0dzszr";
|
||||
};
|
||||
|
||||
version = "2016.10";
|
||||
in stdenv.mkDerivation {
|
||||
name = "rpm-ostree-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
rev = "v${version}";
|
||||
owner = "projectatomic";
|
||||
repo = "rpm-ostree";
|
||||
sha256 = "19jvnmy9zinx0j5nvy3h5abfv9d988kvyza09gljx16gll8qkbbf";
|
||||
sha256 = "0a0wwklzk1kvk3bbxxfvxgk4ck5dn7a7v32shqidb674fr2d5pvb";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
which autoconf automake pkgconfig libtool libcap ostree rpm glib libgsystem
|
||||
json_glib libarchive libhif librepo gtk_doc libxslt docbook_xsl docbook_xml_dtd_42
|
||||
which autoconf automake pkgconfig libtool libcap ostree rpm glib libgsystem gperf
|
||||
json_glib libarchive libsolv librepo gtk_doc libxslt docbook_xsl docbook_xml_dtd_42
|
||||
cmake pcre check python
|
||||
# FIXME: get rid of this once libarchive properly propagates this
|
||||
acl
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
prePatch = ''
|
||||
rmdir libglnx
|
||||
rmdir libglnx libdnf
|
||||
cp --no-preserve=mode -r ${libglnx-src} libglnx
|
||||
cp --no-preserve=mode -r ${libdnf-src} libdnf
|
||||
|
||||
# According to #cmake on freenode, libdnf should bundle the FindLibSolv.cmake module
|
||||
cp ${libsolv}/share/cmake/Modules/FindLibSolv.cmake libdnf/cmake/modules/
|
||||
|
||||
# See https://github.com/projectatomic/rpm-ostree/issues/480
|
||||
substituteInPlace src/libpriv/rpmostree-unpacker.c --replace 'include <selinux/selinux.h>' ""
|
||||
|
||||
# libdnf normally wants sphinx to build its hawkey manpages, but we don't care about those manpages since we don't use hawkey
|
||||
substituteInPlace configure.ac --replace 'cmake \' 'cmake -DWITH_MAN=off \'
|
||||
|
||||
# Let's not hardcode the rpm-gpg path...
|
||||
substituteInPlace libdnf/libdnf/dnf-keyring.c \
|
||||
--replace '"/etc/pki/rpm-gpg"' 'getenv("LIBDNF_RPM_GPG_PATH_OVERRIDE") ? getenv("LIBDNF_RPM_GPG_PATH_OVERRIDE") : "/etc/pki/rpm-gpg"'
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
@@ -2,20 +2,17 @@
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "tmuxp-${version}";
|
||||
version = "1.2.0";
|
||||
version = "1.2.2";
|
||||
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/t/tmuxp/${name}.tar.gz";
|
||||
sha256 = "05z5ssv9glsqmcy9fdq06bawy1274dnzqsqd3a4z4jd0w6j09smn";
|
||||
sha256 = "1g37pdxs0wmnskqm7qsqm0ygwpc1dxk1d7lrzpgs717zxaak8vln";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
# Dependencies required for testing shouldn't pinned to
|
||||
# a specific version.
|
||||
substituteInPlace requirements/test.txt \
|
||||
--replace "==" ">="
|
||||
sed -i 's/==.*$//' requirements/test.txt
|
||||
'';
|
||||
|
||||
buildInputs = with pythonPackages; [
|
||||
|
||||
@@ -14,11 +14,11 @@ with stdenv.lib;
|
||||
buildPythonApplication rec {
|
||||
|
||||
name = "youtube-dl-${version}";
|
||||
version = "2016.09.27";
|
||||
version = "2016.10.07";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://yt-dl.org/downloads/${version}/${name}.tar.gz";
|
||||
sha256 = "dfae0d25cb515d17e7145b7ab0edf0c85f77ef4975aefe46719fdef0a5d4a879";
|
||||
sha256 = "56be6107275cbdc867e89caf9d20f351d184fdc4fb06d915945fef708086dbce";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper zip ] ++ optional generateManPage pandoc;
|
||||
|
||||
Reference in New Issue
Block a user