Merge staging-next into staging
This commit is contained in:
commit
09be4e7750
16 changed files with 1027 additions and 906 deletions
|
@ -229,7 +229,7 @@ in
|
||||||
grafana = 196;
|
grafana = 196;
|
||||||
skydns = 197;
|
skydns = 197;
|
||||||
# ripple-rest = 198; # unused, removed 2017-08-12
|
# ripple-rest = 198; # unused, removed 2017-08-12
|
||||||
nix-serve = 199;
|
# nix-serve = 199; # unused, removed 2020-12-12
|
||||||
tvheadend = 200;
|
tvheadend = 200;
|
||||||
uwsgi = 201;
|
uwsgi = 201;
|
||||||
gitit = 202;
|
gitit = 202;
|
||||||
|
|
|
@ -25,10 +25,9 @@ in {
|
||||||
default = [];
|
default = [];
|
||||||
example = "/run/keys/telegraf.env";
|
example = "/run/keys/telegraf.env";
|
||||||
description = ''
|
description = ''
|
||||||
File to load as environment file. Environment variables
|
File to load as environment file. Environment variables from this file
|
||||||
from this file will be interpolated into the config file
|
will be interpolated into the config file using envsubst with this
|
||||||
using envsubst with this syntax:
|
syntax: <literal>$ENVIRONMENT</literal> or <literal>''${VARIABLE}</literal>.
|
||||||
<literal>$ENVIRONMENT ''${VARIABLE}</literal>
|
|
||||||
This is useful to avoid putting secrets into the nix store.
|
This is useful to avoid putting secrets into the nix store.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -73,6 +72,7 @@ in {
|
||||||
ExecReload="${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecReload="${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
RuntimeDirectory = "telegraf";
|
RuntimeDirectory = "telegraf";
|
||||||
User = "telegraf";
|
User = "telegraf";
|
||||||
|
Group = "telegraf";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
# for ping probes
|
# for ping probes
|
||||||
AmbientCapabilities = [ "CAP_NET_RAW" ];
|
AmbientCapabilities = [ "CAP_NET_RAW" ];
|
||||||
|
@ -81,7 +81,10 @@ in {
|
||||||
|
|
||||||
users.users.telegraf = {
|
users.users.telegraf = {
|
||||||
uid = config.ids.uids.telegraf;
|
uid = config.ids.uids.telegraf;
|
||||||
|
group = "telegraf";
|
||||||
description = "telegraf daemon user";
|
description = "telegraf daemon user";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.groups.telegraf = {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,13 +69,9 @@ in
|
||||||
ExecStart = "${pkgs.nix-serve}/bin/nix-serve " +
|
ExecStart = "${pkgs.nix-serve}/bin/nix-serve " +
|
||||||
"--listen ${cfg.bindAddress}:${toString cfg.port} ${cfg.extraParams}";
|
"--listen ${cfg.bindAddress}:${toString cfg.port} ${cfg.extraParams}";
|
||||||
User = "nix-serve";
|
User = "nix-serve";
|
||||||
Group = "nogroup";
|
Group = "nix-serve";
|
||||||
|
DynamicUser = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.nix-serve = {
|
|
||||||
description = "Nix-serve user";
|
|
||||||
uid = config.ids.uids.nix-serve;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -296,6 +296,7 @@ in
|
||||||
nginx-sandbox = handleTestOn ["x86_64-linux"] ./nginx-sandbox.nix {};
|
nginx-sandbox = handleTestOn ["x86_64-linux"] ./nginx-sandbox.nix {};
|
||||||
nginx-sso = handleTest ./nginx-sso.nix {};
|
nginx-sso = handleTest ./nginx-sso.nix {};
|
||||||
nginx-variants = handleTest ./nginx-variants.nix {};
|
nginx-variants = handleTest ./nginx-variants.nix {};
|
||||||
|
nix-serve = handleTest ./nix-ssh-serve.nix {};
|
||||||
nix-ssh-serve = handleTest ./nix-ssh-serve.nix {};
|
nix-ssh-serve = handleTest ./nix-ssh-serve.nix {};
|
||||||
nixos-generate-config = handleTest ./nixos-generate-config.nix {};
|
nixos-generate-config = handleTest ./nixos-generate-config.nix {};
|
||||||
nomad = handleTest ./nomad.nix {};
|
nomad = handleTest ./nomad.nix {};
|
||||||
|
|
22
nixos/tests/nix-serve.nix
Normal file
22
nixos/tests/nix-serve.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
|
{
|
||||||
|
name = "nix-serve";
|
||||||
|
machine = { pkgs, ... }: {
|
||||||
|
services.nix-serve.enable = true;
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.hello
|
||||||
|
];
|
||||||
|
};
|
||||||
|
testScript = let
|
||||||
|
pkgHash = builtins.head (
|
||||||
|
builtins.match "${builtins.storeDir}/([^-]+).+" (toString pkgs.hello)
|
||||||
|
);
|
||||||
|
in ''
|
||||||
|
start_all()
|
||||||
|
machine.wait_for_unit("nix-serve.service")
|
||||||
|
machine.wait_for_open_port(5000)
|
||||||
|
machine.succeed(
|
||||||
|
"curl --fail -g http://0.0.0.0:5000/nar/${pkgHash}.nar -o /tmp/hello.nar"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
})
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "deltachat-electron";
|
pname = "deltachat-electron";
|
||||||
version = "1.15.5";
|
version = "1.20.3";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage";
|
url = "https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage";
|
||||||
sha256 = "sha256-BTGwgC0zSr1tq/X4v/fS/12E7/mGVYQ0m+Bt6o7VL4o=";
|
sha256 = "sha256-u0YjaXb+6BOBWaZANPcaxp7maqlBWAtecSsCGbr67dk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extract { inherit name src; };
|
appimageContents = appimageTools.extract { inherit name src; };
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
{ lib, stdenv, fetchgit, bison, flex }:
|
{ lib, stdenv, fetchFromGitHub, bison, flex }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pcalc";
|
pname = "pcalc";
|
||||||
version = "20141224";
|
version = "20181202";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "git://git.code.sf.net/p/pcalc/code";
|
owner = "vapier";
|
||||||
rev = "181d60d3c880da4344fef7138065943eb3b9255f";
|
repo = "pcalc";
|
||||||
sha256 = "1hd5bh20j5xzvv6qa0fmzmv0h8sf38r7zgi7y0b6nk17pjq33v90";
|
rev = "d93be9e19ecc0b2674cf00ec91cbb79d32ccb01d";
|
||||||
|
sha256 = "sha256-m4xdsEJGKxLgp/d5ipxQ+cKG3z7rlvpPL6hELnDu6Hk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
|
makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
|
||||||
buildInputs = [ bison flex ];
|
nativeBuildInputs = [ bison flex ];
|
||||||
|
|
||||||
meta = {
|
enableParallelBuilding = true;
|
||||||
homepage = "http://pcalc.sourceforge.net/";
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://vapier.github.io/pcalc/";
|
||||||
description = "Programmer's calculator";
|
description = "Programmer's calculator";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with lib.maintainers; [ ftrvxmtrx ];
|
maintainers = with lib.maintainers; [ ftrvxmtrx ];
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
, libX11
|
, libX11
|
||||||
, gtk2
|
, gtk2
|
||||||
, gtk3
|
, gtk3
|
||||||
|
, wrapGAppsHook
|
||||||
, withGtk3 ? true
|
, withGtk3 ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
intltool
|
intltool
|
||||||
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
|
@ -14,6 +14,17 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
autoprefixer = super.autoprefixer.override {
|
||||||
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram "$out/bin/autoprefixer" \
|
||||||
|
--prefix NODE_PATH : ${self.postcss}/lib/node_modules
|
||||||
|
'';
|
||||||
|
passthru.tests = {
|
||||||
|
simple-execution = pkgs.callPackage ./package-tests/autoprefixer.nix { inherit (self) autoprefixer; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
aws-azure-login = super.aws-azure-login.override {
|
aws-azure-login = super.aws-azure-login.override {
|
||||||
meta.platforms = pkgs.lib.platforms.linux;
|
meta.platforms = pkgs.lib.platforms.linux;
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
@ -262,7 +273,8 @@ let
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram "$out/bin/postcss" \
|
wrapProgram "$out/bin/postcss" \
|
||||||
--prefix NODE_PATH : ${self.postcss}/lib/node_modules
|
--prefix NODE_PATH : ${self.postcss}/lib/node_modules \
|
||||||
|
--prefix NODE_PATH : ${self.autoprefixer}/lib/node_modules
|
||||||
'';
|
'';
|
||||||
meta.mainProgram = "postcss";
|
meta.mainProgram = "postcss";
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
, "@webassemblyjs/wast-refmt"
|
, "@webassemblyjs/wast-refmt"
|
||||||
, "alloy"
|
, "alloy"
|
||||||
, "asar"
|
, "asar"
|
||||||
|
, "autoprefixer"
|
||||||
, "aws-azure-login"
|
, "aws-azure-login"
|
||||||
, "balanceofsatoshis"
|
, "balanceofsatoshis"
|
||||||
, "bash-language-server"
|
, "bash-language-server"
|
||||||
|
|
1804
pkgs/development/node-packages/node-packages.nix
generated
1804
pkgs/development/node-packages/node-packages.nix
generated
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,25 @@
|
||||||
|
{ runCommand, autoprefixer }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (autoprefixer) packageName version;
|
||||||
|
in
|
||||||
|
|
||||||
|
runCommand "${packageName}-tests" { meta.timeout = 60; }
|
||||||
|
''
|
||||||
|
# get version of installed program and compare with package version
|
||||||
|
claimed_version="$(${autoprefixer}/bin/autoprefixer --version | awk '{print $2}')"
|
||||||
|
if [[ "$claimed_version" != "${version}" ]]; then
|
||||||
|
echo "Error: program version does not match package version ($claimed_version != ${version})"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# run dummy commands
|
||||||
|
${autoprefixer}/bin/autoprefixer --help > /dev/null
|
||||||
|
${autoprefixer}/bin/autoprefixer --info > /dev/null
|
||||||
|
|
||||||
|
# Testing the actual functionality is done in the test for postcss
|
||||||
|
# because autoprefixer is a postcss plugin
|
||||||
|
|
||||||
|
# needed for Nix to register the command as successful
|
||||||
|
touch $out
|
||||||
|
''
|
|
@ -60,7 +60,7 @@ buildPythonPackage rec {
|
||||||
--deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes \
|
--deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes \
|
||||||
--deselect=cherrypy/test/test_tools.py::ToolTests::testCombinedTools \
|
--deselect=cherrypy/test/test_tools.py::ToolTests::testCombinedTools \
|
||||||
${lib.optionalString stdenv.isDarwin
|
${lib.optionalString stdenv.isDarwin
|
||||||
"--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block"}
|
"--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block --deselect=cherrypy/test/test_config_server.py"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
|
@ -77,5 +77,6 @@ stdenv.mkDerivation rec {
|
||||||
description = "An implementation of the standard Unix documentation system accessed using the man command";
|
description = "An implementation of the standard Unix documentation system accessed using the man command";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
|
mainProgram = "man";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
{ lib, stdenv, fetchFromGitHub,
|
{ lib
|
||||||
bzip2, nix, perl, makeWrapper,
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, bzip2
|
||||||
|
, nix
|
||||||
|
, perl
|
||||||
|
, makeWrapper
|
||||||
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -30,6 +36,8 @@ stdenv.mkDerivation {
|
||||||
--add-flags $out/libexec/nix-serve/nix-serve.psgi
|
--add-flags $out/libexec/nix-serve/nix-serve.psgi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.nix-serve = nixosTests.nix-serve;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/edolstra/nix-serve";
|
homepage = "https://github.com/edolstra/nix-serve";
|
||||||
description = "A utility for sharing a Nix store as a binary cache";
|
description = "A utility for sharing a Nix store as a binary cache";
|
||||||
|
|
|
@ -38,5 +38,6 @@ in stdenv.mkDerivation rec {
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ peti Frostman ];
|
maintainers = with maintainers; [ peti Frostman ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = with platforms; linux ++ darwin;
|
||||||
|
mainProgram = "smartctl";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue