Skip to content

Commit

Permalink
Merge master into haskell-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 2, 2023
2 parents 2056957 + 93f0dfd commit 6153510
Show file tree
Hide file tree
Showing 188 changed files with 1,413 additions and 724 deletions.
2 changes: 1 addition & 1 deletion doc/languages-frameworks/python.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ with a nix-shell that has `numpy` and `toolz` in Python 3.9; then we will create
a re-usable environment in a single-file Python script; then we will create a
full Python environment for development with this same environment.

Philosphically, this should be familiar to users who are used to a `venv` style
Philosophically, this should be familiar to users who are used to a `venv` style
of development: individual projects create their own Python environments without
impacting the global environment or each other.

Expand Down
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11511,6 +11511,12 @@
githubId = 3737;
name = "Peter Jones";
};
phip1611 = {
email = "[email protected]";
github = "phip1611";
githubId = 5737016;
name = "Philipp Schuster";
};
pkharvey = {
email = "[email protected]";
github = "pkharvey";
Expand Down
1 change: 1 addition & 0 deletions maintainers/scripts/eval-release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let
if (builtins.tryEval attrs.drvPath).success
then { inherit (attrs) name drvPath; }
else { failed = true; }
else if attrs == null then {}
else { recurseForDerivations = true; } //
mapAttrs (n: v: let path' = path ++ [n]; in trace path' (recurse path' v)) attrs
else { };
Expand Down
3 changes: 0 additions & 3 deletions nixos/modules/services/audio/hqplayerd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ in
etc = {
"hqplayer/hqplayerd.xml" = mkIf (cfg.config != null) { source = pkgs.writeText "hqplayerd.xml" cfg.config; };
"hqplayer/hqplayerd4-key.xml" = mkIf (cfg.licenseFile != null) { source = cfg.licenseFile; };
"modules-load.d/taudio2.conf".source = "${pkg}/etc/modules-load.d/taudio2.conf";
};
systemPackages = [ pkg ];
};
Expand All @@ -91,8 +90,6 @@ in
allowedTCPPorts = [ 8088 4321 ];
};

services.udev.packages = [ pkg ];

systemd = {
tmpfiles.rules = [
"d ${configDir} 0755 hqplayer hqplayer - -"
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/hardware/throttled.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ in {
config = mkIf cfg.enable {
systemd.packages = [ pkgs.throttled ];
# The upstream package has this in Install, but that's not enough, see the NixOS manual
systemd.services.lenovo_fix.wantedBy = [ "multi-user.target" ];
systemd.services.throttled.wantedBy = [ "multi-user.target" ];

environment.etc."throttled.conf".source =
if cfg.extraConfig != ""
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/monitoring/prometheus/exporters.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ let
"rspamd"
"rtl_433"
"script"
"shelly"
"snmp"
"smartctl"
"smokeping"
Expand Down
27 changes: 27 additions & 0 deletions nixos/modules/services/monitoring/prometheus/exporters/shelly.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ config, lib, pkgs, options }:

with lib;

let
cfg = config.services.prometheus.exporters.shelly;
in
{
port = 9784;
extraOpts = {
metrics-file = mkOption {
type = types.path;
description = lib.mdDoc ''
Path to the JSON file with the metric definitions
'';
};
};
serviceOpts = {
serviceConfig = {
ExecStart = ''
${pkgs.prometheus-shelly-exporter}/bin/shelly_exporter \
-metrics-file ${cfg.metrics-file} \
-listen-address ${cfg.listenAddress}:${toString cfg.port}
'';
};
};
}
1 change: 1 addition & 0 deletions nixos/modules/services/networking/avahi-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ in
BusName = "org.freedesktop.Avahi";
Type = "dbus";
ExecStart = "${pkgs.avahi}/sbin/avahi-daemon --syslog -f ${avahiDaemonConf}";
ConfigurationDirectory = "avahi/services";
};
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/virtualisation/amazon-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ in {
options = {
mount = lib.mkOption {
description = lib.mdDoc "Where to mount this dataset.";
type = types.nullOr types.string;
type = types.nullOr types.str;
default = null;
};

properties = lib.mkOption {
description = lib.mdDoc "Properties to set on this dataset.";
type = types.attrsOf types.string;
type = types.attrsOf types.str;
default = {};
};
};
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/virtualisation/openstack-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ in
options = {
mount = lib.mkOption {
description = lib.mdDoc "Where to mount this dataset.";
type = types.nullOr types.string;
type = types.nullOr types.str;
default = null;
};

properties = lib.mkOption {
description = lib.mdDoc "Properties to set on this dataset.";
type = types.attrsOf types.string;
type = types.attrsOf types.str;
default = { };
};
};
Expand Down
8 changes: 3 additions & 5 deletions nixos/tests/apfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
with subtest("Enable case sensitivity and normalization sensitivity"):
machine.succeed(
"mkapfs -s -z /dev/vdb",
# Triggers a bug, see https://github.com/linux-apfs/linux-apfs-rw/issues/15
# "mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
"mount -o readwrite /dev/vdb /tmp/mnt",
"mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
"echo 'Hello World 1' > /tmp/mnt/test.txt",
"[ ! -f /tmp/mnt/TeSt.TxT ] || false", # Test case sensitivity
"echo 'Hello World 1' | diff - /tmp/mnt/test.txt",
Expand All @@ -36,13 +34,13 @@ import ./make-test-python.nix ({ pkgs, ... }: {
with subtest("Disable case sensitivity and normalization sensitivity"):
machine.succeed(
"mkapfs /dev/vdb",
"mount -o readwrite /dev/vdb /tmp/mnt",
"mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
"echo 'bla bla bla' > /tmp/mnt/Test.txt",
"echo -n 'Hello World' > /tmp/mnt/test.txt",
"echo ' 1' >> /tmp/mnt/TEST.TXT",
"umount /tmp/mnt",
"apfsck /dev/vdb",
"mount -o readwrite /dev/vdb /tmp/mnt",
"mount -o cknodes,readwrite /dev/vdb /tmp/mnt",
"echo 'Hello World 1' | diff - /tmp/mnt/TeSt.TxT", # Test case insensitivity
"echo 'Hello World 2' > /tmp/mnt/\u0061\u0301.txt",
"echo 'Hello World 2' | diff - /tmp/mnt/\u0061\u0301.txt",
Expand Down
14 changes: 14 additions & 0 deletions nixos/tests/prometheus-exporters.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,20 @@ let
'';
};

shelly = {
exporterConfig = {
enable = true;
metrics-file = "${pkgs.writeText "test.json" ''{}''}";
};
exporterTest = ''
wait_for_unit("prometheus-shelly-exporter.service")
wait_for_open_port(9784)
wait_until_succeeds(
"curl -sSf 'localhost:9784/metrics'"
)
'';
};

script = {
exporterConfig = {
enable = true;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/jmusicbot/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, makeWrapper, jre }:
{ stdenv, lib, fetchurl, makeWrapper, jre_headless }:

stdenv.mkDerivation rec {
pname = "JMusicBot";
Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/lib
cp $src $out/lib/JMusicBot
makeWrapper ${jre}/bin/java $out/bin/JMusicBot \
makeWrapper ${jre_headless}/bin/java $out/bin/JMusicBot \
--add-flags "-Xmx1G -Dnogui=true -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -jar $out/lib/JMusicBot"
'';

Expand All @@ -27,6 +27,6 @@ stdenv.mkDerivation rec {
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
platforms = platforms.all;
inherit (jre_headless.meta) platforms;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/lsp-plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

stdenv.mkDerivation rec {
pname = "lsp-plugins";
version = "1.2.4";
version = "1.2.5";

src = fetchurl {
url = "https://github.com/sadko4u/${pname}/releases/download/${version}/${pname}-src-${version}.tar.gz";
sha256 = "sha256-GTrcUy10bN9Xj2I7uuGyP82c6NVpnQbXTI85H231yyo=";
sha256 = "sha256-YYrt+FbpY7iEui0aw4Ce94BW1SHDk0OH8gFSzkW2fkw=";
};

nativeBuildInputs = [ pkg-config php makeWrapper ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/musikcube/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, gnutls
, lame
, libev
, libgme
, game-music-emu
, libmicrohttpd
, libopenmpt
, mpg123
Expand Down Expand Up @@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
gnutls
lame
libev
libgme
game-music-emu
libmicrohttpd
libopenmpt
mpg123
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/osdlyrics/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

stdenv.mkDerivation rec {
pname = "osdlyrics";
version = "0.5.12";
version = "0.5.13";

src = fetchFromGitHub {
owner = "osdlyrics";
repo = "osdlyrics";
rev = version;
sha256 = "sha256-QGgwxmurdwo0xyq7p+1xditRebv64ewGTvNJI7MUnq4=";
sha256 = "sha256-E4pVXopqQYJW+a5nUf9dMabxJ9nYPu3C2ti8LlY470c=";
};

nativeBuildInputs = [
Expand Down
38 changes: 38 additions & 0 deletions pkgs/applications/audio/pianotrans/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib
, fetchFromGitHub
, python3
, ffmpeg
}:

python3.pkgs.buildPythonApplication rec {
pname = "pianotrans";
version = "1.0";
format = "setuptools";

src = fetchFromGitHub {
owner = "azuwis";
repo = pname;
rev = "v${version}";
hash = "sha256-6Otup1Yat1dBZdSoR4lDfpytUQ2RbDXC6ieo835Nw+U=";
};

propagatedBuildInputs = with python3.pkgs; [
piano-transcription-inference
torch
tkinter
];

# Project has no tests
doCheck = false;

makeWrapperArgs = [
''--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"''
];

meta = with lib; {
description = "Simple GUI for ByteDance's Piano Transcription with Pedals";
homepage = "https://github.com/azuwis/pianotrans";
license = licenses.mit;
maintainers = with maintainers; [ azuwis ];
};
}
12 changes: 6 additions & 6 deletions pkgs/applications/audio/yesplaymusic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
, systemd
}:
let
pname = "YesPlayMusic";
version = "0.4.5";
pname = "yesplaymusic";
version = "0.4.7";

srcs = {
x86_64-linux = fetchurl {
url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/yesplaymusic_${version}_amd64.deb";
hash = "sha256-igd2MzIjwDSOLP0Xi2mSJnEPGWendggPC/MwTDCDui0=";
hash = "sha256-nnnHE2OgIqoz3dC+G0219FVBhvnWivLW1BX6+NYo6Ng=";
};
aarch64-linux = fetchurl {
url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/yesplaymusic_${version}_arm64.deb";
hash = "sha256-6MZrAJGXuEJ9HMUje3ppTz2rdaBydwoQKBk6af81pT0=";
hash = "sha256-+rrhY5iDDt/nYs0Vz5/Ef0sgpsdBKMtb1aVfCZLgRgg=";
};
x86_64-darwin = fetchurl {
url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/YesPlayMusic-mac-${version}-x64.dmg";
hash = "sha256-mvmaSrDoIDeOVylkJCVY97yRUHfEI8CysmKrgBUrFGM=";
hash = "sha256-z8CASZRWKlj1g3mhxTMMeR4klTvQ2ReSrL7Rt18qQbM=";
};
aarch64-darwin = fetchurl {
url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/YesPlayMusic-mac-${version}-arm64.dmg";
hash = "sha256-Qo03rGS/qB6Sc1IunU7F81WJ/t+mWR7ZRsKYK97LHik=";
hash = "sha256-McYLczudKG4tRNIw/Ws4rht0n4tiKA2M99yKtJbdlY8=";
};
};
src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/blockchains/chia-dev-tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ python3Packages.buildPythonApplication rec {

propagatedBuildInputs = with python3Packages; [
(toPythonModule chia)
pytest # required at runtime by the "test" command
pytest-asyncio
pytimeparse
];

nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-asyncio
];

preCheck = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/blockchains/erigon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

let
pname = "erigon";
version = "2.35.2";
version = "2.37.0";
in
buildGoModule {
inherit pname version;
Expand All @@ -11,11 +11,11 @@ buildGoModule {
owner = "ledgerwatch";
repo = pname;
rev = "v${version}";
sha256 = "sha256-hGJ9SeUYACOuypTJmPnrv4f8ujjsUt3dZbwso+94g3M=";
sha256 = "sha256-r/mumt/f0wrOsXyEHo/NX0lJGt8zqXEVNC+9DWDkHAM=";
fetchSubmodules = true;
};

vendorSha256 = "sha256-lKzJLRCcyhQIV7y1XxqbvTINLlUwWFnflZgGQHYzBjY=";
vendorSha256 = "sha256-vSJZ1wIx1CiLE04ZBDnQDQqM2v8BBLxw5qbAsixC3/U=";
proxyVendor = true;

# Build errors in mdbx when format hardening is enabled:
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/editors/glow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

buildGoModule rec {
pname = "glow";
version = "1.4.1";
version = "1.5.0";

src = fetchFromGitHub {
owner = "charmbracelet";
repo = "glow";
rev = "v${version}";
sha256 = "0m673xf67q9gjhd98ysh3dvwiqbj6lgsbm20c4zxyz76vdn5k6x8";
sha256 = "sha256-CI0S9XJtJQClpQvI6iSb5rcHafEUwr2V6+Fq560lRfM=";
};

vendorSha256 = "0ngasfcimizahm80gflxzz3cxz0ir10l62i03l73w8syx4wll0q4";
vendorHash = "sha256-2QrHBbhJ04r/vPK2m8J2KZSFrREDCc18tlKd7evghBc=";

doCheck = false;

Expand Down
Loading

0 comments on commit 6153510

Please sign in to comment.