Skip to content

Commit

Permalink
Merge staging into master
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed May 27, 2018
2 parents d90eea8 + dac633f commit b22cc53
Show file tree
Hide file tree
Showing 511 changed files with 3,907 additions and 3,155 deletions.
4 changes: 2 additions & 2 deletions doc/languages-frameworks/perl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ buildPerlPackage rec {
};

preConfigure = ''
echo "LIB = ${db}/lib" > config.in
echo "INCLUDE = ${db}/include" >> config.in
echo "LIB = ${db.out}/lib" > config.in
echo "INCLUDE = ${db.dev}/include" >> config.in
'';
}
</programlisting>
Expand Down
17 changes: 17 additions & 0 deletions doc/stdenv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,14 @@ passthru = {
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>checkInputs</varname>
</term>
<listitem><para>
A list of dependencies used by the phase. This gets included in
<varname>buildInputs</varname> when <varname>doCheck</varname> is set.
</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>makeFlags</varname>
</term>
Expand Down Expand Up @@ -1646,6 +1654,15 @@ set debug-file-directory ~/.nix-profile/lib/debug
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>installCheckInputs</varname>
</term>
<listitem><para>
A list of dependencies used by the phase. This gets included in
<varname>buildInputs</varname> when <varname>doInstallCheck</varname>
is set.
</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>preInstallCheck</varname>
</term>
Expand Down
6 changes: 5 additions & 1 deletion lib/systems/for-meta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ in rec {
darwin = [ patterns.isDarwin ];
freebsd = [ patterns.isFreeBSD ];
# Should be better, but MinGW is unclear, and HURD is bit-rotted.
gnu = [ { kernel = parse.kernels.linux; abi = abis.gnu; } ];
gnu = [
{ kernel = parse.kernels.linux; abi = parse.abis.gnu; }
{ kernel = parse.kernels.linux; abi = parse.abis.gnueabi; }
{ kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; }
];
illumos = [ patterns.isSunOS ];
linux = [ patterns.isLinux ];
netbsd = [ patterns.isNetBSD ];
Expand Down
15 changes: 13 additions & 2 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let
sh = pkgs.runtimeShell;
binshDeps = pkgs.writeReferencesToFile sh;
in
pkgs.runCommand "nix.conf" { extraOptions = cfg.extraOptions; } ''
pkgs.runCommand "nix.conf" { extraOptions = cfg.extraOptions; } (''
${optionalString (!isNix20) ''
extraPaths=$(for i in $(cat ${binshDeps}); do if test -d $i; then echo $i; fi; done)
''}
Expand Down Expand Up @@ -62,7 +62,11 @@ let
''}
$extraOptions
END
'';
'' + optionalString cfg.checkConfig ''
echo "Checking that Nix can read nix.conf..."
ln -s $out ./nix.conf
NIX_CONF_DIR=$PWD ${cfg.package}/bin/nix show-config >/dev/null
'');

in

Expand Down Expand Up @@ -351,6 +355,13 @@ in
'';
};

checkConfig = mkOption {
type = types.bool;
default = true;
description = ''
If enabled (the default), checks that Nix can parse the generated nix.conf.
'';
};
};

};
Expand Down
1 change: 1 addition & 0 deletions nixos/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ in rec {
tests.flatpak = callTest tests/flatpak.nix {};
tests.firewall = callTest tests/firewall.nix {};
tests.fwupd = callTest tests/fwupd.nix {};
tests.gdk-pixbuf = callTest tests/gdk-pixbuf.nix {};
#tests.gitlab = callTest tests/gitlab.nix {};
tests.gitolite = callTest tests/gitolite.nix {};
tests.gjs = callTest tests/gjs.nix {};
Expand Down
19 changes: 19 additions & 0 deletions nixos/tests/gdk-pixbuf.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# run installed tests
import ./make-test.nix ({ pkgs, ... }: {
name = "gdk-pixbuf";

meta = {
maintainers = pkgs.gdk_pixbuf.meta.maintainers;
};

machine = { pkgs, ... }: {
environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
environment.variables.XDG_DATA_DIRS = [ "${pkgs.gdk_pixbuf.installedTests}/share" ];

virtualisation.memorySize = 4096; # Tests allocate a lot of memory trying to exploit a CVE
};

testScript = ''
$machine->succeed("gnome-desktop-testing-runner");
'';
})
4 changes: 4 additions & 0 deletions pkgs/applications/altcoins/bitcoin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ stdenv.mkDerivation rec{
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];

# Fails with "This application failed to start because it could not
# find or load the Qt platform plugin "minimal""
doCheck = false;

meta = {
description = "Peer-to-peer electronic cash system";
longDescription= ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/altcoins/dapp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, seth, git, solc, shellcheck, nodejs, hevm }:

stdenv.mkDerivation rec {
name = "dapp";
name = "dapp-${version}";
version = "0.5.7";

src = fetchFromGitHub {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/altcoins/mist.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let
categories = "Network;";
};

mist = stdenv.mkDerivation {
mist = stdenv.lib.appendToName "unwrapped" (stdenv.mkDerivation {
inherit name version;

src = {
Expand Down Expand Up @@ -53,10 +53,10 @@ let
--set-rpath "${atomEnv.libPath}:$out/lib/mist" \
$out/lib/mist/mist
'';
};
});
in
buildFHSUserEnv {
name = "mist";
name = "mist-${stdenv.lib.getVersion mist}";

targetPkgs = pkgs: with pkgs; [
mist
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/audio/easytag/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ in stdenv.mkDerivation rec {
gsettings-desktop-schemas gnome3.defaultIconTheme
];

doCheck = false; # fails 1 out of 9 tests

passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
Expand Down
26 changes: 17 additions & 9 deletions pkgs/applications/audio/renoise/default.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
{ stdenv, lib, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }:
{ stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }:

with stdenv.lib;

# To use the full release version:
# 1) Sign into https://backstage.renoise.com and download the appropriate (x86 or x86_64) version
# for your machine to some stable location.
# 2) Override the releasePath attribute to point to the location of the newly downloaded bundle.
# Note: Renoise creates an individual build for each license which screws somewhat with the
# use of functions like requireFile as the hash will be different for every user.
let fileversion = "3_1_0";
let
urlVersion = replaceStrings [ "." ] [ "_" ];
in

stdenv.mkDerivation rec {
name = "renoise";
buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ];
name = "renoise-${version}";
version = "3.1.0";

src =
if stdenv.system == "x86_64-linux" then
if builtins.isNull releasePath then
fetchurl {
url = "http://files.renoise.com/demo/Renoise_${fileversion}_Demo_x86_64.tar.bz2";
sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga";
url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86_64.tar.bz2";
sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga";
}
else
releasePath
else if stdenv.system == "i686-linux" then
if builtins.isNull releasePath then
fetchurl {
url = "http://files.renoise.com/demo/Renoise_${fileversion}_Demo_x86.tar.bz2";
sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769";
url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86.tar.bz2";
sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769";
}
else
releasePath
else throw "Platform is not supported by Renoise";

buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ];

installPhase = ''
cp -r Resources $out
Expand All @@ -55,6 +61,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Modern tracker-based DAW";
homepage = http://www.renoise.com/;
license = stdenv.lib.licenses.unfree;
license = licenses.unfree;
maintainers = [];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/editors/neovim/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let

in
stdenv.mkDerivation {
inherit name;
name = "neovim-${stdenv.lib.getVersion neovim}";
buildCommand = let bin="${neovim}/bin/nvim"; in ''
if [ ! -x "${bin}" ]
then
Expand Down
41 changes: 24 additions & 17 deletions pkgs/applications/editors/okteta/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
{
mkDerivation, lib, fetchurl,
extra-cmake-modules, kdoctools,
qtscript, kconfig, kinit, karchive, kcrash,
kcmutils, kconfigwidgets, knewstuff, kparts, qca-qt5,
shared-mime-info
}:
{ stdenv, fetchurl, extra-cmake-modules, kdoctools, qtscript, kconfig
, kinit, karchive, kcrash, kcmutils, kconfigwidgets, knewstuff, kparts
, qca-qt5, shared-mime-info }:

let
stdenv.mkDerivation rec {
name = "okteta-${version}";
version = "17.12.3";
in mkDerivation rec {
name = "okteta";

src = fetchurl {
url = "mirror://kde/stable/applications/${version}/src/${name}-${version}.tar.xz";
url = "mirror://kde/stable/applications/${version}/src/${name}.tar.xz";
sha256 = "03wsv83l1cay2dpcsksad124wzan7kh8zxdw1h0yicn398kdbck4";
};
meta = {
license = with lib.licenses; [ gpl2 ];
maintainers = with lib.maintainers; [ peterhoeg bkchr ];
};

nativeBuildInputs = [ qtscript extra-cmake-modules kdoctools ];
buildInputs = [ shared-mime-info ];

propagatedBuildInputs = [
kconfig kinit kcmutils kconfigwidgets knewstuff kparts qca-qt5
karchive kcrash
kconfig
kinit
kcmutils
kconfigwidgets
knewstuff
kparts
qca-qt5
karchive
kcrash
];

meta = with stdenv.lib; {
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg bkchr ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/applications/graphics/ImageMagick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ stdenv.mkDerivation rec {
[ libX11 libXext libXt libwebp ]
;

doCheck = false; # fails 6 out of 76 tests

postInstall = ''
(cd "$dev/include" && ln -s ImageMagick* ImageMagick)
moveToOutput "bin/*-config" "$dev"
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/graphics/gimp/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ let
'';
}
// a
# don't call this gimp-* unless you want nix replace gimp by a plugin :-)
// {
name = "${a.name}-${gimp.name}-plugin";
name = "gimp-plugin-${a.name}";
buildInputs = [ gimp gimp.gtk glib ] ++ (a.buildInputs or []);
nativeBuildInputs = [ pkgconfig intltool ] ++ (a.nativeBuildInputs or []);
}
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/audio/soxr/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, cmake }:

stdenv.mkDerivation rec {
name = "soxr-0.1.2";
name = "soxr-0.1.3";

src = fetchurl {
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
sha256 = "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl";
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
};

outputs = [ "out" "doc" ]; # headers are just two and very small
Expand Down

0 comments on commit b22cc53

Please sign in to comment.