Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát 2016-08-20 18:01:36 +02:00
commit cdb44a4ada
16 changed files with 232 additions and 40 deletions

View File

@ -26,6 +26,15 @@ stdenv.mkDerivation rec {
${optionalString enableTiny "--enable-tiny"}
'';
patchFlags = [ "-p0" ];
patches = optional stdenv.isDarwin
(fetchurl {
name = "darwin.patch";
url = "https://trac.macports.org/browser/trunk/dports/editors/nano/files/patch-src-winio.c.diff?rev=151356&format=txt";
sha256 = "184q33irz9px2svwr2qx70zvfby5zlwlhv4k607yzsy90fq2jpdd";
});
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace src/text.c --replace "__time_t" "time_t"
'';

View File

@ -1,4 +1,4 @@
{ newScope, stdenv, makeWrapper, makeDesktopItem, writeScript
{ newScope, stdenv, makeWrapper, makeDesktopItem, ed
# package customization
, channel ? "stable"
@ -66,38 +66,36 @@ let
in stdenv.mkDerivation {
name = "chromium${suffix}-${chromium.browser.version}";
buildInputs = [ makeWrapper ];
buildInputs = [ makeWrapper ed ];
outputs = ["out" "sandbox"];
buildCommand = let
browserBinary = "${chromium.browser}/libexec/chromium/chromium";
getWrapperFlags = plugin: "$(< \"${plugin}/nix-support/wrapper-flags\")";
launchScript = writeScript "chromium" ''
#! ${stdenv.shell}
in with stdenv.lib; ''
mkdir -p "$out/bin" "$out/share/applications"
ln -s "${chromium.browser}/share" "$out/share"
eval makeWrapper "${browserBinary}" "$out/bin/chromium" \
${concatMapStringsSep " " getWrapperFlags chromium.plugins.enabled}
ed -v -s "$out/bin/chromium" << EOF
2i
if [ -x "/var/setuid-wrappers/${sandboxExecutableName}" ]
then
export CHROME_DEVEL_SANDBOX="/var/setuid-wrappers/${sandboxExecutableName}"
else
export CHROME_DEVEL_SANDBOX="@sandbox@/bin/${sandboxExecutableName}"
export CHROME_DEVEL_SANDBOX="$sandbox/bin/${sandboxExecutableName}"
fi
# libredirect causes chromium to deadlock on startup
export LD_PRELOAD="$(echo -n "$LD_PRELOAD" | tr ':' '\n' | grep -v /lib/libredirect\\.so$ | tr '\n' ':')"
export LD_PRELOAD="\$(echo -n "\$LD_PRELOAD" | tr ':' '\n' | grep -v /lib/libredirect\\\\.so$ | tr '\n' ':')"
exec @out@/bin/.chromium-wrapped "''${extraFlagsArray[@]}" "$@"
'';
in with stdenv.lib; ''
mkdir -p "$out/bin" "$out/share/applications"
ln -s "${chromium.browser}/share" "$out/share"
eval makeWrapper "${browserBinary}" "$out/bin/.chromium-wrapped" \
${concatMapStringsSep " " getWrapperFlags chromium.plugins.enabled}
cp -v "${launchScript}" "$out/bin/chromium"
substituteInPlace $out/bin/chromium --subst-var out --subst-var sandbox
chmod 755 "$out/bin/chromium"
.
w
EOF
ln -sv "${chromium.browser.sandbox}" "$sandbox"

View File

@ -36,10 +36,7 @@ in customEmacsPackages.emacsWithPackages (epkgs: [ epkgs.evil epkgs.magit ])
with lib; let inherit (self) emacs; in
{
packagesFun ? [], # packages explicitly requested by the user
extraStart ? ""
}:
packagesFun: # packages explicitly requested by the user
let
explicitRequires =
@ -56,7 +53,7 @@ stdenv.mkDerivation {
# Store all paths we want to add to emacs here, so that we only need to add
# one path to the load lists
deps = runCommand "emacs-packages-deps"
{ inherit explicitRequires lndir emacs extraStart; }
{ inherit explicitRequires lndir emacs; }
''
mkdir -p $out/bin
mkdir -p $out/share/emacs/site-lisp
@ -99,7 +96,6 @@ stdenv.mkDerivation {
(load-file "$emacs/share/emacs/site-lisp/site-start.el")
(add-to-list 'load-path "$out/share/emacs/site-lisp")
(add-to-list 'exec-path "$out/bin")
$extraStart
EOF
# Byte-compiling improves start-up time only slightly, but costs nothing.

View File

@ -4,8 +4,8 @@
let
major = "0.32";
minor = "0";
sha256 = "0vpvq403vdd25irvgk7zibz3nw4x4i17m0dgnns8j1q4vr7am8h7";
minor = "1";
sha256 = "1ab1l44abf9fj1wznzq5956431ia136rl5049cggnk5393jlf3fx";
in
stdenv.mkDerivation rec {
name = "vala-${major}.${minor}";
@ -27,4 +27,5 @@ stdenv.mkDerivation rec {
buildInputs = [ glib libiconv ]
++ libintlOrEmpty;
}

View File

@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "cxx-prettyprint-unstable-${version}";
version = "2016-04-30";
rev = "9ab26d228f2960f50b38ad37fe0159b7381f7533";
src = fetchFromGitHub {
owner = "louisdx";
repo = "cxx-prettyprint";
inherit rev;
sha256 = "1bp25yw8fb0mi432f72ihfxfj887gi36b36fpv677gawm786l7p1";
};
installPhase = ''
mkdir -p "$out/include"
cp prettyprint.hpp "$out/include"
'';
meta = with stdenv.lib; {
description = "Header only C++ library for pretty printing standard containers";
homepage = https://github.com/louisdx/cxx-prettyprint;
license = stdenv.lib.licenses.boost;
platforms = platforms.all;
# This is a header-only library, no point in hydra building it:
hydraPlatforms = [];
};
}

View File

@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
"--builtin-libraries=replace"
];
postInstall = ''
ar qf $out/lib/libtalloc.a bin/default/talloc_[0-9]*.o
'';
meta = with stdenv.lib; {
description = "Hierarchical pool based memory allocator with destructors";
homepage = http://tdb.samba.org/;

View File

@ -0,0 +1,10 @@
--- a/CMakeLists.txt 2016-07-13 14:27:26.000000000 +0200
+++ b/CMakeLists.txt 2016-08-16 12:58:28.135652964 +0200
@@ -6,6 +6,7 @@
CMAKE_POLICY(SET CMP0002 OLD)
CMAKE_POLICY(SET CMP0003 OLD)
CMAKE_POLICY(SET CMP0005 OLD)
+ CMAKE_POLICY(SET CMP0037 OLD)
ENDIF(COMMAND CMAKE_POLICY)
PROJECT(WT)

View File

@ -0,0 +1,40 @@
{stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu,
pango, fcgi, firebird, libmysql, postgresql, graphicsmagick, glew, openssl,
pcre }:
stdenv.mkDerivation rec {
name = "wt";
version = "3.3.6";
src = fetchFromGitHub {
owner = "kdeforche";
repo = name;
rev = version;
sha256 = "1pvykc969l9cpd0da8bgpi4gr8f6qczrbpprrxamyj1pn0ydzvq3";
};
enableParallelBuilding = true;
buildInputs = [ cmake boost pkgconfig doxygen qt48Full libharu
pango fcgi firebird libmysql postgresql graphicsmagick glew
openssl pcre ];
cmakeFlags = [
"-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
"-DWT_CPP_11_MODE=-std=c++11"
"-DGM_PREFIX=${graphicsmagick}"
"-DMYSQL_PREFIX=${libmysql}"
"--no-warn-unused-cli"
];
patches = [ ./cmake.patch ]; # fix a cmake warning; PR sent to upstream
meta = with stdenv.lib; {
homepage = "https://www.webtoolkit.eu/wt";
description = "C++ library for developing web applications";
platforms = platforms.linux ;
license = licenses.gpl2;
maintainers = [ maintainers.juliendehos ];
};
}

View File

@ -0,0 +1,25 @@
{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "leaps-${version}";
version = "20160626-${stdenv.lib.strings.substring 0 7 rev}";
rev = "5cf7328a8c498041d2a887e89f22f138498f4621";
goPackagePath = "github.com/jeffail/leaps";
src = fetchgit {
inherit rev;
url = "https://github.com/jeffail/leaps";
sha256 = "1qbgz48x9yi0w9yz39zsnnhx5nx2xmrns9v8hx28jah2bvag6sq7";
fetchSubmodules = false;
};
goDeps = ./deps.json;
meta = {
description = "A pair programming tool and library written in Golang";
homepage = "https://github.com/jeffail/leaps/";
license = "MIT";
maintainers = with stdenv.lib.maintainers; [ qknight ];
meta.platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -0,0 +1,11 @@
[
{
"goPackagePath": "golang.org/x/net",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/net",
"rev": "07b51741c1d6423d4a6abab1c49940ec09cb1aaf",
"sha256": "12lvdj0k2gww4hw5f79qb9yswqpy4i3bgv1likmf3mllgdxfm20w"
}
}
]

View File

@ -1,5 +1,7 @@
{ stdenv, fetchurl, fetchzip, pkgconfig, SDL, libpng, zlib, xz, freetype, fontconfig
, withOpenGFX ? true, withOpenSFX ? true, withOpenMSX ? true
, withFluidSynth ? true, audioDriver ? "alsa", fluidsynth, soundfont-fluid, procps
, writeScriptBin, makeWrapper
}:
let
@ -18,6 +20,12 @@ let
sha256 = "0qnmfzz0v8vxrrvxnm7szphrlrlvhkwn3y92b4iy0b4b6yam0yd4";
};
playmidi = writeScriptBin "playmidi" ''
#!/bin/sh
trap "${procps}/bin/pkill fluidsynth" EXIT
${fluidsynth}/bin/fluidsynth -a ${audioDriver} -i ${soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2 $*
'';
in
stdenv.mkDerivation rec {
name = "openttd-${version}";
@ -28,8 +36,9 @@ stdenv.mkDerivation rec {
sha256 = "1ak32fj5xkk2fvmm3g8i7wzmk4bh2ijsp8fzvvw5wj6365p9j24v";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ SDL libpng xz zlib freetype fontconfig ];
nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs = [ SDL libpng xz zlib freetype fontconfig ]
++ stdenv.lib.optional withFluidSynth [ fluidsynth soundfont-fluid ];
prefixKey = "--prefix-dir=";
@ -52,8 +61,16 @@ stdenv.mkDerivation rec {
cp ${opensfx}/*.{obs,cat} $out/share/games/openttd/data
''}
mkdir $out/share/games/openttd/baseset/openmsx
${stdenv.lib.optionalString withOpenMSX ''
cp ${openmsx}/*.{obm,mid} $out/share/games/openttd/data
cp ${openmsx}/*.{obm,mid} $out/share/games/openttd/baseset/openmsx
''}
${stdenv.lib.optionalString withFluidSynth ''
wrapProgram $out/bin/openttd \
--add-flags -m \
--add-flags extmidi:cmd=${playmidi}/bin/playmidi
''}
'';

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "emby-${version}";
version = "3.0.6060";
version = "3.0.6070";
src = fetchurl {
url = "https://github.com/MediaBrowser/Emby/archive/${version}.tar.gz";
sha256 = "1s895198x3kiqfznhp56vj67wld9fgh2wd7k8hw69mrasby0kmp3";
sha256 = "1szxqyr1pj90dfz9ga8ddcipzidm3ajinyp1vngzvwqcsdb7dxc5";
};
propagatedBuildInputs = with pkgs; [

View File

@ -12,13 +12,13 @@ stdenv.mkDerivation rec {
owner = "cedric-vincent";
};
buildInputs = [ talloc ];
buildInputs = [ talloc ] ++ stdenv.lib.optional enableStatic stdenv.cc.libc.static;
nativeBuildInputs = [ docutils ];
enableParallelBuilding = true;
preBuild = stdenv.lib.optionalString enableStatic ''
export LDFLAGS="-static -L${talloc}/lib"
export LDFLAGS="-static"
'';
makeFlags = [ "-C src" ];

View File

@ -7084,6 +7084,8 @@ in
cwiid = callPackage ../development/libraries/cwiid { };
cxx-prettyprint = callPackage ../development/libraries/cxx-prettyprint { };
cyrus_sasl = callPackage ../development/libraries/cyrus-sasl {
kerberos = if stdenv.isFreeBSD then libheimdal else kerberos;
};
@ -9717,6 +9719,8 @@ in
wiredtiger = callPackage ../development/libraries/wiredtiger { };
wt = callPackage ../development/libraries/wt { };
wvstreams = callPackage ../development/libraries/wvstreams { };
wxGTK = wxGTK28;
@ -9983,6 +9987,8 @@ in
go2nix = callPackage ../development/tools/go2nix { };
leaps = callPackage ../development/tools/leaps { };
### DEVELOPMENT / LISP MODULES
asdf = callPackage ../development/lisp-modules/asdf {

View File

@ -489,6 +489,54 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
# };
# };
GitVersionTree = buildDotnetPackage rec {
baseName = "GitVersionTree";
version = "2013-10-01";
src = fetchFromGitHub {
owner = "crc8";
repo = "GitVersionTree";
rev = "58dc39c43cffea44f721ee4425835e56518f7da2";
sha256 = "0mna5pkpqkdr5jgn8paz004h1pa24ncsvmi2c8s4gp94nfw34x05";
};
buildInputs = with pkgs; [ ed ];
postPatch = ''
ed -v -p: -s GitVersionTree/Program.cs << EOF
/Main()
c
static void Main(string[] args)
.
/EnableVisualStyles
i
Reg.Write("GitPath", "${pkgs.gitMinimal}/bin/git");
Reg.Write("GraphvizPath", "${pkgs.graphviz}/bin/dot");
if (args.Length > 0) {
Reg.Write("GitRepositoryPath", args[0]);
}
.
w
EOF
substituteInPlace GitVersionTree/Forms/MainForm.cs \
--replace 'Directory.GetParent(Application.ExecutablePath)' 'Environment.CurrentDirectory' \
--replace '\\' '/' \
--replace '@"\"' '"/"'
'';
outputFiles = [ "GitVersionTree/bin/Release/*" ];
exeFiles = [ "GitVersionTree.exe" ];
meta = with stdenv.lib; {
description = "A tool to help visualize git revisions and branches";
homepage = https://github.com/crc8/GitVersionTree;
license = licenses.gpl2;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
};
};
MathNetNumerics = buildDotnetPackage rec {
baseName = "MathNet.Numerics";
version = "3.7.0";

View File

@ -63,7 +63,7 @@ let
inherit fetchurl lib stdenv texinfo;
};
emacsWrapper = import ../build-support/emacs/wrapper.nix {
emacsWithPackages = import ../build-support/emacs/wrapper.nix {
inherit lib lndir makeWrapper stdenv runCommand;
};
@ -71,9 +71,7 @@ let
inherit emacs melpaBuild trivialBuild;
emacsWrapper = emacsWrapper self;
emacsWithPackages = packagesFun: emacsWrapper { inherit packagesFun; };
emacsWithPackages = emacsWithPackages self;
## START HERE