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
dezgeg committed Dec 23, 2017
2 parents 7eccbe8 + 23773a6 commit 98ef3b8
Show file tree
Hide file tree
Showing 70 changed files with 1,218 additions and 601 deletions.
25 changes: 13 additions & 12 deletions doc/coding-conventions.xml
Expand Up @@ -18,9 +18,9 @@
tab settings so it’s asking for trouble.</para></listitem>

<listitem><para>Use <literal>lowerCamelCase</literal> for variable
names, not <literal>UpperCamelCase</literal>. TODO: naming of
attributes in
<filename>all-packages.nix</filename>?</para></listitem>
names, not <literal>UpperCamelCase</literal>. Note, this rule does
not apply to package attribute names, which instead follow the rules
in <xref linkend="sec-package-naming"/>.</para></listitem>

<listitem><para>Function calls with attribute set arguments are
written as
Expand Down Expand Up @@ -220,9 +220,10 @@ args.stdenv.mkDerivation (args // {

<listitem><para>The variable name used for the instantiated package
in <filename>all-packages.nix</filename>, and when passing it as a
dependency to other functions. This is what Nix expression authors
see. It can also be used when installing using <command>nix-env
-iA</command>.</para></listitem>
dependency to other functions. Typically this is called the
<emphasis>package attribute name</emphasis>. This is what Nix
expression authors see. It can also be used when installing using
<command>nix-env -iA</command>.</para></listitem>

<listitem><para>The filename for (the directory containing) the Nix
expression.</para></listitem>
Expand Down Expand Up @@ -259,12 +260,12 @@ bound to the variable name <varname>e2fsprogs</varname> in
Also append <literal>"unstable"</literal> to the name - e.g.,
<literal>"pkgname-unstable-2014-09-23"</literal>.</para></listitem>

<listitem><para>Dashes in the package name should be preserved
in new variable names, rather than converted to underscores
(which was convention up to around 2013 and most names
still have underscores instead of dashes) — e.g.,
<varname>http-parser</varname> instead of
<varname>http_parser</varname>.</para></listitem>
<listitem><para>Dashes in the package name should be preserved in
new variable names, rather than converted to underscores or camel
cased — e.g., <varname>http-parser</varname> instead of
<varname>http_parser</varname> or <varname>httpParser</varname>. The
hyphenated style is preferred in all three package
names.</para></listitem>

<listitem><para>If there are multiple versions of a package, this
should be reflected in the variable names in
Expand Down
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -28,6 +28,7 @@
afranchuk = "Alex Franchuk <alex.franchuk@gmail.com>";
aherrmann = "Andreas Herrmann <andreash87@gmx.ch>";
ahmedtd = "Taahir Ahmed <ahmed.taahir@gmail.com>";
aij = "Ivan Jager <aij+git@mrph.org>";
ak = "Alexander Kjeldaas <ak@formalprivacy.com>";
akaWolf = "Artjom Vejsel <akawolf0@gmail.com>";
akc = "Anders Claesson <akc@akc.is>";
Expand Down
9 changes: 9 additions & 0 deletions nixos/doc/manual/development/option-declarations.xml
Expand Up @@ -22,6 +22,15 @@ options = {
};
</programlisting>

The attribute names within the <replaceable>name</replaceable>
attribute path must be camel cased in general but should, as an
exception, match the
<link
xlink:href="https://nixos.org/nixpkgs/manual/#sec-package-naming">
package attribute name</link> when referencing a Nixpkgs package. For
example, the option <varname>services.nix-serve.bindAddress</varname>
references the <varname>nix-serve</varname> Nixpkgs package.

</para>

<para>The function <varname>mkOption</varname> accepts the following arguments.
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/logkeys.nix
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:

with lib;

Expand Down
8 changes: 1 addition & 7 deletions nixos/modules/services/misc/mbpfan.nix
Expand Up @@ -8,13 +8,7 @@ let

in {
options.services.mbpfan = {
enable = mkOption {
default = false;
type = types.bool;
description = ''
Whether to enable the mbpfan daemon.
'';
};
enable = mkEnableOption "mbpfan, fan controller daemon for Apple Macs and MacBooks";

package = mkOption {
type = types.package;
Expand Down
5 changes: 5 additions & 0 deletions nixos/modules/system/boot/luksroot.nix
Expand Up @@ -227,6 +227,11 @@ in
default =
[ "aes" "aes_generic" "blowfish" "twofish"
"serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512"

# workaround until https://marc.info/?l=linux-crypto-vger&m=148783562211457&w=4 is merged
# remove once 'modprobe --show-depends xts' shows ecb as a dependency
"ecb"

(if pkgs.stdenv.system == "x86_64-linux" then "aes_x86_64" else "aes_i586")
];
description = ''
Expand Down
34 changes: 34 additions & 0 deletions pkgs/applications/altcoins/aeon/default.nix
@@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc, openssl, pkgconfig, unbound }:

let
version = "0.9.14.0";
in
stdenv.mkDerivation {
name = "aeon-${version}";

src = fetchFromGitHub {
owner = "aeonix";
repo = "aeon";
rev = "v${version}";
sha256 = "0pl9nfhihj0wsdgvvpv5f14k4m2ikk8s3xw6nd8ymbnpxfzyxynr";
};

nativeBuildInputs = [ cmake pkgconfig ];

buildInputs = [ boost miniupnpc openssl unbound ];

installPhase = ''
install -D src/aeond "$out/bin/aeond"
install src/simpleminer "$out/bin/aeon-simpleminer"
install src/simplewallet "$out/bin/aeon-simplewallet"
install src/connectivity_tool "$out/bin/aeon-connectivity-tool"
'';

meta = with stdenv.lib; {
description = "Private, secure, untraceable currency";
homepage = http://www.aeon.cash/;
license = licenses.bsd3;
maintainers = [ maintainers.aij ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/applications/altcoins/default.nix
Expand Up @@ -2,6 +2,8 @@

rec {

aeon = callPackage ./aeon { };

bitcoin = libsForQt5.callPackage ./bitcoin.nix { miniupnpc = miniupnpc_2; withGui = true; };
bitcoind = callPackage ./bitcoin.nix { miniupnpc = miniupnpc_2; withGui = false; };

Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/espeak-ng/default.nix
Expand Up @@ -5,13 +5,13 @@

stdenv.mkDerivation rec {
name = "espeak-ng-${version}";
version = "2016-08-28";
version = "1.49.2";

src = fetchFromGitHub {
owner = "espeak-ng";
repo = "espeak-ng";
rev = "b784e77c5708b61feed780d8f1113c4c8eb92200";
sha256 = "1whix4mv0qvsvifgpwwbdzhv621as3rxpn9ijqc2683h6k8pvcfk";
rev = version;
sha256 = "17bbl3zi8214iaaj8kjnancjvmvizwybg3sg17qjq4mf5c6xfg2c";
};

nativeBuildInputs = [ autoconf automake which libtool pkgconfig ronn ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/editors/android-studio/default.nix
Expand Up @@ -8,9 +8,9 @@ let
in rec {
stable = mkStudio {
pname = "android-studio";
version = "3.0.0.18"; # "Android Studio 3.0"
build = "171.4408382";
sha256Hash = "18npm7ckdybj6vc2vndr0wd50da19m9z2j7wld2mdidnl5ggk4br";
version = "3.0.1.0"; # "Android Studio 3.0.1"
build = "171.4443003";
sha256Hash = "1krahlqr70nq3csqiinq2m4fgs68j11hd9gg2dx2nrpw5zni0wdd";

meta = with stdenv.lib; {
description = "The Official IDE for Android (stable version)";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/editors/eclipse/plugins.nix
Expand Up @@ -192,12 +192,12 @@ rec {

checkstyle = buildEclipseUpdateSite rec {
name = "checkstyle-${version}";
version = "8.0.0.201707161819";
version = "8.5.1.201712211522";

src = fetchzip {
stripRoot = false;
url = "mirror://sourceforge/project/eclipse-cs/Eclipse%20Checkstyle%20Plug-in/8.0.0/net.sf.eclipsecs-updatesite_${version}.zip";
sha256 = "1p07xcf71qc99sh73vqm9xxxgi819m58frv0cpvsn06y6ljr0aj2";
url = "mirror://sourceforge/project/eclipse-cs/Eclipse%20Checkstyle%20Plug-in/8.5.1/net.sf.eclipsecs-updatesite_${version}.zip";
sha256 = "0nid4a4qib9vx34ddry7sylj20p2d47dd0vn4zqqmj5dgqx1a1ab";
};

meta = with stdenv.lib; {
Expand Down
12 changes: 7 additions & 5 deletions pkgs/applications/misc/pell/default.nix
Expand Up @@ -2,29 +2,31 @@

stdenv.mkDerivation rec {
pname = "pell";
version = "0.0.3";
version = "0.0.4";
name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "ebzzry";
repo = pname;
rev = "c25ddd257dd1d1481df5ccac0f99f6bee1ee1ebb";
sha256 = "0fharadbf63mgpmafs8d4k9h83jj9naxldp240xnc5gkna32a07y";
rev = "f251625ece6bb5517227970287119e7d2dfcea8b";
sha256 = "0k8m1lv2kyrs8fylxmbgxg3jn65g57frf2bndc82gkr5svwb554a";
};

installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share
cp pell $out/bin
cp resources/notification.mp3 $out/share
cp resources/online.mp3 $out/share
cp resources/offline.mp3 $out/share
chmod +x $out/bin/pell
'';

postFixup = ''
substituteInPlace $out/bin/pell --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
substituteInPlace $out/bin/pell --replace "(play " "(${sox}/bin/play "
substituteInPlace $out/bin/pell --replace "(notify-send " "(${libnotify}/bin/notify-send "
substituteInPlace $out/bin/pell --replace "/usr/share/pell/notification.mp3" "$out/share/notification.mp3"
substituteInPlace $out/bin/pell --replace "/usr/share/pell/online.mp3" "$out/share/online.mp3"
substituteInPlace $out/bin/pell --replace "/usr/share/pell/offline.mp3" "$out/share/offline.mp3"
'';

meta = with stdenv.lib; {
Expand Down
12 changes: 5 additions & 7 deletions pkgs/applications/misc/qmapshack/default.nix
@@ -1,14 +1,12 @@
{ stdenv, fetchFromBitbucket, cmake, qtscript, qtwebkit, gdal, proj, routino, quazip }:
{ stdenv, fetchurl, cmake, qtscript, qtwebkit, gdal, proj, routino, quazip }:

stdenv.mkDerivation rec {
name = "qmapshack-${version}";
version = "1.9.1";
version = "1.10.0";

src = fetchFromBitbucket {
owner = "maproom";
repo = "qmapshack";
rev = "V%20${version}";
sha256 = "1yswdq1s9jjhwb3wfiy3kkiiaqzagw28vjqvl13jxcnmq7y763sr";
src = fetchurl {
url = "https://bitbucket.org/maproom/qmapshack/downloads/${name}.tar.gz";
sha256 = "10qk6c5myw5dhkbw7pcrx3900kiqhs32vy47xl2844nzb4fq2liw";
};

nativeBuildInputs = [ cmake ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/tint2/default.nix
Expand Up @@ -6,13 +6,13 @@

stdenv.mkDerivation rec {
name = "tint2-${version}";
version = "15.3";
version = "16.0";

src = fetchFromGitLab {
owner = "o9000";
repo = "tint2";
rev = version;
sha256 = "1d83ppwckc2yix1grw8w31rlkyz6naa40pd3dg7n6nidx00zwn91";
sha256 = "04h32f9yybxb2v6bwmlyjzr8gg8jv4iidhpwaq3zhg44iz2b75j0";
};

enableParallelBuilding = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/terragrunt/default.nix
Expand Up @@ -2,15 +2,15 @@

buildGoPackage rec {
name = "terragrunt-${version}";
version = "0.13.0";
version = "0.13.23";

goPackagePath = "github.com/gruntwork-io/terragrunt";

src = fetchFromGitHub {
rev = "v${version}";
owner = "gruntwork-io";
repo = "terragrunt";
sha256 = "18jbz3vchdp5f3f4grl968k706fdcvj71syf7qmriwdyw4ns83wv";
sha256 = "1xx3kw38vr563x3bn0rrg1iq4r51rl0qci2magwwng62cgh3zaiy";
};

goDeps = ./deps.nix;
Expand Down

0 comments on commit 98ef3b8

Please sign in to comment.