Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into zalora
Browse files Browse the repository at this point in the history
Required fix in 2eaf8fd

Fixes NixOS#10
  • Loading branch information
shlevy committed Oct 29, 2014
2 parents d0ebc9b + a30e5e4 commit 2f93705
Show file tree
Hide file tree
Showing 104 changed files with 2,135 additions and 447 deletions.
5 changes: 5 additions & 0 deletions lib/licenses.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ rec {
fullName = "Common Development and Distribution License 1.0";
};

cecill20 = spdx {
shortName = "CECILL-2.0";
fullName = "CeCILL Free Software License Agreement v2.0";
};

cecill-b = spdx {
shortName = "CECILL-B";
fullName = "CeCILL-B Free Software License Agreement";
Expand Down
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>";
jcumming = "Jack Cummings <jack@mudshark.org>";
jgeerds = "Jascha Geerds <jg@ekby.de>";
jirkamarsik = "Jirka Marsik <jiri.marsik89@gmail.com>";
joamaki = "Jussi Maki <joamaki@gmail.com>";
joelteon = "Joel Taylor <me@joelt.io>";
jwiegley = "John Wiegley <johnw@newartisans.com>";
Expand Down
11 changes: 10 additions & 1 deletion nixos/modules/services/backup/rsnapshot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,20 @@ in
as retain options.
'';
};

package = mkOption {
type = types.package;
default = pkgs.rsnapshot;
example = literalExample "pkgs.rsnapshotGit";
description = ''
RSnapshot package to use.
'';
};
};
};

config = mkIf cfg.enable (let
myRsnapshot = pkgs.rsnapshot.override { configFile = rsnapshotCfg; };
myRsnapshot = cfg.package.override { configFile = rsnapshotCfg; };
rsnapshotCfg = with pkgs; writeText "gen-rsnapshot.conf" (''
config_version 1.2
cmd_cp ${coreutils}/bin/cp
Expand Down
6 changes: 3 additions & 3 deletions nixos/modules/services/x11/display-managers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ let
# Start PulseAudio if enabled.
${optionalString (config.hardware.pulseaudio.enable) ''
${optionalString (!config.hardware.pulseaudio.systemWide)
"${pkgs.pulseaudio}/bin/pulseaudio --start"
"${config.hardware.pulseaudio.package}/bin/pulseaudio --start"
}
# Publish access credentials in the root window.
${pkgs.pulseaudio}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
${config.hardware.pulseaudio.package}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
# Keep track of devices. Mostly useful for Phonon/KDE.
${pkgs.pulseaudio}/bin/pactl load-module module-device-manager "do_routing=1"
${config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
''}
# Load X defaults.
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/cantata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ assert withOnlineServices -> withTaglib;
assert withReplaygain -> withTaglib;

let
version = "1.4.2";
version = "1.5.0";
pname = "cantata";
fstat = x: fn: "-DENABLE_" + fn + "=" + (if x then "ON" else "OFF");
fstats = x: map (fstat x);
Expand All @@ -50,8 +50,8 @@ stdenv.mkDerivation rec {

src = fetchurl {
inherit name;
url = "https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60UDFOeU1qSkIzaVE";
sha256 = "0ycwx75f1jlsaca170bz82av06bnlknl3q0df001rhmhb7wh4j6c";
url = "https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60c0pFbEtldEk1UnM";
sha256 = "0gnqfp3ps79d500hrivxj2xkkia042knhg86md6w8ycl3945611p";
};

buildInputs =
Expand Down
13 changes: 13 additions & 0 deletions pkgs/applications/audio/chuck/darwin-limits.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/src/util_string.cpp 2014-10-27 22:52:11.875981552 +0100
+++ b/src/util_string.cpp 2014-10-27 22:54:18.613001994 +0100
@@ -40,6 +40,10 @@
#include <linux/limits.h>
#endif // __PLATFORM_LINUX__

+#ifdef __PLATFORM_MACOSX__
+#include <limits.h>
+#endif // __PLATFORM_MACOSX__
+
#include <stdio.h>
using namespace std;

38 changes: 38 additions & 0 deletions pkgs/applications/audio/chuck/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ stdenv, fetchurl, alsaLib, bison, flex, libsndfile, which }:

stdenv.mkDerivation rec {
version = "1.3.4.0";
name = "chuck-${version}";

src = fetchurl {
url = "http://chuck.cs.princeton.edu/release/files/chuck-${version}.tgz";
sha256 = "0cwbk8b1i18nkh2nxwzk2prranw83lgglxw7ccnp6b0r2b2yfpmn";
};

buildInputs = [ bison flex libsndfile which ]
++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib;

patches = [ ./darwin-limits.patch ];

postPatch = ''
substituteInPlace src/makefile --replace "/usr/bin" "$out/bin"
substituteInPlace src/makefile.osx --replace "xcodebuild" "/usr/bin/xcodebuild"
substituteInPlace src/makefile.osx --replace "weak_framework" "framework"
'';

buildPhase =
stdenv.lib.optionals stdenv.isLinux ["make -C src linux-alsa"] ++
stdenv.lib.optionals stdenv.isDarwin ["make -C src osx"];

installPhase = ''
install -Dm755 ./src/chuck $out/bin/chuck
'';

meta = {
description = "Programming language for real-time sound synthesis and music creation";
homepage = http://chuck.cs.princeton.edu;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; linux ++ darwin;
maintainers = with stdenv.lib.maintainers; [ ftrvxmtrx ];
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/hydrogen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
, liblrdf, libsndfile, pkgconfig, qt4 }:

stdenv.mkDerivation rec {
version = "0.9.6";
version = "0.9.6.1";
name = "hydrogen-${version}";

src = fetchurl {
url = "https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz";
sha256 = "1z7j8aq158mp41iv78j0w6fyx98y1y51z592b4x5hkvicabgck5w";
sha256 = "0vxnaqfmcv7hhk0cj67imdcqngspnck7f0wfmvhfgfqa7x1xznll";
};

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/emacs-modes/org/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
, texLiveAggregationFun }:

stdenv.mkDerivation rec {
name = "org-8.2.8";
name = "org-8.2.10";

src = fetchurl {
url = "http://orgmode.org/${name}.tar.gz";
sha256 = "0f63w6d1yjiv46ac7d9rqn2wks6sxmldrqmijd9j25qvsc8dcsd8";
sha256 = "1xm8n8zwr3676rl4pd32k61rd7rimlihhrw5a7r4z7r154c4a2fz";
};

buildInputs = [ emacs ];
Expand Down
29 changes: 29 additions & 0 deletions pkgs/applications/misc/doomseeker/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv, cmake, fetchurl, pkgconfig, qt4, zlib, bzip2 }:

stdenv.mkDerivation rec {
name = "doomseeker-0.12.1b";
src = fetchurl {
url = "http://doomseeker.drdteam.org/files/${name}_src.tar.bz2";
sha256 = "110yg3w3y1x8p4gqpxb6djxw348caj50q5liq8ssb5mf78v8gk6b";
};

cmakeFlags = ''
-DCMAKE_BUILD_TYPE=Release
'';

buildInputs = [ cmake pkgconfig qt4 zlib bzip2 ];

enableParallelBuilding = true;

patchPhase = ''
sed -e 's#/usr/share/applications#$out/share/applications#' -i src/core/CMakeLists.txt
'';

meta = {
homepage = http://doomseeker.drdteam.org/;
description = "Multiplayer server browser for many Doom source ports";
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ MP2E ];
};
}

6 changes: 3 additions & 3 deletions pkgs/applications/networking/bittorrentsync/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ let
else if stdenv.system == "i686-linux" then "i386"
else throw "Bittorrent Sync for: ${stdenv.system} not supported!";

sha256 = if stdenv.system == "x86_64-linux" then "115xsbi5z8ll0z07vx4rzzsgr6qba43f3z3nzx33pva5dpdr3ci9"
else if stdenv.system == "i686-linux" then "110k6cq6l3nr1gak2ri6i1kwis78r3zc1ilbipgcccdczf9fnx7p"
sha256 = if stdenv.system == "x86_64-linux" then "c4b100bbf8cda0334e20793e02bf400d15266cb9d089917bd2b6b9d49dd37d19"
else if stdenv.system == "i686-linux" then "5760471fcea396efd158758aa350b1c48a9d0633765a5e3b059baf8aeab615fa"
else throw "Bittorrent Sync for: ${stdenv.system} not supported!";

libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.libc ];
in
stdenv.mkDerivation rec {
name = "btsync-${version}";
version = "1.4.82";
version = "1.4.93";

src = fetchurl {
url = "http://syncapp.bittorrent.com/${version}/btsync_${arch}-${version}.tar.gz";
Expand Down
11 changes: 7 additions & 4 deletions pkgs/applications/networking/irc/quassel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
, ssl ? true # enable SSL support
, previews ? false # enable webpage previews on hovering over URLs
, tag ? "" # tag added to the package name
, stdenv, fetchurl, cmake, makeWrapper, qt4, kdelibs, automoc4, phonon, dconf }:
, stdenv, fetchurl, cmake, makeWrapper, qt, kdelibs, automoc4, phonon, dconf }:

assert monolithic -> !client && !daemon;
assert client || daemon -> !monolithic;

let
edf = flag: feature: [("-D" + feature + (if flag then "=ON" else "=OFF"))];

in with stdenv; mkDerivation rec {

version = "0.10.1";
version = "0.11.0";
name = "quassel${tag}-${version}";

src = fetchurl {
Expand All @@ -22,7 +25,7 @@ in with stdenv; mkDerivation rec {

enableParallelBuilding = true;

buildInputs = [ cmake makeWrapper qt4 ]
buildInputs = [ cmake makeWrapper qt ]
++ lib.optional withKDE kdelibs
++ lib.optional withKDE automoc4
++ lib.optional withKDE phonon;
Expand Down Expand Up @@ -63,6 +66,6 @@ in with stdenv; mkDerivation rec {
license = stdenv.lib.licenses.gpl3;
maintainers = [ maintainers.phreedom ];
repositories.git = https://github.com/quassel/quassel.git;
inherit (qt4.meta) platforms;
inherit (qt.meta) platforms;
};
}
Loading

0 comments on commit 2f93705

Please sign in to comment.