Skip to content

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Nov 28, 2017
2 parents d70d5c9 + 2e55aec commit addd20e
Show file tree
Hide file tree
Showing 56 changed files with 782 additions and 540 deletions.
2 changes: 1 addition & 1 deletion doc/languages-frameworks/haskell.md
Expand Up @@ -48,7 +48,7 @@ trouble with packages like `3dmodels` and `4Blocks`, because these names are
invalid identifiers in the Nix language. The issue of how to deal with these
rare corner cases is currently unresolved.)

Haskell packages who's Nix name (second column) begins with a `haskell-` prefix
Haskell packages whose Nix name (second column) begins with a `haskell-` prefix
are packages that provide a library whereas packages without that prefix
provide just executables. Libraries may provide executables too, though: the
package `haskell-pandoc`, for example, installs both a library and an
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/monitoring/grafana.nix
Expand Up @@ -111,7 +111,7 @@ in {
type = mkOption {
description = "Database type.";
default = "sqlite3";
type = types.enum ["mysql" "sqlite3" "postgresql"];
type = types.enum ["mysql" "sqlite3" "postgres"];
};

host = mkOption {
Expand Down
9 changes: 5 additions & 4 deletions nixos/modules/services/security/clamav.nix
Expand Up @@ -76,8 +76,9 @@ in
};
};

config = mkIf cfg.updater.enable or cfg.daemon.enable {
config = mkIf (cfg.updater.enable || cfg.daemon.enable) {
environment.systemPackages = [ pkg ];

users.extraUsers = singleton {
name = clamavUser;
uid = config.ids.uids.clamav;
Expand All @@ -94,7 +95,7 @@ in
environment.etc."clamav/freshclam.conf".source = freshclamConfigFile;
environment.etc."clamav/clamd.conf".source = clamdConfigFile;

systemd.services.clamav-daemon = mkIf cfg.daemon.enable {
systemd.services.clamav-daemon = optionalAttrs cfg.daemon.enable {
description = "ClamAV daemon (clamd)";
after = mkIf cfg.updater.enable [ "clamav-freshclam.service" ];
requires = mkIf cfg.updater.enable [ "clamav-freshclam.service" ];
Expand All @@ -115,7 +116,7 @@ in
};
};

systemd.timers.clamav-freshclam = mkIf cfg.updater.enable {
systemd.timers.clamav-freshclam = optionalAttrs cfg.updater.enable {
description = "Timer for ClamAV virus database updater (freshclam)";
wantedBy = [ "timers.target" ];
timerConfig = {
Expand All @@ -124,7 +125,7 @@ in
};
};

systemd.services.clamav-freshclam = mkIf cfg.updater.enable {
systemd.services.clamav-freshclam = optionalAttrs cfg.updater.enable {
description = "ClamAV virus database updater (freshclam)";
restartTriggers = [ freshclamConfigFile ];

Expand Down
4 changes: 3 additions & 1 deletion pkgs/applications/altcoins/zcash/default.nix
Expand Up @@ -18,7 +18,9 @@ stdenv.mkDerivation rec {
sha256 = "19bxhdnkvgncgl9x6nbaf5nwgrdfw99icvdbi9adfh646pd5z64s";
};

enableParallelBuilding = true;
# Dependencies are underspecified: "make -C src gtest/zcash_gtest-test_merkletree.o"
# fails with "fatal error: test/data/merkle_roots.json.h: No such file or directory"
enableParallelBuilding = false;

nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ gtest gmock gmp libsnark openssl wget db62 boost zlib
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/nano/default.nix
Expand Up @@ -20,11 +20,11 @@ let

in stdenv.mkDerivation rec {
name = "nano-${version}";
version = "2.9.0";
version = "2.9.1";

src = fetchurl {
url = "mirror://gnu/nano/${name}.tar.xz";
sha256 = "17hjgvig59a2ha2b0494bprrci3d33sayjqvxjhsnlzgr8whrlyj";
sha256 = "0z5sxji8jh8sh0g3inbzndhsrbm4qyqlvjrxl5wkxbr61lnxa5k3";
};

nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/jgmenu/default.nix
Expand Up @@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
name = "jgmenu-${version}";
version = "0.7.4";
version = "0.7.5";

src = fetchFromGitHub {
owner = "johanmalm";
repo = "jgmenu";
rev = "v${version}";
sha256 = "0vim7balxrxhbgq4jvf80lbh57xbw3qmhapy7n2iyv443ih4a7hi";
sha256 = "1gml2g711pr6wakznlxjrlmz8kylkv0ydpvv0jx2y5qczp3rwk3a";
};

nativeBuildInputs = [
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/mupdf/default.nix
Expand Up @@ -64,6 +64,12 @@ in stdenv.mkDerivation rec {
url = "http://git.ghostscript.com/?p=mupdf.git;a=patch;h=82df2631d7d0446b206ea6b434ea609b6c28b0e8";
sha256 = "04kfww7y0wazg6372g44fa2k5kiiigq4616ihkvmp18rz86903n9";
})

(fetchurl {
name = "mupdf-1.11-CVE-2017-15369.patch";
url = "http://git.ghostscript.com/?p=mupdf.git;a=patch;h=c2663e51238ec8256da7fc61ad580db891d9fe9a";
sha256 = "0xx2mrbjcymi3gh0l3cq81m6bygp9dv79v1kyrbcvpl5z6wgl71y";
})
];

postPatch = ''
Expand Down
@@ -1,10 +1,10 @@
{ stdenv, fetchurl, dpkg, makeWrapper
, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, glib, glibc, gnome2, libsecret
, libnotify, nspr, nss, systemd, xorg, libv4l, libstdcxx5 }:
, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, glib, glibc, gnome2
, libnotify, libpulseaudio, libsecret, libstdcxx5, libv4l, nspr, nss, systemd, xorg }:

let

version = "5.5.0.1";
version = "8.11.0.4";

rpath = stdenv.lib.makeLibraryPath [
alsaLib
Expand All @@ -17,9 +17,8 @@ let
fontconfig
freetype
glib
libsecret
glibc
libstdcxx5
libsecret

gnome2.GConf
gnome2.gdk_pixbuf
Expand All @@ -29,10 +28,12 @@ let
gnome2.gnome_keyring

libnotify
libpulseaudio
nspr
nss
stdenv.cc.cc
systemd
libstdcxx5
libv4l

xorg.libxkbfile
Expand All @@ -54,7 +55,7 @@ let
if stdenv.system == "x86_64-linux" then
fetchurl {
url = "https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_${version}_amd64.deb";
sha256 = "1r65qlsjwp0n0fmlhvbp71h03b3x73r26jk9f4q687sjqnzmkvcr";
sha256 = "1dq7k4zlqqsx7786phialia5xbpc3cp1wrjhqrvga09yg4dl505c";
}
else
throw "Skype for linux is not supported on ${stdenv.system}";
Expand Down Expand Up @@ -82,8 +83,8 @@ in stdenv.mkDerivation {

postFixup = ''
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* -or -name \*.node\* \) ); do
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
patchelf --set-rpath ${rpath}:$out/share/skypeforlinux $file || true
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
patchelf --set-rpath ${rpath}:$out/share/skypeforlinux $file || true
done
ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
Expand All @@ -92,15 +93,13 @@ in stdenv.mkDerivation {
substituteInPlace $out/share/applications/skypeforlinux.desktop \
--replace /usr/bin/ $out/bin/ \
--replace /usr/share/ $out/share/
'';

meta = with stdenv.lib; {
description = "Linux client for skype";
homepage = https://www.skype.com;
license = licenses.unfree;
maintainers = with stdenv.lib.maintainers; [ panaeon ];
maintainers = with stdenv.lib.maintainers; [ panaeon jraygauthier ];
platforms = [ "x86_64-linux" ];
};
}

4 changes: 3 additions & 1 deletion pkgs/applications/science/logic/acgtk/default.nix
Expand Up @@ -27,9 +27,11 @@ stdenv.mkDerivation {
patches = [ ./install-emacs-to-site-lisp.patch
./use-nix-ocaml-byteflags.patch ];

postPatch = stdenv.lib.optionalString (camlp4 != null) ''
postPatch = optionalString (camlp4 != null) ''
substituteInPlace src/Makefile.master.in \
--replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4/"
'' + optionalString (versionAtLeast (stdenv.lib.getVersion ocamlPackages.yojson) "1.4") ''
substituteInPlace src/scripting/Makefile.in --replace yojson.cmo yojson.cma
'';

# The bytecode executable is dependent on the dynamic library provided by
Expand Down
5 changes: 2 additions & 3 deletions pkgs/applications/version-management/gource/default.nix
Expand Up @@ -19,8 +19,7 @@ stdenv.mkDerivation rec {

configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];

NIX_CFLAGS_COMPILE = "-fpermissive " + # fix build with newer gcc versions
"-std=c++11"; # fix build with glm >= 0.9.6.0
enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = http://gource.io/;
Expand All @@ -36,7 +35,7 @@ stdenv.mkDerivation rec {
Mercurial and Bazaar and SVN. Gource can also parse logs produced
by several third party tools for CVS repositories.
'';
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};
}
28 changes: 28 additions & 0 deletions pkgs/data/fonts/iosevka/bin.nix
@@ -0,0 +1,28 @@
{ stdenv, fetchzip }:

let
version = "1.13.3";
in fetchzip rec {
name = "iosevka-bin-${version}";

url = "https://github.com/be5invis/Iosevka/releases/download/v${version}/iosevka-pack-${version}.zip";

postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttc -d $out/share/fonts/iosevka
'';

sha256 = "0103rjxcp2sis42xp7fh7g8i03h5snvs8n78lgsf79g8ssw0p9d4";

meta = with stdenv.lib; {
homepage = https://be5invis.github.io/Iosevka/;
downloadPage = "https://github.com/be5invis/Iosevka/releases";
description = ''
Slender monospace sans-serif and slab-serif typeface inspired by Pragmata
Pro, M+ and PF DIN Mono, designed to be the ideal font for programming.
'';
license = licenses.ofl;
platforms = platforms.all;
maintainers = [ maintainers.cstrahan ];
};
}
27 changes: 27 additions & 0 deletions pkgs/data/fonts/tlwg/default.nix
@@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, autoreconfHook, fontforge }:

stdenv.mkDerivation rec {
name = "tlwg-${version}";
version = "0.6.4";

src = fetchFromGitHub {
owner = "tlwg";
repo = "fonts-tlwg";
rev = "v${version}";
sha256 = "13bx98ygyyizb15ybdv3856lkxhx1fss8f7aiqmp0lk9zgw4mqyk";
};

nativeBuildInputs = [ autoreconfHook ];

buildInputs = [ fontforge ];

preAutoreconf = "echo ${version} > VERSION";

meta = with stdenv.lib; {
description = "A collection of Thai scalable fonts available under free licenses";
homepage = https://linux.thai.net/projects/fonts-tlwg;
license = with licenses; [ gpl2 publicDomain lppl13c free ];
platforms = platforms.unix;
maintainers = [ maintainers.yrashk ];
};
}
4 changes: 2 additions & 2 deletions pkgs/desktops/enlightenment/efl.nix
Expand Up @@ -8,11 +8,11 @@

stdenv.mkDerivation rec {
name = "efl-${version}";
version = "1.20.5";
version = "1.20.6";

src = fetchurl {
url = "http://download.enlightenment.org/rel/libs/efl/${name}.tar.xz";
sha256 = "07624c71l9d1jx1zvdhwkr1bgb1n7i0i5hyg6579zdwl3jw6jpns";
sha256 = "1h9jkb1pkp2g6ld7ra9mxgblx3x5id4162ja697klx9mfjkpxijn";
};

nativeBuildInputs = [ pkgconfig ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/enlightenment/enlightenment.nix
Expand Up @@ -6,11 +6,11 @@

stdenv.mkDerivation rec {
name = "enlightenment-${version}";
version = "0.22.0";
version = "0.22.1";

src = fetchurl {
url = "http://download.enlightenment.org/rel/apps/enlightenment/${name}.tar.xz";
sha256 = "0xmrvryr35idd7fyqgshfhvy2053bs3vwrxbx681pi6rgpdvjghv";
sha256 = "1q57fz57d0b26z06m1wiq7c1sniwh885b0vs02mk4jgwva46nyr0";
};

nativeBuildInputs = [
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/llvm/4/llvm.nix
Expand Up @@ -24,6 +24,11 @@
let
src = fetch "llvm" "0l9bf7kdwhlj0kq1hawpyxhna1062z3h7qcz2y8nfl9dz2qksy6s";

aarch64Patch = fetchpatch {
url = https://reviews.llvm.org/file/data/2oqw5rhhklsapbjrhlpd/PHID-FILE-lvo4fcs6hjvkxb5wneg2/D40423.diff;
sha256 = "0b0h7n7lxw33pn2j061hm9050zn263gmiig937g5cmcvjimxlybb";
};

# Used when creating a version-suffixed symlink of libLLVM.dylib
shortVersion = with stdenv.lib;
concatStringsSep "." (take 2 (splitString "." release_version));
Expand Down Expand Up @@ -81,6 +86,8 @@ in stdenv.mkDerivation rec {
substituteInPlace lib/esan/esan_sideline_linux.cpp \
--replace 'struct sigaltstack' 'stack_t'
)
'' + stdenv.lib.optionalString stdenv.isAarch64 ''
patch -p0 < ${aarch64Patch}
'';

# hacky fix: created binaries need to be run before installation
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/llvm/5/llvm.nix
Expand Up @@ -24,6 +24,11 @@
let
src = fetch "llvm" "1nin64vz21hyng6jr19knxipvggaqlkl2l9jpd5czbc4c2pcnpg3";

aarch64Patch = fetchpatch {
url = https://reviews.llvm.org/file/data/2oqw5rhhklsapbjrhlpd/PHID-FILE-lvo4fcs6hjvkxb5wneg2/D40423.diff;
sha256 = "0b0h7n7lxw33pn2j061hm9050zn263gmiig937g5cmcvjimxlybb";
};

# Used when creating a version-suffixed symlink of libLLVM.dylib
shortVersion = with stdenv.lib;
concatStringsSep "." (take 2 (splitString "." release_version));
Expand Down Expand Up @@ -75,6 +80,8 @@ in stdenv.mkDerivation rec {
# Revert compiler-rt commit that makes codesign mandatory
patch -p1 -i ${./compiler-rt-codesign.patch} -d projects/compiler-rt
'' + stdenv.lib.optionalString stdenv.isAarch64 ''
patch -p0 < ${aarch64Patch}
'';

# hacky fix: created binaries need to be run before installation
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/obliv-c/default.nix
Expand Up @@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "0jz2ayadx62zv2b5ji947bkvw63axl4a2q70lwli86zgmcl390gf";
};

patches = [ ./ignore-complex-float128.patch ];

preBuild = ''
patchShebangs .
'';
Expand Down
37 changes: 37 additions & 0 deletions pkgs/development/compilers/obliv-c/ignore-complex-float128.patch
@@ -0,0 +1,37 @@
--- a/src/frontc/clexer.mll
+++ b/src/frontc/clexer.mll
@@ -134,9 +134,11 @@ let init_lexicon _ =
(* WW: see /usr/include/sys/cdefs.h for why __signed and __volatile
* are accepted GCC-isms *)
("_Bool", fun loc -> BOOL loc);
+ ("_Complex", fun loc -> COMPLEX loc);
("char", fun loc -> CHAR loc);
("int", fun loc -> INT loc);
("float", fun loc -> FLOAT loc);
+ ("__float128", fun loc -> FLOAT128 loc);
("double", fun loc -> DOUBLE loc);
("void", fun loc -> VOID loc);
("enum", fun loc -> ENUM loc);
--- a/src/frontc/cparser.mly
+++ b/src/frontc/cparser.mly
@@ -269,6 +269,8 @@ let oblivState (s:statement): statement =
%token<Cabs.cabsloc> VOLATILE EXTERN STATIC CONST RESTRICT AUTO REGISTER FROZEN
%token<Cabs.cabsloc> THREAD

+%token<Cabs.cabsloc> COMPLEX FLOAT128
+
%token<Cabs.cabsloc> SIZEOF ALIGNOF

%token EQ PLUS_EQ MINUS_EQ STAR_EQ SLASH_EQ PERCENT_EQ
@@ -1002,7 +1004,11 @@ type_spec: /* ISO 6.7.2 */
| LONG { Tlong, $1 }
| INT64 { Tint64, $1 }
| FLOAT { Tfloat, $1 }
+| FLOAT128 { Tfloat, $1 }
| DOUBLE { Tdouble, $1 }
+| COMPLEX FLOAT { Tfloat, $2 }
+| COMPLEX FLOAT128{ Tfloat, $2 }
+| COMPLEX DOUBLE { Tdouble, $2 }
| SIGNED { Tsigned, $1 }
| UNSIGNED { Tunsigned, $1 }
| STRUCT id_or_typename

0 comments on commit addd20e

Please sign in to comment.