Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 17, 2023
2 parents c5541dd + 0f3ccf8 commit c88f934
Show file tree
Hide file tree
Showing 64 changed files with 26,732 additions and 3,054 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/services/development/zammad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ in
preStart = ''
# Blindly copy the whole project here.
chmod -R +w .
rm -rf ./public/assets/*
rm -rf ./public/assets/
rm -rf ./tmp/*
rm -rf ./log/*
cp -r --no-preserve=owner ${cfg.package}/* .
Expand Down
16 changes: 9 additions & 7 deletions nixos/modules/services/networking/syncthing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ let
deviceID = device.id;
}) cfg.settings.devices;

folders = mapAttrsToList (_: folder: folder // {
folders = mapAttrsToList (_: folder: folder //
throwIf (folder?rescanInterval || folder?watch || folder?watchDelay) ''
The options services.syncthing.settings.folders.<name>.{rescanInterval,watch,watchDelay}
were removed. Please use, respectively, {rescanIntervalS,fsWatcherEnabled,fsWatcherDelayS} instead.
'' {
devices = map (device:
if builtins.isString device then
{ deviceId = cfg.settings.devices.${device}.id; }
Expand Down Expand Up @@ -121,10 +125,9 @@ in {
description = mdDoc ''
The options element contains all other global configuration options
'';
type = types.attrsOf (types.submodule ({ name, ... }: {
type = types.submodule ({ name, ... }: {
freeformType = settingsFormat.type;
options = {

localAnnounceEnabled = mkOption {
type = types.bool;
default = true;
Expand Down Expand Up @@ -176,7 +179,7 @@ in {
'';
};
};
}));
});
};

# device settings
Expand Down Expand Up @@ -344,6 +347,7 @@ in {
]
'';
type = with types; nullOr (submodule {
freeformType = settingsFormat.type;
options = {
type = mkOption {
type = enum [ "external" "simple" "staggered" "trashcan" ];
Expand Down Expand Up @@ -609,9 +613,7 @@ in {
];
};
};
syncthing-init = mkIf (
cfg.settings.devices != {} || cfg.folders != {} || cfg.extraOptions != {}
) {
syncthing-init = mkIf (cfg.settings != {}) {
description = "Syncthing configuration updater";
requisite = [ "syncthing.service" ];
after = [ "syncthing.service" ];
Expand Down
5 changes: 5 additions & 0 deletions nixos/tests/syncthing-init.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ in {
services.syncthing = {
enable = true;
settings = {
options.crashReportingEnabled = false;
devices.testDevice = {
id = testId;
};
folders.testFolder = {
path = "/tmp/test";
devices = [ "testDevice" ];
versioning = {
type = "simple";
params.keep = "10";
};
};
gui.user = "guiUser";
};
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/zammad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ./make-test-python.nix (
{
name = "zammad";

meta.maintainers = with lib.maintainers; [ garbas taeer ];
meta.maintainers = with lib.maintainers; [ garbas taeer n0emis ];

nodes.machine = { config, ... }: {
services.zammad.enable = true;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/audio/mopidy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ lib.makeScope newScope (self: with self; {

mopidy-soundcloud = callPackage ./soundcloud.nix { };

mopidy-spotify = callPackage ./spotify.nix { };

mopidy-tidal = callPackage ./tidal.nix { };

mopidy-tunein = callPackage ./tunein.nix { };
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/audio/mopidy/mopidy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pythonPackages.buildPythonApplication rec {
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gst-plugins-rs
];

propagatedBuildInputs = [
Expand Down
31 changes: 31 additions & 0 deletions pkgs/applications/audio/mopidy/spotify.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib, fetchFromGitHub, pythonPackages, mopidy }:

pythonPackages.buildPythonApplication rec {
pname = "mopidy-spotify";
version = "unstable-2023-04-21";

src = fetchFromGitHub {
owner = "mopidy";
repo = "mopidy-spotify";
rev = "984151ac96c5f9c35892055bff20cc11f46092d5";
hash = "sha256-4e9Aj0AOFR4/FK54gr1ZyPt0nYZDMrMetV4FPtBxapU=";
};

propagatedBuildInputs = [
mopidy
pythonPackages.responses
];

nativeBuildInputs = [
pythonPackages.pytestCheckHook
];

pythonImportsCheck = [ "mopidy_spotify" ];

meta = with lib; {
homepage = "https://github.com/mopidy/mopidy-spotify";
description = "Mopidy extension for playing music from Spotify";
license = licenses.asl20;
maintainers = with maintainers; [ lilyinstarlight ];
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/editors/android-studio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let
inherit tiling_wm;
};
stableVersion = {
version = "2022.2.1.18"; # "Android Studio Flamingo (2022.2.1)"
sha256Hash = "sha256-zdhSxEmbX3QC30Tfxp6MpBj/yaaEyqs0BHR2/SyyTvw=";
version = "2022.2.1.19"; # "Android Studio Flamingo (2022.2.1) Patch 1"
sha256Hash = "sha256-bAtPlJI3RwqQX6xpEi7S8T2IDc/39MONU3iFpfi8v3A=";
};
betaVersion = {
version = "2022.3.1.12"; # "Android Studio Giraffe (2022.3.1) Beta 1"
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/misc/1password/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ let
if extension == "zip" then fetchzip args else fetchurl args;

pname = "1password-cli";
version = "2.17.0";
version = "2.18.0";
sources = rec {
aarch64-linux = fetch "linux_arm64" "sha256-pnLAFCKhQKOIqp0qDv3DfAqF4fDXjFdw7Jl9WgDf7C0=" "zip";
i686-linux = fetch "linux_386" "sha256-o+pSWUOSzDKA5m+Riu3QOi9gQMyEmbIGcE/yUjKu9p8=" "zip";
x86_64-linux = fetch "linux_amd64" "sha256-aukQSeC+5p6ioTE6QlzEAM+9VOI34GfzzjaGt/N0klY=" "zip";
aarch64-darwin = fetch "apple_universal" "sha256-HSXbbeDWYrFTh9SsKwvNovprWRwaDr3rA6X6E1QJJos=" "pkg";
aarch64-linux = fetch "linux_arm64" "sha256-BmYGx4DI/Hvj9hBBZo5iprQeUgMNqEkESDjYcOVAt4Q=" "zip";
i686-linux = fetch "linux_386" "sha256-KpacioVLSPju9iW7B/yVCS66CZTwCTVAjxoaeBscJe8=" "zip";
x86_64-linux = fetch "linux_amd64" "sha256-p4wztBVQ2x2RrODJhX3z72QQtF8mnvqk3wT72hiPE3o=" "zip";
aarch64-darwin = fetch "apple_universal" "sha256-GfmTx4WS5oGgXXWqlA4bEmQJyFTu/bZnoEhIfZpfqpg=" "pkg";
x86_64-darwin = aarch64-darwin;
};
platforms = builtins.attrNames sources;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/phockup/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ let
in
stdenv.mkDerivation rec {
pname = "phockup";
version = "1.9.2";
version = "1.10.1";

src = fetchFromGitHub {
owner = "ivandokov";
repo = "phockup";
rev = version;
sha256 = "sha256-ge34Iv/+B0xdrSNc7w3nZJw0DHBUvuh2k/I8v/RRg10=";
sha256 = "sha256-wnTdNzH/2Lcr3FXqm84ITiAmbKpFWLo/0/cf0fCv+4M=";
};

nativeBuildInputs = [ makeWrapper ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ let
++ lib.optionals mediaSupport [ ffmpeg ]
);

tag = "mullvad-browser-102.10.0esr-12.0-2-build2";
version = "12.0.5";
lang = "ALL";
version = "12.0.6";

srcs = {
x86_64-linux = fetchurl {
url = "https://github.com/mullvad/mullvad-browser/releases/download/${tag}/mullvad-browser-linux64-${version}_${lang}.tar.xz";
hash = "sha256-Ezs2pjJNGOinMIskBDwpj70eKSkfcV6ZCKb60I5J23w=";
url = "https://cdn.mullvad.net/browser/${version}/mullvad-browser-linux64-${version}_ALL.tar.xz";
hash = "sha256-XE6HFU38FhnikxGHRHxIGS3Z3Y2JNWH0yq2NejqbROI=";
};
};

Expand Down Expand Up @@ -222,8 +220,7 @@ stdenv.mkDerivation rec {

meta = with lib; {
description = "Privacy-focused browser made in a collaboration between The Tor Project and Mullvad";
homepage = "https://www.mullvad.net/en/browser";
changelog = "https://github.com/mullvad/mullvad-browser/releases/tag/${tag}";
homepage = "https://mullvad.net/en/browser";
platforms = attrNames srcs;
maintainers = with maintainers; [ felschr ];
# MPL2.0+, GPL+, &c. While it's not entirely clear whether
Expand Down
22 changes: 15 additions & 7 deletions pkgs/applications/networking/misc/zammad/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{ stdenv
, lib
, nixosTests
, fetchFromGitHub
, applyPatches
, bundlerEnv
, defaultGemConfig
, callPackage
, writeText
, procps
, ruby_2_7
, ruby
, postgresql
, imlib2
, jq
Expand All @@ -21,7 +22,7 @@

let
pname = "zammad";
version = "5.1.1";
version = "5.4.1";

src = applyPatches {

Expand All @@ -30,9 +31,9 @@ let
patches = [ ./0001-nulldb.patch ];

postPatch = ''
sed -i -e "s|ruby '2.7.4'|ruby '${ruby_2_7.version}'|" Gemfile
sed -i -e "s|ruby 2.7.4p191|ruby ${ruby_2_7.version}|" Gemfile.lock
sed -i -e "s|2.7.4|${ruby_2_7.version}|" .ruby-version
sed -i -e "s|ruby '3.1.[0-9]\+'|ruby '${ruby.version}'|" Gemfile
sed -i -e "s|ruby 3.1.[0-9]\+p[0-9]\+|ruby ${ruby.version}|" Gemfile.lock
sed -i -e "s|3.1.[0-9]\+|${ruby.version}|" .ruby-version
${jq}/bin/jq '. += {name: "Zammad", version: "${version}"}' package.json | ${moreutils}/bin/sponge package.json
'';
};
Expand All @@ -53,7 +54,7 @@ let

# Which ruby version to select:
# https://docs.zammad.org/en/latest/prerequisites/software.html#ruby-programming-language
inherit ruby_2_7;
inherit ruby;

gemdir = src;
gemset = ./gemset.nix;
Expand Down Expand Up @@ -94,6 +95,12 @@ let
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
packageJSON = ./package.json;

yarnPreBuild = ''
mkdir -p deps/Zammad
cp -r ${src}/.eslint-plugin-zammad deps/Zammad/.eslint-plugin-zammad
chmod -R +w deps/Zammad/.eslint-plugin-zammad
'';
};

in
Expand Down Expand Up @@ -129,13 +136,14 @@ stdenv.mkDerivation {
passthru = {
inherit rubyEnv yarnEnv;
updateScript = [ "${callPackage ./update.nix {}}/bin/update.sh" pname (toString ./.) ];
tests = { inherit (nixosTests) zammad; };
};

meta = with lib; {
description = "Zammad, a web-based, open source user support/ticketing solution.";
homepage = "https://zammad.org";
license = licenses.agpl3Plus;
platforms = [ "x86_64-linux" ];
platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ n0emis garbas taeer ];
};
}
Loading

0 comments on commit c88f934

Please sign in to comment.