Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Oct 8, 2017
2 parents ca72096 + eedc4e5 commit 4003e77
Show file tree
Hide file tree
Showing 45 changed files with 466 additions and 230 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -41,6 +41,7 @@
amorsillo = "Andrew Morsillo <andrew.morsillo@gmail.com>";
AndersonTorres = "Anderson Torres <torres.anderson.85@gmail.com>";
anderspapitto = "Anders Papitto <anderspapitto@gmail.com>";
andir = "Andreas Rammhold <andreas@rammhold.de>";
andres = "Andres Loeh <ksnixos@andres-loeh.de>";
andrewrk = "Andrew Kelley <superjoe30@gmail.com>";
andsild = "Anders Sildnes <andsild@gmail.com>";
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-1803.xml
Expand Up @@ -71,6 +71,8 @@ following incompatible changes:</para>
<itemizedlist>
<listitem>
<para>
ZNC option <option>services.znc.mutable</option> now defaults to <literal>true</literal>.
That means that old configuration is not overwritten by default when update to the znc options are made.
</para>
</listitem>
</itemizedlist>
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/network-filesystems/kbfs.nix
Expand Up @@ -55,6 +55,7 @@ in {
Restart = "on-failure";
PrivateTmp = true;
};
wantedBy = [ "default.target" ];
};

services.keybase.enable = true;
Expand Down
3 changes: 2 additions & 1 deletion nixos/modules/services/networking/keybase.nix
Expand Up @@ -28,11 +28,12 @@ in {
description = "Keybase service";
serviceConfig = {
ExecStart = ''
${pkgs.keybase}/bin/keybase service
${pkgs.keybase}/bin/keybase -d service --auto-forked
'';
Restart = "on-failure";
PrivateTmp = true;
};
wantedBy = [ "default.target" ];
};

environment.systemPackages = [ pkgs.keybase ];
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/znc.nix
Expand Up @@ -329,7 +329,7 @@ in
};

mutable = mkOption {
default = false;
default = true;
type = types.bool;
description = ''
Indicates whether to allow the contents of the `dataDir` directory to be changed
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/tasks/powertop.nix
Expand Up @@ -16,6 +16,7 @@ in {
powertop = {
wantedBy = [ "multi-user.target" ];
description = "Powertop tunings";
path = [ pkgs.kmod ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = "yes";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/altcoins/bitcoin-abc.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
, zlib, miniupnpc, qt5, utillinux, protobuf, qrencode, libevent
, zlib, miniupnpc, qtbase ? null , qttools ? null, utillinux, protobuf, qrencode, libevent
, withGui }:

with stdenv.lib;
Expand All @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ openssl db48 boost zlib
miniupnpc utillinux protobuf libevent ]
++ optionals withGui [ qt5.qtbase qt5.qttools qrencode ];
++ optionals withGui [ qtbase qttools qrencode ];

configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt5" ];
Expand Down
8 changes: 5 additions & 3 deletions pkgs/applications/altcoins/bitcoin-classic.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
, zlib, miniupnpc, qtbase ? null, qttools ? null, utillinux, protobuf, qrencode, libevent
, withGui }:

with stdenv.lib;
Expand All @@ -16,13 +16,15 @@ stdenv.mkDerivation rec {
sha256 = "129gkg035gv7zmc463jl2spvdh0fl4q8v4jdaslfnp34hbwi1p07";
};

patches = [ ./fix-bitcoin-qt-build.patch ];

nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ openssl db48 boost zlib
miniupnpc utillinux protobuf libevent ]
++ optionals withGui [ qt4 qrencode ];
++ optionals withGui [ qtbase qttools qrencode ];

configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ];
++ optionals withGui [ "--with-gui=qt5" ];

meta = {
description = "Peer-to-peer electronic cash system (Classic client)";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/altcoins/default.nix
@@ -1,17 +1,17 @@
{ callPackage, boost155, boost162, boost163, openssl_1_1_0, haskellPackages, darwin }:
{ callPackage, boost155, boost162, boost163, openssl_1_1_0, haskellPackages, darwin, libsForQt5 }:

rec {

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

bitcoin-abc = callPackage ./bitcoin-abc.nix { withGui = true; };
bitcoin-abc = libsForQt5.callPackage ./bitcoin-abc.nix { withGui = true; };
bitcoind-abc = callPackage ./bitcoin-abc.nix { withGui = false; };

bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = true; };
bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = false; };

bitcoin-classic = callPackage ./bitcoin-classic.nix { withGui = true; };
bitcoin-classic = libsForQt5.callPackage ./bitcoin-classic.nix { withGui = true; };
bitcoind-classic = callPackage ./bitcoin-classic.nix { withGui = false; };

bitcoin-xt = callPackage ./bitcoin-xt.nix { withGui = true; };
Expand Down
96 changes: 96 additions & 0 deletions pkgs/applications/audio/radiotray-ng/default.nix
@@ -0,0 +1,96 @@
{ stdenv, fetchFromGitHub, fetchpatch
, cmake, pkgconfig
# Transport
, curl
# Libraries
, boost
, jsoncpp
, libbsd
, pcre
# GUI/Desktop
, dbus
, glibmm
, gnome3
, hicolor_icon_theme
, libappindicator-gtk3
, libnotify
, libxdg_basedir
# GStreamer
, gst_all_1
# User-agent info
, lsb-release
# rt2rtng
, python2
# Testing
, gmock
# Fixup
, wrapGAppsHook
, makeWrapper
}:

let
gstInputs = with gst_all_1; [
gstreamer gst-plugins-base
gst-plugins-good gst-plugins-bad gst-plugins-ugly
gst-libav
];
# For the rt2rtng utility for converting bookmark file to -ng format
pythonInputs = with python2.pkgs; [ python2 lxml ];
in
stdenv.mkDerivation rec {
name = "radiotray-ng-${version}";
version = "0.1.7";

src = fetchFromGitHub {
owner = "ebruck";
repo = "radiotray-ng";
rev = "v${version}";
sha256 = "1m853gzh9r249crn0xyrq22x154r005j58b0kq3nsrgi5cps2zdv";
};

nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook makeWrapper ];

buildInputs = [
curl
boost jsoncpp libbsd pcre
glibmm hicolor_icon_theme gnome3.gsettings_desktop_schemas libappindicator-gtk3 libnotify
libxdg_basedir
lsb-release
] ++ stdenv.lib.optional doCheck gmock
++ gstInputs
++ pythonInputs;

prePatch = ''
substituteInPlace debian/CMakeLists.txt \
--replace /usr $out
substituteInPlace include/radiotray-ng/common.hpp \
--replace /usr $out
'';

patches = [
(fetchpatch {
# Fix menu separators and minor touchup to 'version'
url = "https://github.com/ebruck/radiotray-ng/commit/827e9f1baaa03ab4d8a5fb3aab043e72950eb965.patch";
sha256 = "1aykl6lq4pga34xg5r9mc616gxnd63q6gr8qzg57w6874cj3csrr";
})
];

enableParallelBuilding = true;

doCheck = true;

checkPhase = "ctest";

preFixup = ''
gappsWrapperArgs+=(--suffix PATH : ${stdenv.lib.makeBinPath [ dbus ]})
wrapProgram $out/bin/rt2rtng --prefix PYTHONPATH : $PYTHONPATH
'';

meta = with stdenv.lib; {
description = "An internet radio player for linux";
homepage = https://github.com/ebruck/radiotray-ng;
license = licenses.gpl3;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;
};
}
72 changes: 51 additions & 21 deletions pkgs/applications/audio/sonic-pi/default.nix
@@ -1,49 +1,52 @@
{ stdenv
, fetchFromGitHub
, qscintilla
, supercollider
, fftwSinglePrec
, ruby
, libffi
, aubio
, cmake
, pkgconfig
, qt48Full
, qt5
, libsForQt5
, boost
, bash
, makeWrapper
, jack2Full
}:

stdenv.mkDerivation rec {
version = "2.9.0";
let
supercollider = libsForQt5.callPackage ../../../development/interpreters/supercollider {
fftw = fftwSinglePrec;
};

in stdenv.mkDerivation rec {
version = "3.0.1";
name = "sonic-pi-${version}";

src = fetchFromGitHub {
owner = "samaaron";
repo = "sonic-pi";
rev = "v${version}";
sha256 = "19db5dxrf6h1v2w3frds5g90nb6izd9ppp7cs2xi6i0m67l6jrwb";
sha256 = "1l1892hijp1dj2h799sfjr699q6xp660n0siibab5kv238521a81";
};

buildInputs = [
bash
cmake
makeWrapper
pkgconfig
qscintilla
qt48Full
qt5.qtbase
libsForQt5.qscintilla
libsForQt5.qwt
ruby
libffi
aubio
supercollider
boost
];

meta = {
homepage = http://sonic-pi.net/;
description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.Phlogistique ];
platforms = stdenv.lib.platforms.linux;
};

dontUseCmakeConfigure = true;

patches = [ ./fixed-prefixes.patch ];

preConfigure = ''
patchShebangs .
substituteInPlace app/gui/qt/mainwindow.cpp \
Expand All @@ -52,18 +55,45 @@ stdenv.mkDerivation rec {
'';

buildPhase = ''
export SONIC_PI_HOME=$TMPDIR
export AUBIO_LIB=${aubio}/lib/libaubio.so
pushd app/server/bin
./compile-extensions.rb
./i18n-tool.rb -t
popd
pushd app/gui/qt
./rp-build-app
cp -f ruby_help.tmpl ruby_help.h
../../server/bin/qt-doc.rb -o ruby_help.h
substituteInPlace SonicPi.pro \
--replace "LIBS += -lrt -lqt5scintilla2" \
"LIBS += -lrt -lqscintilla2 -lqwt"
lrelease SonicPi.pro
qmake SonicPi.pro
make
popd
'';

installPhase = ''
runHook preInstall
cp -r . $out
wrapProgram $out/bin/sonic-pi --prefix PATH : \
${ruby}/bin:${bash}/bin
wrapProgram $out/bin/sonic-pi \
--prefix PATH : ${ruby}/bin:${bash}/bin:${supercollider}/bin:${jack2Full}/bin \
--set AUBIO_LIB "${aubio}/lib/libaubio.so"
runHook postInstall
'';

meta = {
homepage = http://sonic-pi.net/;
description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ Phlogistique kamilchm ];
platforms = stdenv.lib.platforms.linux;
};
}
36 changes: 0 additions & 36 deletions pkgs/applications/audio/sonic-pi/fixed-prefixes.patch

This file was deleted.

6 changes: 3 additions & 3 deletions pkgs/applications/editors/atom/beta.nix
@@ -1,12 +1,12 @@
{ stdenv, pkgs, fetchurl, lib, makeWrapper, gvfs, atomEnv}:

stdenv.mkDerivation rec {
name = "atom-${version}";
version = "1.21.0-beta0";
name = "atom-beta-${version}";
version = "1.22.0-beta0";

src = fetchurl {
url = "https://github.com/atom/atom/releases/download/v${version}/atom-amd64.deb";
sha256 = "1syxlyb62vp9hmjdiazhmvq8w52b90l8mvf502xkdav4vi3yxzfz";
sha256 = "0xsj0vvaxjw60gg6niaws2lf9lkrh1sz7ypk41g6l4hdgmqyg6fi";
name = "${name}.deb";
};

Expand Down

0 comments on commit 4003e77

Please sign in to comment.