Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- Loading branch information
Showing
101 changed files
with
6,356 additions
and
5,101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
|
||
cfg = config.services.novacomd; | ||
|
||
in { | ||
|
||
options = { | ||
services.novacomd = { | ||
enable = mkEnableOption "Novacom service for connecting to WebOS devices"; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
environment.systemPackages = [ pkgs.webos.novacom ]; | ||
|
||
systemd.services.novacomd = { | ||
description = "Novacom WebOS daemon"; | ||
wantedBy = [ "multi-user.target" ]; | ||
|
||
serviceConfig = { | ||
ExecStart = "${pkgs.webos.novacomd}/sbin/novacomd"; | ||
}; | ||
}; | ||
}; | ||
|
||
meta.maintainers = with maintainers; [ dtzWill ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import ./make-test.nix ({ pkgs, ...} : { | ||
name = "novacomd"; | ||
meta = with pkgs.stdenv.lib.maintainers; { | ||
maintainers = [ dtzWill ]; | ||
}; | ||
|
||
machine = { config, pkgs, ... }: { | ||
services.novacomd.enable = true; | ||
}; | ||
|
||
testScript = '' | ||
startAll; | ||
$machine->waitForUnit("novacomd.service"); | ||
# Check status and try connecting with novacom | ||
$machine->succeed("systemctl status novacomd.service >&2"); | ||
$machine->succeed("novacom -l"); | ||
# Stop the daemon, double-check novacom fails if daemon isn't working | ||
$machine->stopJob("novacomd"); | ||
$machine->fail("novacom -l"); | ||
# And back again for good measure | ||
$machine->startJob("novacomd"); | ||
$machine->succeed("novacom -l"); | ||
''; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import ./make-test.nix ({ pkgs, ... }: { | ||
name = "powerdns"; | ||
|
||
nodes.server = { config, pkgs, ... }: { | ||
services.powerdns.enable = true; | ||
}; | ||
|
||
testScript = '' | ||
$server->waitForUnit("pdns"); | ||
$server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1"); | ||
''; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ fetchFromGitHub, stdenv, pythonPackages | ||
, mp3Support ? true, lame ? null | ||
, opusSupport ? true, opusTools ? null | ||
, faacSupport ? false, faac ? null | ||
, flacSupport ? true, flac ? null | ||
, soxSupport ? true, sox ? null | ||
, vorbisSupport ? true, vorbisTools ? null | ||
}: | ||
|
||
assert mp3Support -> lame != null; | ||
assert opusSupport -> opusTools != null; | ||
assert faacSupport -> faac != null; | ||
assert flacSupport -> flac != null; | ||
assert soxSupport -> sox != null; | ||
assert vorbisSupport -> vorbisTools != null; | ||
|
||
pythonPackages.buildPythonApplication rec { | ||
pname = "pulseaudio-dlna"; | ||
version = "2017-11-01"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "masmu"; | ||
repo = "pulseaudio-dlna"; | ||
rev = "4472928dd23f274193f14289f59daec411023ab0"; | ||
sha256 = "1dfn7036vrq49kxv4an7rayypnm5dlawsf02pfsldw877hzdamqk"; | ||
}; | ||
|
||
# pulseaudio-dlna has no tests | ||
doCheck = false; | ||
|
||
propagatedBuildInputs = with pythonPackages; [ | ||
dbus-python docopt requests setproctitle protobuf psutil futures | ||
chardet notify2 netifaces pyroute2 pygobject2 lxml zeroconf ] | ||
++ stdenv.lib.optional mp3Support lame | ||
++ stdenv.lib.optional opusSupport opusTools | ||
++ stdenv.lib.optional faacSupport faac | ||
++ stdenv.lib.optional flacSupport flac | ||
++ stdenv.lib.optional soxSupport sox | ||
++ stdenv.lib.optional vorbisSupport vorbisTools; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A lightweight streaming server which brings DLNA / UPNP and Chromecast support to PulseAudio and Linux"; | ||
homepage = https://github.com/masmu/pulseaudio-dlna; | ||
|
||
license = licenses.gpl3Plus; | ||
|
||
maintainers = with maintainers; [ mog ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ buildPythonApplication rec { | |
six | ||
]; | ||
|
||
doCheck = false; | ||
|
||
checkInputs = [ mock ]; | ||
|
||
checkPhase = '' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.