Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Jan 18, 2018
2 parents b5be5ef + 1956ef5 commit a18053b
Show file tree
Hide file tree
Showing 85 changed files with 474 additions and 320 deletions.
12 changes: 10 additions & 2 deletions nixos/modules/services/networking/ssh/sshd.nix
Expand Up @@ -21,7 +21,7 @@ let
daemon reads in addition to the the user's authorized_keys file.
You can combine the <literal>keys</literal> and
<literal>keyFiles</literal> options.
Warning: If you are using <literal>NixOps</literal> then don't use this
Warning: If you are using <literal>NixOps</literal> then don't use this
option since it will replace the key required for deployment via ssh.
'';
};
Expand Down Expand Up @@ -137,6 +137,14 @@ in
'';
};

openFirewall = mkOption {
type = types.bool;
default = true;
description = ''
Whether to automatically open the specified ports in the firewall.
'';
};

listenAddresses = mkOption {
type = with types; listOf (submodule {
options = {
Expand Down Expand Up @@ -302,7 +310,7 @@ in

};

networking.firewall.allowedTCPPorts = cfg.ports;
networking.firewall.allowedTCPPorts = if cfg.openFirewall then cfg.ports else [];

security.pam.services.sshd =
{ startSession = true;
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/google-compute-image.nix
Expand Up @@ -212,7 +212,7 @@ in
echo "Obtaining SSH keys..."
mkdir -m 0700 -p /root/.ssh
AUTH_KEYS=$(${mktemp})
${wget} -O $AUTH_KEYS http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys
${wget} -O $AUTH_KEYS --header="Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys
if [ -s $AUTH_KEYS ]; then
# Read in key one by one, split in case Google decided
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/flac/default.nix
Expand Up @@ -18,6 +18,6 @@ stdenv.mkDerivation rec {
homepage = https://xiph.org/flac/;
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
platforms = platforms.all;
maintainers = [ maintainers.mornfall ];
maintainers = [ ];
};
}
7 changes: 2 additions & 5 deletions pkgs/applications/audio/gpodder/default.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
, glibcLocales, gnome3, gtk3, wrapGAppsHook
, ipodSupport ? false, libgpod
, ipodSupport ? false, libgpod, gobjectIntrospection
}:

python3Packages.buildPythonApplication rec {
Expand All @@ -22,14 +22,11 @@ python3Packages.buildPythonApplication rec {

nativeBuildInputs = [
intltool
python3Packages.wrapPython
wrapGAppsHook
glibcLocales
];

buildInputs = [
python3
];
buildInputs = [ python3 gobjectIntrospection ];

checkInputs = with python3Packages; [
coverage minimock
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/monkeys-audio/default.nix
Expand Up @@ -14,6 +14,6 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = [ maintainers.mornfall ];
maintainers = [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/audio/ncmpcpp/default.nix
Expand Up @@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
description = "A featureful ncurses based MPD client inspired by ncmpc";
homepage = https://ncmpcpp.rybczak.net/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ jfrankenau koral lovek323 mornfall ];
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
platforms = platforms.all;
};
}
34 changes: 14 additions & 20 deletions pkgs/applications/audio/pd-plugins/cyclone/default.nix
@@ -1,32 +1,26 @@
{ stdenv, fetchurl, puredata }:
{ stdenv, fetchFromGitHub, puredata }:

stdenv.mkDerivation rec {
name = "cyclone-${version}";
version = "0.1-alpha55";
version = "0.3beta-2";

src = fetchurl {
url = "mirror://sourceforge/project/pure-data/libraries/cyclone/${name}.tar.gz";
sha256 = "1yys9xrlz09xgnqk2gqdl8vw6xj6l9d7km2lkihidgjql0jx5b5i";
src = fetchFromGitHub {
owner = "porres";
repo = "pd-cyclone";
rev = "cyclone${version}";
sha256 = "192jrq3bdsv626js1ymq10gwp9wwcszjs63ys6ap9ig8xdkbhr3q";
};

buildInputs = [ puredata ];

hardeningDisable = [ "format" ];
makeFlags = [
"pdincludepath=${puredata}/include/pd"
"prefix=$(out)"
];

patchPhase = ''
for file in `grep -r -l g_canvas.h`
do
sed -i 's|#include "g_canvas.h"|#include "${puredata}/include/pd/g_canvas.h"|g' $file
done
for file in `grep -r -l m_imp.h`
do
sed -i 's|#include "m_imp.h"|#include "${puredata}/include/pd/m_imp.h"|g' $file
done
'';

installPhase = ''
mkdir -p $out/cyclone
cp -r bin/* $out/cyclone
postInstall = ''
mv "$out/lib/pd-externals/cyclone" "$out/"
rm -rf $out/lib
'';

meta = {
Expand Down
22 changes: 10 additions & 12 deletions pkgs/applications/audio/pd-plugins/maxlib/default.nix
@@ -1,28 +1,26 @@
{ stdenv, fetchurl, puredata }:
{ stdenv, fetchFromGitHub, puredata }:

stdenv.mkDerivation rec {
name = "maxlib-${version}";
version = "1.5.5";
version = "1.5.7";

src = fetchurl {
url = "mirror://sourceforge/project/pure-data/libraries/maxlib/${name}.tar.gz";
sha256 = "0vxl9s815dnay5r0067rxsfh8f6jbk61f0nxrydzjydfycza7p1w";
src = fetchFromGitHub {
owner = "electrickery";
repo = "pd-maxlib";
rev = "v${version}";
sha256 = "10w9qfgn26lj3zqjksf2r1wsjpf5xy4dx22jay9l6idy9q62mxsn";
};

buildInputs = [ puredata ];

hardeningDisable = [ "format" ];

patchPhase = ''
for i in ${puredata}/include/pd/*; do
ln -s $i .
done
sed -i "s@/usr@$out@g" Makefile
'';
makeFlags = [ "prefix=$(out)" ];

postInstall = ''
mv $out/local/lib/pd-externals/maxlib/ $out
mv $out/lib/pd-externals/maxlib/ $out
rm -rf $out/local/
rm -rf $out/lib/
'';

meta = {
Expand Down
26 changes: 18 additions & 8 deletions pkgs/applications/audio/pd-plugins/timbreid/default.nix
@@ -1,30 +1,40 @@
{ stdenv, fetchurl, unzip, puredata }:
{ stdenv, fetchurl, unzip, puredata, fftw }:

stdenv.mkDerivation rec {
version = "0.6.0";
version = "0.7.0";
name = "timbreid-${version}";

src = fetchurl {
url = "http://williambrent.conflations.com/pd/timbreID-${version}-src.zip";
sha256 = "02rnkb0vpjxrr60c3hryv7zhyjpci2mi9dk27kjxpj5zp26gjk0p";
sha256 = "14k2xk5zrzrw1zprdbwx45hrlc7ck8vq4drpd3l455i5r8yk4y6b";
};

buildInputs = [ unzip puredata ];
buildInputs = [ unzip puredata fftw ];

unpackPhase = ''
mkdir source
cd source
unzip $src
mv timbreID-0.6.0-src/tID/* .
rm -rf timbreID-0.6.0-src/tID/
rm -rf timbreID-0.6.0-src/INSTALL.txt
'';

buildPhase = ''
make tIDLib.o all
'';

installPhase = ''
mkdir -p $out/
cp -r *.pd $out/
cp -r *.pd_linux $out/
cp -r *.wav $out/
cp -r audio/ $out/
cp -r data/ $out/
cp -r doc/ $out/
'';

postFixup = ''
mv $out/share/doc/ $out/
rm -rf $out/share/
'';

meta = {
description = "A collection of audio feature analysis externals for puredata";
homepage = http://williambrent.conflations.com/pages/research.html;
Expand Down
Expand Up @@ -56,6 +56,6 @@ stdenv.mkDerivation rec {

homepage = http://emacs-w3m.namazu.org/;

maintainers = [ stdenv.lib.maintainers.mornfall ];
maintainers = [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/photivo/default.nix
Expand Up @@ -36,6 +36,6 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = [ maintainers.mornfall ];
maintainers = [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/misc/pstree/default.nix
Expand Up @@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Show the set of running processes as a tree";
license = "GPL";
maintainers = [ stdenv.lib.maintainers.mornfall ];
maintainers = [ ];
platforms = stdenv.lib.platforms.unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/misc/redshift/default.nix
Expand Up @@ -58,6 +58,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
homepage = http://jonls.dk/redshift;
platforms = platforms.linux;
maintainers = with maintainers; [ mornfall yegortimoshenko ];
maintainers = with maintainers; [ yegortimoshenko ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/misc/rxvt_unicode/default.nix
Expand Up @@ -65,7 +65,7 @@ stdenv.mkDerivation (rec {
inherit description;
homepage = http://software.schmorp.de/pkg/rxvt-unicode.html;
downloadPage = "http://dist.schmorp.de/rxvt-unicode/Attic/";
maintainers = [ maintainers.mornfall ];
maintainers = [ ];
platforms = platforms.unix;
};
})
7 changes: 5 additions & 2 deletions pkgs/applications/networking/browsers/qutebrowser/default.nix
Expand Up @@ -29,12 +29,13 @@ let
in python3Packages.buildPythonApplication rec {
name = "qutebrowser-${version}${versionPostfix}";
namePrefix = "";
version = "1.0.4";
version = "1.1.0";
versionPostfix = "";

# the release tarballs are different from the git checkout!
src = fetchurl {
url = "https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/${name}.tar.gz";
sha256 = "0z8zrgr914bfmimqk3l17dxyc7gzh42sw8lfp041zzvj6fxw3lkr";
sha256 = "1w02z5akr1v2517rbqrnv65vfsqvgw310g2nhanbwdg606crzr94";
};

# Needs tox
Expand Down Expand Up @@ -79,6 +80,8 @@ in python3Packages.buildPythonApplication rec {
install -Dm644 icons/qutebrowser.svg \
"$out/share/icons/hicolor/scalable/apps/qutebrowser.svg"
install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/*
install -Dm755 -t "$out/share/qutebrowser/scripts/" \
scripts/{importer.py,dictcli.py,keytester.py,open_url_in_instance.sh,utils.py}
'';

postFixup = lib.optionalString (! withWebEngineDefault) ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/browsers/vimb/default.nix
Expand Up @@ -4,11 +4,11 @@

stdenv.mkDerivation rec {
name = "vimb-${version}";
version = "2.11";
version = "3.1.0";

src = fetchurl {
url = "https://github.com/fanglingsu/vimb/archive/${version}.tar.gz";
sha256 = "0d9rankzgmnx5423pyfkbxy0qxw3ck2vrdjdnlhddy15wkk87i9f";
sha256 = "1gws028c2v1zh6r142hmjvi2m447lwqqh65m6z3dzcar2yw35z3f";
};

nativeBuildInputs = [ pkgconfig ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/browsers/w3m/default.nix
Expand Up @@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = http://w3m.sourceforge.net/;
description = "A text-mode web browser";
maintainers = [ maintainers.mornfall maintainers.cstrahan ];
maintainers = [ maintainers.cstrahan ];
platforms = stdenv.lib.platforms.unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/science/logic/stp/default.nix
Expand Up @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
description = "Simple Theorem Prover";
maintainers = with maintainers; [ mornfall ];
maintainers = with maintainers; [ ];
platforms = platforms.linux;
license = licenses.mit;
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/science/math/weka/default.nix
Expand Up @@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "weka-${version}";
version = "3.8.1";
version = "3.8.2";

src = fetchurl {
url = "mirror://sourceforge/weka/${stdenv.lib.replaceChars ["."]["-"] name}.zip";
sha256 = "16n1a74d1cispp0a22zyiivi78izi354y67gmbyvv2lv9sc45wmk";
sha256 = "0p353lhhcv3swwn1bl64vkyjk480vv9ghhlyqjxiar4p3xifjayb";
};

buildInputs = [ unzip ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/video/quvi/library.nix
Expand Up @@ -17,6 +17,6 @@ stdenv.mkDerivation rec {
homepage = http://quvi.sf.net;
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.mornfall ];
maintainers = [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/video/quvi/scripts.nix
Expand Up @@ -16,6 +16,6 @@ stdenv.mkDerivation rec {
homepage = http://quvi.sf.net;
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.mornfall ];
maintainers = [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/video/quvi/tool.nix
Expand Up @@ -20,6 +20,6 @@ stdenv.mkDerivation rec {
homepage = http://quvi.sf.net;
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.mornfall ];
maintainers = [ ];
};
}
10 changes: 5 additions & 5 deletions pkgs/build-support/fetchpatch/default.nix
Expand Up @@ -5,7 +5,7 @@
# stripLen acts as the -p parameter when applying a patch.

{ lib, fetchurl, patchutils }:
{ stripLen ? 0, addPrefixes ? false, excludes ? [], ... }@args:
{ stripLen ? 0, extraPrefix ? null, excludes ? [], ... }@args:

fetchurl ({
postFetch = ''
Expand All @@ -16,9 +16,9 @@ fetchurl ({
"${patchutils}/bin/filterdiff" \
--include={} \
--strip=${toString stripLen} \
${lib.optionalString addPrefixes ''
--addoldprefix=a/ \
--addnewprefix=b/ \
${lib.optionalString (extraPrefix != null) ''
--addoldprefix=a/${extraPrefix} \
--addnewprefix=b/${extraPrefix} \
''} \
--clean "$out" > "$tmpfile"
${patchutils}/bin/filterdiff \
Expand All @@ -27,4 +27,4 @@ fetchurl ({
"$tmpfile" > "$out"
${args.postFetch or ""}
'';
} // builtins.removeAttrs args ["stripLen" "addPrefixes" "excludes" "postFetch"])
} // builtins.removeAttrs args ["stripLen" "extraPrefix" "excludes" "postFetch"])
4 changes: 2 additions & 2 deletions pkgs/data/misc/hackage/default.nix
@@ -1,6 +1,6 @@
{ fetchurl }:

fetchurl {
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/5e87c40f2cd96bd5dd953758e82f302107c7895e.tar.gz";
sha256 = "0hjkddda9mdm21nb9bkhr9n5r9jllisif1qmzha91a9cps5w1mx5";
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/00012ce23948b9547fe6609d595109741e0f58cf.tar.gz";
sha256 = "1swgfx7b41jxq0pyws2wipdiyvy8nn6cp54yj3ip3r9l3gdv3f7b";
}

0 comments on commit a18053b

Please sign in to comment.