Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into haskell-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sternenseemann committed Mar 30, 2022
2 parents b0d3044 + b61c4ac commit 7053070
Show file tree
Hide file tree
Showing 97 changed files with 1,422 additions and 455 deletions.
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14251,4 +14251,16 @@
github = "nigelgbanks";
githubId = 487373;
};
zanculmarktum = {
name = "Azure Zanculmarktum";
email = "[email protected]";
github = "zanculmarktum";
githubId = 16958511;
};
kuwii = {
name = "kuwii";
email = "[email protected]";
github = "kuwii";
githubId = 10705175;
};
}
9 changes: 9 additions & 0 deletions maintainers/team-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ with lib.maintainers; {
scope = "Maintain the Chia blockchain and its dependencies";
};

cosmopolitan = {
members = [
lourkeur
tomberek
];
scope = "Maintain the Cosmopolitan LibC and related programs.";
};

deshaw = {
# Verify additions to this team with at least one already existing member of the team.
members = [
Expand Down Expand Up @@ -117,6 +125,7 @@ with lib.maintainers; {

gnome = {
members = [
bobby285271
hedning
jtojnar
dasj19
Expand Down
7 changes: 7 additions & 0 deletions nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,13 @@
example.
</para>
</listitem>
<listitem>
<para>
<literal>pkgs.cosmopolitan</literal> no longer provides the
<literal>cosmoc</literal> command. It has been moved to
<literal>pkgs.cosmoc</literal>.
</para>
</listitem>
</itemizedlist>
</section>
<section xml:id="sec-release-22.05-notable-changes">
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2205.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ In addition to numerous new and upgraded packages, this release has the followin

See the `vscode` package for a more detailed example.

- `pkgs.cosmopolitan` no longer provides the `cosmoc` command. It has been moved to `pkgs.cosmoc`.

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

## Other Notable Changes {#sec-release-22.05-notable-changes}
Expand Down
3 changes: 3 additions & 0 deletions nixos/modules/services/backup/zrepl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ in
environment.etc."zrepl/zrepl.yml".source = configFile;

systemd.packages = [ pkgs.zrepl ];

# Note that pkgs.zrepl copies and adapts the upstream systemd unit, and
# the fields defined here only override certain fields from that unit.
systemd.services.zrepl = {
requires = [ "local-fs.target" ];
wantedBy = [ "zfs.target" ];
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -590,5 +590,6 @@ in
zigbee2mqtt = handleTest ./zigbee2mqtt.nix {};
zoneminder = handleTest ./zoneminder.nix {};
zookeeper = handleTest ./zookeeper.nix {};
zrepl = handleTest ./zrepl.nix {};
zsh-history = handleTest ./zsh-history.nix {};
}
66 changes: 66 additions & 0 deletions nixos/tests/zrepl.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import ./make-test-python.nix (
{
nodes.host = {config, pkgs, ...}: {
config = {
# Prerequisites for ZFS and tests.
boot.supportedFilesystems = [ "zfs" ];
environment.systemPackages = [ pkgs.zrepl ];
networking.hostId = "deadbeef";
services.zrepl = {
enable = true;
settings = {
# Enable Prometheus output for status assertions.
global.monitoring = [{
type = "prometheus";
listen = ":9811";
}];
# Create a periodic snapshot job for an ephemeral zpool.
jobs = [{
name = "snap_test";
type = "snap";

filesystems."test" = true;
snapshotting = {
type = "periodic";
prefix = "zrepl_";
interval = "1s";
};

pruning.keep = [{
type = "last_n";
count = 8;
}];
}];
};
};
};
};

testScript = ''
start_all()
with subtest("Wait for zrepl and network ready"):
host.wait_for_unit("network-online.target")
host.wait_for_unit("zrepl.service")
with subtest("Create test zpool"):
# ZFS requires 64MiB minimum pool size.
host.succeed("fallocate -l 64MiB /root/zpool.img")
host.succeed("zpool create test /root/zpool.img")
with subtest("Check for completed zrepl snapshot"):
# zrepl periodic snapshot job creates a snapshot with this prefix.
host.wait_until_succeeds("zfs list -t snapshot | grep -q zrepl_")
with subtest("Verify HTTP monitoring server is configured"):
out = host.succeed("curl -f localhost:9811/metrics")
assert (
"zrepl_version_daemon" in out
), "zrepl version metric was not found in Prometheus output"
assert (
"zrepl_zfs_snapshot_duration_count{filesystem=\"test\"}" in out
), "zrepl snapshot counter for test was not found in Prometheus output"
'';
})
9 changes: 5 additions & 4 deletions pkgs/applications/audio/gtkpod/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib, stdenv, fetchurl, pkg-config, wrapGAppsHook, intltool, libgpod, curl, flac,
gnome, gtk3, gettext, perlPackages, flex, libid3tag, gdl,
libvorbis, gdk-pixbuf }:
{ lib, stdenv, fetchurl, pkg-config, wrapGAppsHook, intltool, libgpod, libxml2, curl, flac
, gnome, gtk3, gettext, perlPackages, flex, libid3tag, gdl
, libvorbis, gdk-pixbuf
}:

stdenv.mkDerivation rec {
version = "2.1.5";
Expand All @@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ];
buildInputs = [
curl gettext
flex libgpod libid3tag flac libvorbis gtk3 gdk-pixbuf
flex libgpod libid3tag flac libvorbis libxml2 gtk3 gdk-pixbuf
gdl gnome.adwaita-icon-theme gnome.anjuta
] ++ (with perlPackages; [ perl XMLParser ]);

Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/audio/strawberry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
, protobuf
, sqlite
, taglib
, libgpod
, libpulseaudio
, libselinux
, libsepol
Expand Down Expand Up @@ -63,6 +64,7 @@ mkDerivation rec {
qtbase
qtx11extras
] ++ lib.optionals stdenv.isLinux [
libgpod
libpulseaudio
libselinux
libsepol
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/jetbrains/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let
dontAutoPatchelf = true;
postFixup = (attrs.postFixup or "") + optionalString (stdenv.isLinux) ''
(
cd $out/clion-${version}
cd $out/clion
# bundled cmake does not find libc
rm -rf bin/cmake/linux
ln -s ${cmake} bin/cmake/linux
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/graphics/drawing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, gdk-pixbuf
, pango
, gettext
, itstool
}:

python3.pkgs.buildPythonApplication rec {
Expand All @@ -38,6 +39,7 @@ python3.pkgs.buildPythonApplication rec {
wrapGAppsHook
glib
gettext
itstool
];

buildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/sane/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ installSanePath = path: ''
in
stdenv.mkDerivation {
name = "sane-config";
phases = "installPhase";
dontUnpack = true;

installPhase = ''
function symlink () {
Expand Down
9 changes: 7 additions & 2 deletions pkgs/applications/misc/1password/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@ stdenv.mkDerivation {
'';

installPhase = ''
runHook preInstall
install -D ${mainProgram} $out/bin/${mainProgram}
runHook postInstall
'';

postInstall = "installShellCompletion --cmd ${mainProgram}" + lib.concatMapStrings
(s: " --${s} <($out/bin/${mainProgram} completion ${s})") [ "bash" "fish" "zsh" ];
postInstall = ''
installShellCompletion --cmd ${mainProgram} \
--bash <($out/bin/${mainProgram} completion bash) \
--fish <($out/bin/${mainProgram} completion fish) \
--zsh <($out/bin/${mainProgram} completion zsh)
'';

dontStrip = stdenv.isDarwin;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/dasel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

buildGoModule rec {
pname = "dasel";
version = "1.24.0";
version = "1.24.1";

src = fetchFromGitHub {
owner = "TomWright";
repo = "dasel";
rev = "v${version}";
sha256 = "sha256-Em+WAI8G492h7FJTnTHFj5L7M4xBZhW4qC0MMc2JRUU=";
sha256 = "sha256-B6MWoGYNjFBUxnSqAXt2DRRjSlmgbqIC7qEoMFGQ+zU=";
};

vendorSha256 = "sha256-NP+Is7Dxz4LGzx5vpv8pJOJhodAYHia1JXYfhJD54as=";
Expand Down
Loading

0 comments on commit 7053070

Please sign in to comment.