Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-05-30 00:02:21 +00:00 committed by GitHub
commit ceb7ed5e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
45 changed files with 560 additions and 277 deletions

View File

@ -6403,6 +6403,15 @@
githubId = 6074754; githubId = 6074754;
name = "Hlodver Sigurdsson"; name = "Hlodver Sigurdsson";
}; };
hmajid2301 = {
name = "Haseeb Majid";
email = "hello@haseebmajid.dev";
github = "hmajid2301";
githubId = 998807;
keys = [{
fingerprint = "A236 785D 59F1 9076 1E9C E8EC 7828 3DB3 D233 E1F9";
}];
};
hmenke = { hmenke = {
name = "Henri Menke"; name = "Henri Menke";
email = "henri@henrimenke.de"; email = "henri@henrimenke.de";

View File

@ -194,6 +194,8 @@ In addition to numerous new and upgraded packages, this release has the followin
- `graylog` has been updated to version 5, which can not be upgraded directly from the previously packaged version 3.3. If you had installed the previously packaged version 3.3, please follow the [upgrade path](https://go2docs.graylog.org/5-0/upgrading_graylog/upgrade_path.htm) from 3.3 to 4.0 to 4.3 to 5.0. - `graylog` has been updated to version 5, which can not be upgraded directly from the previously packaged version 3.3. If you had installed the previously packaged version 3.3, please follow the [upgrade path](https://go2docs.graylog.org/5-0/upgrading_graylog/upgrade_path.htm) from 3.3 to 4.0 to 4.3 to 5.0.
- `buildFHSUserEnv` is now called `buildFHSEnv` and uses FlatPak's Bubblewrap sandboxing tool rather than Nixpkgs' own chrootenv. The old chrootenv-based implemenation is still available via `buildFHSEnvChrootenv` but is considered deprecated and will be removed when the remaining uses inside Nixpkgs have been migrated. If your FHSEnv-wrapped application misbehaves when using the new bubblewrap implementation, please create an issue in Nixpkgs.
- `nushell` has been updated to at least version 0.77.0, which includes potential breaking changes in aliases. The old aliases are now available as `old-alias` but it is recommended you migrate to the new format. See [Reworked aliases](https://www.nushell.sh/blog/2023-03-14-nushell_0_77.html#reworked-aliases-breaking-changes-kubouch). - `nushell` has been updated to at least version 0.77.0, which includes potential breaking changes in aliases. The old aliases are now available as `old-alias` but it is recommended you migrate to the new format. See [Reworked aliases](https://www.nushell.sh/blog/2023-03-14-nushell_0_77.html#reworked-aliases-breaking-changes-kubouch).
- `gajim` has been updated to version 1.7.3 which has disabled legacy ciphers. See [changelog for version 1.7.0](https://dev.gajim.org/gajim/gajim/-/releases/1.7.0). - `gajim` has been updated to version 1.7.3 which has disabled legacy ciphers. See [changelog for version 1.7.0](https://dev.gajim.org/gajim/gajim/-/releases/1.7.0).

View File

@ -14,6 +14,7 @@ in
./bspwm.nix ./bspwm.nix
./cwm.nix ./cwm.nix
./clfswm.nix ./clfswm.nix
./dk.nix
./dwm.nix ./dwm.nix
./e16.nix ./e16.nix
./evilwm.nix ./evilwm.nix

View File

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
let
cfg = config.services.xserver.windowManager.dk;
in
{
options = {
services.xserver.windowManager.dk = {
enable = lib.mkEnableOption (lib.mdDoc "dk");
package = lib.mkPackageOptionMD pkgs "dk" { };
};
};
config = lib.mkIf cfg.enable {
services.xserver.windowManager.session = lib.singleton {
name = "dk";
start = ''
export _JAVA_AWT_WM_NONREPARENTING=1
${cfg.package}/bin/dk &
waitPID=$!
'';
};
environment.systemPackages = [ cfg.package ];
};
}

View File

@ -11,64 +11,145 @@ let
]; ];
in in
{ {
options = { options.services.logind = {
services.logind.extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.lines; type = types.lines;
example = "IdleAction=lock"; example = "IdleAction=lock";
description = lib.mdDoc '' description = lib.mdDoc ''
Extra config options for systemd-logind. See Extra config options for systemd-logind.
[ See [logind.conf(5)](https://www.freedesktop.org/software/systemd/man/logind.conf.html)
logind.conf(5)](https://www.freedesktop.org/software/systemd/man/logind.conf.html) for available options. for available options.
''; '';
}; };
services.logind.killUserProcesses = mkOption { killUserProcesses = mkOption {
default = false; default = false;
type = types.bool; type = types.bool;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies whether the processes of a user should be killed Specifies whether the processes of a user should be killed
when the user logs out. If true, the scope unit corresponding when the user logs out. If true, the scope unit corresponding
to the session and all processes inside that scope will be to the session and all processes inside that scope will be
terminated. If false, the scope is "abandoned" (see terminated. If false, the scope is "abandoned"
[systemd.scope(5)](https://www.freedesktop.org/software/systemd/man/systemd.scope.html#)), and processes are not killed. (see [systemd.scope(5)](https://www.freedesktop.org/software/systemd/man/systemd.scope.html#)),
and processes are not killed.
See [logind.conf(5)](https://www.freedesktop.org/software/systemd/man/logind.conf.html#KillUserProcesses=) See [logind.conf(5)](https://www.freedesktop.org/software/systemd/man/logind.conf.html#KillUserProcesses=)
for more details. for more details.
''; '';
}; };
services.logind.lidSwitch = mkOption { powerKey = mkOption {
default = "poweroff";
example = "ignore";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the power key is pressed.
'';
};
powerKeyLongPress = mkOption {
default = "ignore";
example = "reboot";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the power key is long-pressed.
'';
};
rebootKey = mkOption {
default = "reboot";
example = "ignore";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the reboot key is pressed.
'';
};
rebootKeyLongPress = mkOption {
default = "poweroff";
example = "ignore";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the reboot key is long-pressed.
'';
};
suspendKey = mkOption {
default = "suspend"; default = "suspend";
example = "ignore"; example = "ignore";
type = logindHandlerType; type = logindHandlerType;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies what to be done when the laptop lid is closed. Specifies what to do when the suspend key is pressed.
''; '';
}; };
services.logind.lidSwitchDocked = mkOption { suspendKeyLongPress = mkOption {
default = "hibernate";
example = "ignore";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the suspend key is long-pressed.
'';
};
hibernateKey = mkOption {
default = "hibernate";
example = "ignore";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the hibernate key is pressed.
'';
};
hibernateKeyLongPress = mkOption {
default = "ignore"; default = "ignore";
example = "suspend"; example = "suspend";
type = logindHandlerType; type = logindHandlerType;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies what to be done when the laptop lid is closed Specifies what to do when the hibernate key is long-pressed.
and another screen is added.
''; '';
}; };
services.logind.lidSwitchExternalPower = mkOption { lidSwitch = mkOption {
default = "suspend";
example = "ignore";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the laptop lid is closed.
'';
};
lidSwitchExternalPower = mkOption {
default = cfg.lidSwitch; default = cfg.lidSwitch;
defaultText = literalExpression "services.logind.lidSwitch"; defaultText = literalExpression "services.logind.lidSwitch";
example = "ignore"; example = "ignore";
type = logindHandlerType; type = logindHandlerType;
description = lib.mdDoc '' description = lib.mdDoc ''
Specifies what to do when the laptop lid is closed and the system is Specifies what to do when the laptop lid is closed
on external power. By default use the same action as specified in and the system is on external power. By default use
services.logind.lidSwitch. the same action as specified in services.logind.lidSwitch.
'';
};
lidSwitchDocked = mkOption {
default = "ignore";
example = "suspend";
type = logindHandlerType;
description = lib.mdDoc ''
Specifies what to do when the laptop lid is closed
and another screen is added.
''; '';
}; };
}; };
@ -94,9 +175,17 @@ in
"systemd/logind.conf".text = '' "systemd/logind.conf".text = ''
[Login] [Login]
KillUserProcesses=${if cfg.killUserProcesses then "yes" else "no"} KillUserProcesses=${if cfg.killUserProcesses then "yes" else "no"}
HandlePowerKey=${cfg.powerKey}
HandlePowerKeyLongPress=${cfg.powerKeyLongPress}
HandleRebootKey=${cfg.rebootKey}
HandleRebootKeyLongPress=${cfg.rebootKeyLongPress}
HandleSuspendKey=${cfg.suspendKey}
HandleSuspendKeyLongPress=${cfg.suspendKeyLongPress}
HandleHibernateKey=${cfg.hibernateKey}
HandleHibernateKeyLongPress=${cfg.hibernateKeyLongPress}
HandleLidSwitch=${cfg.lidSwitch} HandleLidSwitch=${cfg.lidSwitch}
HandleLidSwitchDocked=${cfg.lidSwitchDocked}
HandleLidSwitchExternalPower=${cfg.lidSwitchExternalPower} HandleLidSwitchExternalPower=${cfg.lidSwitchExternalPower}
HandleLidSwitchDocked=${cfg.lidSwitchDocked}
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
}; };

View File

@ -10,6 +10,7 @@
, fftw , fftw
, fmt_8 , fmt_8
, libsndfile , libsndfile
, libX11
, rtmidi , rtmidi
, SDL2 , SDL2
, zlib , zlib
@ -21,16 +22,23 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "furnace"; pname = "furnace";
version = "0.6pre4-hotfix"; version = "0.6pre5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tildearrow"; owner = "tildearrow";
repo = "furnace"; repo = "furnace";
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "sha256-lJtV/0GnWN5mSjv2LaPEMnkuThaNeijBMjLGFPOJX4k="; sha256 = "sha256-6KiG7nfQUdPW+EkBW3PPM141kOmolAgrrqhEGH/Azg4=";
}; };
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
# To offer scaling detection on X11, furnace checks if libX11.so is available via dlopen and uses some of its functions
# But it's being linked against a versioned libX11.so.VERSION via SDL, so the unversioned one is not on the rpath
substituteInPlace src/gui/scaling.cpp \
--replace 'libX11.so' '${lib.getLib libX11}/lib/libX11.so'
'';
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
@ -97,6 +105,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Multi-system chiptune tracker compatible with DefleMask modules"; description = "Multi-system chiptune tracker compatible with DefleMask modules";
homepage = "https://github.com/tildearrow/furnace"; homepage = "https://github.com/tildearrow/furnace";
changelog = "https://github.com/tildearrow/furnace/releases/tag/v${version}";
license = with licenses; [ gpl2Plus ]; license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ OPNA2608 ]; maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all; platforms = platforms.all;

View File

@ -32,13 +32,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "musikcube"; pname = "musikcube";
version = "3.0.0"; version = "3.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "clangen"; owner = "clangen";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha512-W+Zug1SiOGJ+o6FBf2jeDGHFj87vudR4drtjyXiOzdoM8fUCnCj4pp7+70eZGilg6CvBi7CYkbVn53LXJf5qWA=="; hash = "sha512-ahKPmChHRVpOQcgt0fOYumlsMApeN4MWwywE9F0edeN0Xr3Vp830mWGzEBJvMvGI/lnU/1rd7tREaHfm1vCJaw==";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -1,5 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, gettext, msgpack, libtermkey, libiconv { lib, stdenv, fetchFromGitHub, cmake, gettext, msgpack, libtermkey, libiconv
, fetchpatch
, libuv, lua, ncurses, pkg-config , libuv, lua, ncurses, pkg-config
, unibilium, gperf , unibilium, gperf
, libvterm-neovim , libvterm-neovim
@ -37,13 +36,13 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "neovim-unwrapped"; pname = "neovim-unwrapped";
version = "0.9.0"; version = "0.9.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "neovim"; owner = "neovim";
repo = "neovim"; repo = "neovim";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-4uCPWnjSMU7ac6Q3LT+Em8lVk1MuSegxHMLGQRtFqAs="; hash = "sha256-G51qD7GklEn0JrneKSSqDDx0Odi7W2FjdQc0ZDE9ZK4=";
}; };
patches = [ patches = [
@ -51,14 +50,6 @@ in
# necessary so that nix can handle `UpdateRemotePlugins` for the plugins # necessary so that nix can handle `UpdateRemotePlugins` for the plugins
# it installs. See https://github.com/neovim/neovim/issues/9413. # it installs. See https://github.com/neovim/neovim/issues/9413.
./system_rplugin_manifest.patch ./system_rplugin_manifest.patch
# fix bug with the gsub directive
# https://github.com/neovim/neovim/pull/23015
(fetchpatch {
name = "use-the-correct-replacement-args-for-gsub-directive.patch";
url = "https://github.com/neovim/neovim/commit/ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776.patch";
hash = "sha256-sZWM6M8jCL1e72H0bAc51a6FrH0mFFqTV1gGLwKT7Zo=";
})
]; ];
dontFixCmake = true; dontFixCmake = true;

View File

@ -28,13 +28,13 @@
stdenv.mkDerivation (finalAttrs: rec { stdenv.mkDerivation (finalAttrs: rec {
pname = "SwayNotificationCenter"; pname = "SwayNotificationCenter";
version = "0.8.0"; version = "0.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ErikReider"; owner = "ErikReider";
repo = "SwayNotificationCenter"; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-E9CjNx/xzkkOZ39XbfIb1nJFheZVFpj/lwmITKtpb7A="; hash = "sha256-mwwSTs4d9jUXUy33nSYJCRFlpH6naCmbRUSpfVacMBE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "kyverno"; pname = "kyverno";
version = "1.9.4"; version = "1.9.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kyverno"; owner = "kyverno";
repo = "kyverno"; repo = "kyverno";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-rpqhDnXxbWKa1WB7WBS6Ri7XiPWv3e0evCXFSBcaD6c="; sha256 = "sha256-e/CZ5XiJFvj/HVSBPTyLybu5ZZNVte3Bf/qGhEK7k80=";
}; };
ldflags = [ ldflags = [

View File

@ -45,14 +45,14 @@ let
pname = "slack"; pname = "slack";
x86_64-darwin-version = "4.29.149"; x86_64-darwin-version = "4.32.122";
x86_64-darwin-sha256 = "sha256-E0YnOPnaWFe17gCpFywxu5uHs1pEktA1tUu4QqvKhYw="; x86_64-darwin-sha256 = "sha256-aKvMtuo3cNJsw42RNezmETsLAtl6G2yqYGOGp2Pt32U=3";
x86_64-linux-version = "4.29.149"; x86_64-linux-version = "4.32.122";
x86_64-linux-sha256 = "sha256-ulXIGLp2ql47ZS6IeaMuqye39deDtukOB1dxy5BNCwI="; x86_64-linux-sha256 = "sha256-ViJHG7s7xqnatNOss5mfa7GqqlHbBrLGHBzTqqo7W/w=";
aarch64-darwin-version = "4.29.149"; aarch64-darwin-version = "4.32.122";
aarch64-darwin-sha256 = "sha256-Nn+dFD3H/By+aBPLDxnPneNXuFl+tHdLhxJXeYBMORg="; aarch64-darwin-sha256 = "sha256-j3PbH/5cKN5+vUiLvXaxyPYilt6GX6FsGo+1hlJKrls=";
version = { version = {
x86_64-darwin = x86_64-darwin-version; x86_64-darwin = x86_64-darwin-version;

View File

@ -6,7 +6,7 @@
let let
pname = "lefthook"; pname = "lefthook";
version = "1.4.0"; version = "1.4.1";
in in
buildGoModule rec { buildGoModule rec {
inherit pname version; inherit pname version;
@ -15,10 +15,10 @@ buildGoModule rec {
owner = "evilmartians"; owner = "evilmartians";
repo = "lefthook"; repo = "lefthook";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-nov/0iPlMsqFWh//0Mc7JVNiLzX1I0qmkey0fkm+2k8="; hash = "sha256-odcgO7n39sPUdLaAEQqxx2dZrgmvH3fpqmUYB41GZAE=";
}; };
vendorHash = "sha256-dWJ8B51zk3uhe8j60wP0PJz/4YhAL7OJbk/96eoLdSs="; vendorHash = "sha256-V94g7Ua8GWUOWM8Z4ENXmZlHXRUMHb8cKuoTztjHtnc=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -1,5 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, fetchPypi
, cairo , cairo
, ffmpeg , ffmpeg
@ -42,7 +43,30 @@ let
fundus-calligra microtype wasysym physics dvisvgm jknapltx wasy cm-super fundus-calligra microtype wasysym physics dvisvgm jknapltx wasy cm-super
babel-english gnu-freefont mathastext cbfonts-fd; babel-english gnu-freefont mathastext cbfonts-fd;
}; };
in python3.pkgs.buildPythonApplication rec {
python = python3.override {
packageOverrides = self: super: {
networkx = super.networkx.overridePythonAttrs (oldAttrs: rec {
pname = "networkx";
version = "2.8.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Iw04gRevhw/OVkejxSQB/PdT6Ucg5uprQZelNVZIiF4=";
};
});
watchdog = super.watchdog.overridePythonAttrs (oldAttrs: rec{
pname = "watchdog";
version = "2.3.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-2fntJu0iqdMxggqEMsNoBwfqi1QSHdzJ3H2fLO6zaQY=";
};
});
};
};
in python.pkgs.buildPythonApplication rec {
pname = "manim"; pname = "manim";
format = "pyproject"; format = "pyproject";
version = "0.16.0.post0"; version = "0.16.0.post0";
@ -55,8 +79,8 @@ in python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-iXiPnI6lTP51P1X3iLp75ArRP66o8WAANBLoStPrz4M="; sha256 = "sha256-iXiPnI6lTP51P1X3iLp75ArRP66o8WAANBLoStPrz4M=";
}; };
nativeBuildInputs = [ nativeBuildInputs = with python.pkgs; [
python3.pkgs.poetry-core poetry-core
]; ];
postPatch = '' postPatch = ''
@ -69,7 +93,7 @@ in python3.pkgs.buildPythonApplication rec {
buildInputs = [ cairo ]; buildInputs = [ cairo ];
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python.pkgs; [
click click
click-default-group click-default-group
cloup cloup
@ -106,14 +130,13 @@ in python3.pkgs.buildPythonApplication rec {
]) ])
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
python3.pkgs.pytest-xdist
python3.pkgs.pytestCheckHook
ffmpeg ffmpeg
(texlive.combine manim-tinytex) (texlive.combine manim-tinytex)
]; ] ++ (with python.pkgs; [
pytest-xdist
pytestCheckHook
]);
# about 55 of ~600 tests failing mostly due to demand for display # about 55 of ~600 tests failing mostly due to demand for display
disabledTests = import ./failing_tests.nix; disabledTests = import ./failing_tests.nix;

View File

@ -1,5 +1,5 @@
# reason for failure: tests try to open display
[ [
# reason for failure: tests try to open display
"test_background_color" "test_background_color"
"test_scene_add_remove" "test_scene_add_remove"
"test_Circle" "test_Circle"
@ -46,31 +46,29 @@
"test_force_window_opengl_render_with_format" "test_force_window_opengl_render_with_format"
"test_get_frame_with_preview_disabled" "test_get_frame_with_preview_disabled"
"test_get_frame_with_preview_enabled" "test_get_frame_with_preview_enabled"
] ++
# reason for failure: tests try to reach network # reason for failure: tests try to reach network
[
"test_logging_to_file" "test_logging_to_file"
"test_plugin_function_like" "test_plugin_function_like"
"test_plugin_no_all" "test_plugin_no_all"
"test_plugin_with_all" "test_plugin_with_all"
] ++
# failing with: # failing with:
# E AssertionError: # E AssertionError:
# E Not equal to tolerance rtol=1e-07, atol=1.01 # E Not equal to tolerance rtol=1e-07, atol=1.01
# E Frame no -1. You can use --show_diff to visually show the difference. # E Frame no -1. You can use --show_diff to visually show the difference.
# E Mismatched elements: 18525 / 1639680 (1.13%) # E Mismatched elements: 18525 / 1639680 (1.13%)
# E Max absolute difference: 255 # E Max absolute difference: 255
# E Max relative difference: 255. # E Max relative difference: 255.
[
"test_Text2Color" "test_Text2Color"
"test_PointCloudDot" "test_PointCloudDot"
"test_Torus" "test_Torus"
] ++
# failing with: # failing with:
# TypeError: __init__() got an unexpected keyword argument 'msg' - maybe you meant pytest.mark.skipif? # TypeError: __init__() got an unexpected keyword argument 'msg' - maybe you meant pytest.mark.skipif?
[
"test_force_window_opengl_render_with_movies" "test_force_window_opengl_render_with_movies"
# mismatching expecation on the new commandline
"test_manim_new_command"
] ]

View File

@ -0,0 +1,11 @@
diff --git a/slscore/common.hpp b/slscore/common.hpp
index 30aeeea..bed0e62 100644
--- a/slscore/common.hpp
+++ b/slscore/common.hpp
@@ -29,6 +29,7 @@
#include <stddef.h>
#include <stdint.h>
#include <string>
+#include <ctime>
#include <vector>
#include <unistd.h>

View File

@ -19,6 +19,9 @@ stdenv.mkDerivation rec {
patches = [ patches = [
# https://github.com/Edward-Wu/srt-live-server/pull/94 # https://github.com/Edward-Wu/srt-live-server/pull/94
./fix-insecure-printfs.patch ./fix-insecure-printfs.patch
# https://github.com/Edward-Wu/srt-live-server/pull/127 # adds `#include <ctime>`
./add-ctime-include.patch
]; ];
buildInputs = [ srt zlib ]; buildInputs = [ srt zlib ];

View File

@ -0,0 +1,45 @@
{ lib
, stdenv
, fetchFromBitbucket
, xcbutil
, xcbutilkeysyms
, xcbutilwm
, xcb-util-cursor
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dk";
version = "1.9";
src = fetchFromBitbucket {
owner = "natemaia";
repo = "dk";
rev = "v${finalAttrs.version}";
hash = "sha256-OodD2z9C4oGTK6ynAXRlEZSzzdzIkVjmq5vLdUcht1U=";
};
buildInputs = [
xcbutil
xcbutilkeysyms
xcbutilwm
xcb-util-cursor
];
postPatch = ''
substituteInPlace Makefile \
--replace "-L/usr/X11R6/lib" "" \
--replace "-I/usr/X11R6/include" ""
'';
makeFlags = [ "PREFIX=$(out)" "SES=$(out)/share/xsessions" ];
enableParallelBuilding = true;
meta = {
homepage = "https://bitbucket.org/natemaia/dk";
description = "A list based tiling window manager in the vein of dwm, bspwm, and xmonad";
license = lib.licenses.x11;
maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ];
platforms = lib.platforms.linux;
};
})

View File

@ -141,7 +141,7 @@ rec {
runCommand name runCommand name
{ inherit text executable checkPhase allowSubstitutes preferLocalBuild; { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
passAsFile = [ "text" ]; passAsFile = [ "text" ];
meta = lib.optionalAttrs (executable && matches != null) { meta = lib.optionalAttrs (toString executable != "" && matches != null) {
mainProgram = lib.head matches; mainProgram = lib.head matches;
} // meta; } // meta;
} }

View File

@ -1,90 +0,0 @@
From c1d426bdd477ffeb3dfa03501de089a341b85d0b Mon Sep 17 00:00:00 2001
From: Tero Tervala <tero.tervala@unikie.com>
Date: Wed, 15 Jun 2022 13:44:55 +0300
Subject: [PATCH] Depend on .a instead of .so when building static
Static build needs to be indicated with environment variable:
STATIC_BUILD=1
Checks are skipped on static builds
Signed-off-by: Tero Tervala <tero.tervala@unikie.com>
---
Makefile | 12 +++++++++---
tests/Makefile.tests | 11 ++++++++---
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index ee77115..9f550b4 100644
--- a/Makefile
+++ b/Makefile
@@ -198,6 +198,12 @@ LIBFDT_lib = $(LIBFDT_dir)/$(LIBFDT_LIB)
LIBFDT_include = $(addprefix $(LIBFDT_dir)/,$(LIBFDT_INCLUDES))
LIBFDT_version = $(addprefix $(LIBFDT_dir)/,$(LIBFDT_VERSION))
+ifeq ($(STATIC_BUILD),1)
+ LIBFDT_dep = $(LIBFDT_archive)
+else
+ LIBFDT_dep = $(LIBFDT_lib)
+endif
+
include $(LIBFDT_dir)/Makefile.libfdt
.PHONY: libfdt
@@ -261,11 +267,11 @@ convert-dtsv0: $(CONVERT_OBJS)
fdtdump: $(FDTDUMP_OBJS)
-fdtget: $(FDTGET_OBJS) $(LIBFDT_lib)
+fdtget: $(FDTGET_OBJS) $(LIBFDT_dep)
-fdtput: $(FDTPUT_OBJS) $(LIBFDT_lib)
+fdtput: $(FDTPUT_OBJS) $(LIBFDT_dep)
-fdtoverlay: $(FDTOVERLAY_OBJS) $(LIBFDT_lib)
+fdtoverlay: $(FDTOVERLAY_OBJS) $(LIBFDT_dep)
dist:
git archive --format=tar --prefix=dtc-$(dtc_version)/ HEAD \
diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index 2f78952..f13b16d 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -60,17 +60,17 @@ TESTS_CLEANDIRS = $(TESTS_CLEANDIRS_L:%=$(TESTS_PREFIX)%)
.PHONY: tests
tests: $(TESTS) $(TESTS_TREES)
-$(LIB_TESTS): %: $(TESTS_PREFIX)testutils.o util.o $(LIBFDT_lib)
+$(LIB_TESTS): %: $(TESTS_PREFIX)testutils.o util.o $(LIBFDT_dep)
# Not necessary on all platforms; allow -ldl to be excluded instead of forcing
# other platforms to patch it out.
LIBDL = -ldl
-$(DL_LIB_TESTS): %: %.o $(TESTS_PREFIX)testutils.o util.o $(LIBFDT_lib)
+$(DL_LIB_TESTS): %: %.o $(TESTS_PREFIX)testutils.o util.o $(LIBFDT_dep)
@$(VECHO) LD [libdl] $@
$(LINK.c) -o $@ $^ $(LIBDL)
$(LIBTREE_TESTS): %: $(TESTS_PREFIX)testutils.o $(TESTS_PREFIX)trees.o \
- util.o $(LIBFDT_lib)
+ util.o $(LIBFDT_dep)
$(TESTS_PREFIX)dumptrees: $(TESTS_PREFIX)trees.o
@@ -83,8 +83,13 @@ tests_clean:
rm -f $(TESTS_CLEANFILES)
rm -rf $(TESTS_CLEANDIRS)
+ifeq ($(STATIC_BUILD),1)
+check:
+ @echo Skipping checks for static build
+else
check: tests ${TESTS_BIN} $(TESTS_PYLIBFDT)
cd $(TESTS_PREFIX); ./run_tests.sh
+endif
ifeq ($(NO_VALGRIND),1)
checkm:
--
2.33.3

View File

@ -2,6 +2,8 @@
, lib , lib
, fetchgit , fetchgit
, fetchpatch , fetchpatch
, meson
, ninja
, flex , flex
, bison , bison
, pkg-config , pkg-config
@ -14,35 +16,68 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dtc"; pname = "dtc";
version = "1.6.1"; version = "1.7.0";
src = fetchgit { src = fetchgit {
url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git"; url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-gx9LG3U9etWhPxm7Ox7rOu9X5272qGeHqZtOe68zFs4="; sha256 = "sha256-FMh3VvlY3fUK8fbd0M+aCmlUrmG9YegiOOQ7MOByffc=";
}; };
patches = [ patches = [
# fix python 3.10 compatibility # meson: Fix cell overflow tests when running from meson
# based on without requiring the setup.py rework (fetchpatch {
# https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=383e148b70a47ab15f97a19bb999d54f9c3e810f url = "https://github.com/dgibson/dtc/commit/32174a66efa4ad19fc6a2a6422e4af2ae4f055cb.patch";
./python-3.10.patch sha256 = "sha256-C7OzwY0zq+2CV3SB5unI7Ill2M3deF7FXeQE3B/Kx2s=";
})
# fix dtc static building # meson.build: bump version to 1.7.0
./0001-Depend-on-.a-instead-of-.so-when-building-static.patch (fetchpatch {
url = "https://github.com/dgibson/dtc/commit/64a907f08b9bedd89833c1eee674148cff2343c6.patch";
sha256 = "sha256-p2KGS5GW+3uIPgXfuIx6aDC54csM+5FZDkK03t58AL8=";
})
# Fix version in libfdt/meson.build
(fetchpatch {
url = "https://github.com/dgibson/dtc/commit/723545ebe9933b90ea58dc125e4987c6bcb04ade.patch";
sha256 = "sha256-5Oq7q+62ZObj3e7rguN9jhSpYoQkwjSfo/N893229dQ=";
})
# Use #ifdef NO_VALGRIND
(fetchpatch {
url = "https://github.com/dgibson/dtc/commit/41821821101ad8a9f83746b96b163e5bcbdbe804.patch";
sha256 = "sha256-7QEFDtap2DWbUGqtyT/RgJZJFldKB8oSubKiCtLZ0w4=";
})
]; ];
nativeBuildInputs = [ flex bison pkg-config which ] env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
++ lib.optionals pythonSupport [ python swig ];
nativeBuildInputs = [
meson
ninja
flex
bison
pkg-config
which
] ++ lib.optionals pythonSupport [
python
python.pkgs.setuptools-scm
swig
];
buildInputs = [ libyaml ]; buildInputs = [ libyaml ];
postPatch = '' postPatch = ''
patchShebangs pylibfdt/ patchShebangs setup.py
''; '';
makeFlags = [ "PYTHON=python" "STATIC_BUILD=${toString stdenv.hostPlatform.isStatic}" ]; # Required for installation of Python library and is innocuous otherwise.
installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ]; env.DESTDIR = "/";
mesonAutoFeatures = "auto";
mesonFlags = [
(lib.mesonBool "static-build" stdenv.hostPlatform.isStatic)
];
postFixup = lib.optionalString stdenv.isDarwin '' postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libfdt.dylib $out/lib/libfdt-${version}.dylib install_name_tool -id $out/lib/libfdt.dylib $out/lib/libfdt-${version}.dylib

View File

@ -1,28 +0,0 @@
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i
index 51ee801..075ef70 100644
--- a/pylibfdt/libfdt.i
+++ b/pylibfdt/libfdt.i
@@ -1044,9 +1044,9 @@ typedef uint32_t fdt32_t;
$result = Py_None;
else
%#if PY_VERSION_HEX >= 0x03000000
- $result = Py_BuildValue("y#", $1, *arg4);
+ $result = Py_BuildValue("y#", $1, (Py_ssize_t)*arg4);
%#else
- $result = Py_BuildValue("s#", $1, *arg4);
+ $result = Py_BuildValue("s#", $1, (Py_ssize_t)*arg4);
%#endif
}
diff --git a/pylibfdt/setup.py b/pylibfdt/setup.py
index ef40f15..81e161a 100755
--- a/pylibfdt/setup.py
+++ b/pylibfdt/setup.py
@@ -42,6 +42,7 @@ def get_version():
libfdt_module = Extension(
'_libfdt',
sources=[os.path.join(srcdir, 'libfdt.i')],
+ define_macros=[('PY_SSIZE_T_CLEAN', None)],
include_dirs=[os.path.join(srcdir, '../libfdt')],
libraries=['fdt'],
library_dirs=[os.path.join(top_builddir, 'libfdt')],

View File

@ -10,13 +10,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ftxui"; pname = "ftxui";
version = "4.1.0"; version = "4.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ArthurSonzogni"; owner = "ArthurSonzogni";
repo = "ftxui"; repo = "ftxui";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-6uPlJXuWcTUnpk+xe6EWDYvDLsfy7hGkEMO/2j3Dz0o="; sha256 = "sha256-qFgCLV7sgGxlL18sThqpl+vyXL68GXcbYqMG7mXhsB4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -97,6 +97,7 @@ let
selectedPlugins = if plugins != null then lib.unique (lib.sort lib.lessThan plugins) else lib.subtractLists ( selectedPlugins = if plugins != null then lib.unique (lib.sort lib.lessThan plugins) else lib.subtractLists (
[ [
"csound" # tests have weird failure on x86, does not currently work on arm or darwin "csound" # tests have weird failure on x86, does not currently work on arm or darwin
"livesync" # tests have suspicious intermittent failure, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/357
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
"reqwest" # tests hang on darwin "reqwest" # tests hang on darwin
"threadshare" # tests cannot bind to localhost on darwin "threadshare" # tests cannot bind to localhost on darwin
@ -213,7 +214,7 @@ stdenv.mkDerivation rec {
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
meson test --no-rebuild --verbose --timeout-multiplier 6 meson test --no-rebuild --verbose --timeout-multiplier 12
runHook postCheck runHook postCheck
''; '';

View File

@ -1,24 +1,34 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "boa-api"; pname = "boa-api";
version = "0.1.14"; version = "0.1.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "boalang"; owner = "boalang";
repo = "api-python"; repo = "api-python";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-8tt68NLi5ewSKiHdu3gDawTBPylbDmB4zlUUqa7EQuY="; sha256 = "sha256-8tt68NLi5ewSKiHdu3gDawTBPylbDmB4zlUUqa7EQuY=";
}; };
pythonImportsCheck = [ "boaapi" ]; # upstream has no tests
doCheck = false;
pythonImportsCheck = [
"boaapi"
];
meta = { meta = {
homepage = "https://github.com/boalang/api-python"; homepage = "https://github.com/boalang/api-python";
description = "Python client API for communicating with Boa's (https://boa.cs.iastate.edu/) XML-RPC based services"; description = "Python client API for communicating with Boa's (https://boa.cs.iastate.edu/) XML-RPC based services";
changelog = "https://github.com/boalang/api-python/blob/${src.rev}/Changes.txt";
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ swflint ]; maintainers = with lib.maintainers; [ swflint ];
}; };

View File

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
@ -72,11 +73,16 @@ buildPythonPackage rec {
disabledTestPaths = [ disabledTestPaths = [
"bx_py_utils_tests/tests/test_project_setup.py" "bx_py_utils_tests/tests/test_project_setup.py"
] ++ lib.optionals stdenv.isDarwin [
# processify() doesn't work under darwin
# https://github.com/boxine/bx_py_utils/issues/80
"bx_py_utils_tests/tests/test_processify.py"
]; ];
meta = { meta = {
description = "Various Python utility functions"; description = "Various Python utility functions";
homepage = "https://github.com/boxine/bx_py_utils"; homepage = "https://github.com/boxine/bx_py_utils";
changelog = "https://github.com/boxine/bx_py_utils/releases/tag/${src.rev}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ]; maintainers = with lib.maintainers; [ dotlambda ];
}; };

View File

@ -1,32 +1,36 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, numpy , numpy
, scipy , scipy
, matplotlib , matplotlib
, pytest , pytestCheckHook
, isPy3k , isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage {
version = "1.4.5";
pname = "filterpy"; pname = "filterpy";
version = "unstable-2022-08-23";
format = "setuptools";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "rlabbe";
extension = "zip"; repo = "filterpy";
sha256 = "4f2a4d39e4ea601b9ab42b2db08b5918a9538c168cff1c6895ae26646f3d73b1"; rev = "3b51149ebcff0401ff1e10bf08ffca7b6bbc4a33";
hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag=";
}; };
nativeCheckInputs = [ pytest ]; nativeCheckInputs = [
propagatedBuildInputs = [ numpy scipy matplotlib ]; pytestCheckHook
];
# single test fails (even on master branch of repository) propagatedBuildInputs = [
# project does not use CI numpy
checkPhase = '' scipy
pytest --ignore=filterpy/common/tests/test_discretization.py matplotlib
''; ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rlabbe/filterpy"; homepage = "https://github.com/rlabbe/filterpy";

View File

@ -154,8 +154,7 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
# darwin: E OSError: dlopen(/nix/store/43zml0mlr17r5jsagxr00xxx91hz9lky-openpam-20170430/lib/libpam.so, 6): image not found broken = lib.versionAtLeast sqlalchemy.version "2.0";
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
description = "Serves multiple Jupyter notebook instances"; description = "Serves multiple Jupyter notebook instances";
homepage = "https://jupyter.org/"; homepage = "https://jupyter.org/";
changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/changelog.md"; changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/changelog.md";

View File

@ -65,6 +65,8 @@ buildPythonPackage rec {
# Network access # Network access
"test_fail_sign_on_upload_fail" "test_fail_sign_on_upload_fail"
"test_successfully_sign" "test_successfully_sign"
# calls git log, but our fetcher removes .git
"test_git_error"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

View File

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, makeWrapper, jre }: { lib, stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "10.11.0"; version = "10.12.0";
pname = "checkstyle"; pname = "checkstyle";
src = fetchurl { src = fetchurl {
url = "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${version}/checkstyle-${version}-all.jar"; url = "https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${version}/checkstyle-${version}-all.jar";
sha256 = "sha256-Fw8sG3iAnFXbdzGgbDJEoGGGdd+dSxCrS4KTLunEyjA="; sha256 = "sha256-pA1K58kBZ3lZVgzg0NFYt+vA1JHOW+yW41t0ARlqvJE=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -5,13 +5,13 @@
buildGoModule rec { buildGoModule rec {
pname = "bearer"; pname = "bearer";
version = "1.8.0"; version = "1.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bearer"; owner = "bearer";
repo = "bearer"; repo = "bearer";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-RwLYBz51zfJltsHOqRi7GJLP2ncPiqRqo229wv5jvdc="; hash = "sha256-5Vd6knHm9r2VicHuvPKE7jzRGcNog8THNwDQmW2MJ5Q=";
}; };
vendorHash = "sha256-FRB01Tfz87MZp4V0HPeiEgYV8KEPcbzkeUM0uIBh6DU="; vendorHash = "sha256-FRB01Tfz87MZp4V0HPeiEgYV8KEPcbzkeUM0uIBh6DU=";

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "kustomize-sops"; pname = "kustomize-sops";
version = "4.2.0"; version = "4.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "viaduct-ai"; owner = "viaduct-ai";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-vIFq42wp5Do4+Wc52D+abxRxtk+NrJ+mRxRzIY7ZcQA="; sha256 = "sha256-Jm4mA91fyXQ8eScvRGDAmCBFVqT2GP57XIBZQo/bApg=";
}; };
vendorHash = "sha256-tNYPgXFDJuNRlrVE0ywg77goNzfoWHFVzOG9mHqK3q8="; vendorHash = "sha256-tNYPgXFDJuNRlrVE0ywg77goNzfoWHFVzOG9mHqK3q8=";

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "mani"; pname = "mani";
version = "0.23.0"; version = "0.24.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alajmo"; owner = "alajmo";
repo = "mani"; repo = "mani";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-PuoGuweuDcSM1qfjXABSdoqbMLc5a+lYGFr0kZZkgVE="; sha256 = "sha256-ROFqeRa43qDjO+xwC68gJJqLeLSRiX+L/gf2o8kURaI=";
}; };
vendorHash = "sha256-9DP6SRcvHtZhkk2XoYesC1mhfq06KsLs0X02AG9vwJ8="; vendorHash = "sha256-mFan09oJ+BPVJHAxoROj282WJ+4e7TD0ZqeQH1kDabQ=";
nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeBuildInputs = [ installShellFiles makeWrapper ];

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "okteto"; pname = "okteto";
version = "2.15.3"; version = "2.15.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "okteto"; owner = "okteto";
repo = "okteto"; repo = "okteto";
rev = version; rev = version;
hash = "sha256-BzyKmM5Yp9zdNonkDZoJBAmy8jSDwt85Wr9/1nbD7V8="; hash = "sha256-sTlbub315MePIUjXKrdBUTplcOk10yIz0N8RejOf2FQ=";
}; };
vendorHash = "sha256-dZ6gzW5R5na5qcHFQqQvKfYb0Bu0kVvVMOaRdtTgkhE="; vendorHash = "sha256-dZ6gzW5R5na5qcHFQqQvKfYb0Bu0kVvVMOaRdtTgkhE=";

View File

@ -1004,15 +1004,15 @@ let self = {
name = "vts"; name = "vts";
owner = "vozlt"; owner = "vozlt";
repo = "nginx-module-vts"; repo = "nginx-module-vts";
rev = "v0.2.1"; rev = "v0.2.2";
sha256 = "sha256-x4ry5ljPeJQY+7Mp04/xYIGf22d6Nee7CSqHezdK4gQ="; sha256 = "sha256-ReTmYGVSOwtnYDMkQDMWwxw09vT4iHYfYZvgd8iBotk=";
}; };
meta = with lib; { meta = with lib; {
description = "Virtual host traffic status module"; description = "Virtual host traffic status module";
homepage = "https://github.com/vozlt/nginx-module-vts"; homepage = "https://github.com/vozlt/nginx-module-vts";
license = with licenses; [ bsd2 ]; license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
}; };
@ -1032,7 +1032,7 @@ let self = {
description = "Nginx modules for the Zstandard compression"; description = "Nginx modules for the Zstandard compression";
homepage = "https://github.com/tokers/zstd-nginx-module"; homepage = "https://github.com/tokers/zstd-nginx-module";
license = with licenses; [ bsd2 ]; license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
}; };
}; in self // lib.optionalAttrs config.allowAliases { }; in self // lib.optionalAttrs config.allowAliases {

View File

@ -3,6 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, gitUpdater , gitUpdater
, testers
, cmake , cmake
, pkg-config , pkg-config
, python3 , python3
@ -35,26 +36,17 @@
, gtest , gtest
, umockdev , umockdev
, wlcs , wlcs
, validatePkgConfig
}: }:
let stdenv.mkDerivation (finalAttrs: {
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
pythonEnv = python3.withPackages(ps: with ps; [
pillow
] ++ lib.optionals doCheck [
pygobject3
python-dbusmock
]);
in
stdenv.mkDerivation rec {
pname = "mir"; pname = "mir";
version = "2.13.0"; version = "2.13.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MirServer"; owner = "MirServer";
repo = "mir"; repo = "mir";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-Ip8p4mjcgmZQJTU4MNvWkTTtSJc+cCL3x1mMDFlZrVY="; hash = "sha256-Ip8p4mjcgmZQJTU4MNvWkTTtSJc+cCL3x1mMDFlZrVY=";
}; };
@ -109,7 +101,13 @@ stdenv.mkDerivation rec {
libxslt libxslt
lttng-ust # lttng-gen-tp lttng-ust # lttng-gen-tp
pkg-config pkg-config
pythonEnv (python3.withPackages (ps: with ps; [
pillow
] ++ lib.optionals finalAttrs.doCheck [
pygobject3
python-dbusmock
]))
validatePkgConfig
]; ];
buildInputs = [ buildInputs = [
@ -138,21 +136,23 @@ stdenv.mkDerivation rec {
xorg.libXcursor xorg.libXcursor
xorg.xorgproto xorg.xorgproto
xwayland xwayland
] ++ lib.optionals doCheck [
gtest
umockdev
wlcs
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
dbus dbus
]; ];
checkInputs = [
gtest
umockdev
wlcs
];
buildFlags = [ "all" "doc" ]; buildFlags = [ "all" "doc" ];
cmakeFlags = [ cmakeFlags = [
"-DMIR_PLATFORM='gbm-kms;x11;eglstream-kms;wayland'" "-DMIR_PLATFORM='gbm-kms;x11;eglstream-kms;wayland'"
"-DMIR_ENABLE_TESTS=${if doCheck then "ON" else "OFF"}" "-DMIR_ENABLE_TESTS=${if finalAttrs.doCheck then "ON" else "OFF"}"
# BadBufferTest.test_truncated_shm_file *doesn't* throw an error as the test expected, mark as such # BadBufferTest.test_truncated_shm_file *doesn't* throw an error as the test expected, mark as such
# https://github.com/MirServer/mir/pull/1947#issuecomment-811810872 # https://github.com/MirServer/mir/pull/1947#issuecomment-811810872
"-DMIR_SIGBUS_HANDLER_ENVIRONMENT_BROKEN=ON" "-DMIR_SIGBUS_HANDLER_ENVIRONMENT_BROKEN=ON"
@ -163,7 +163,7 @@ stdenv.mkDerivation rec {
"-DMIR_BUILD_PLATFORM_TEST_HARNESS=OFF" "-DMIR_BUILD_PLATFORM_TEST_HARNESS=OFF"
]; ];
inherit doCheck; doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
preCheck = '' preCheck = ''
# Needs to be exactly /tmp so some failing tests don't get run, don't know why they fail yet # Needs to be exactly /tmp so some failing tests don't get run, don't know why they fail yet
@ -174,6 +174,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" ]; outputs = [ "out" "dev" "doc" ];
passthru = { passthru = {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
updateScript = gitUpdater { updateScript = gitUpdater {
rev-prefix = "v"; rev-prefix = "v";
}; };
@ -190,8 +191,22 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "A display server and Wayland compositor developed by Canonical"; description = "A display server and Wayland compositor developed by Canonical";
homepage = "https://mir-server.io"; homepage = "https://mir-server.io";
changelog = "https://github.com/MirServer/mir/releases/tag/v${finalAttrs.version}";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ onny OPNA2608 ]; maintainers = with maintainers; [ onny OPNA2608 ];
platforms = platforms.linux; platforms = platforms.linux;
pkgConfigModules = [
"miral"
"mircommon"
"mircookie"
"mircore"
"miroil"
"mirplatform"
"mir-renderer-gl-dev"
"mirrenderer"
"mirserver"
"mirtest"
"mirwayland"
];
}; };
} })

View File

@ -7,13 +7,13 @@
nimPackages.buildNimPackage rec { nimPackages.buildNimPackage rec {
pname = "nitter"; pname = "nitter";
version = "unstable-2023-04-21"; version = "unstable-2023-05-19";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zedeus"; owner = "zedeus";
repo = "nitter"; repo = "nitter";
rev = "2254a0728c587ebcec51ff08da0bf145606a629e"; rev = "e3b3b38a2d43a83b5fc2239ab41e864ee686fb2f";
hash = "sha256-d4KYBCcYbfvEtOqa1umcXmYsBRvhLgpHVoCUfY0XdXI="; hash = "sha256-1BEZcrraPc9qOWLy3Bq8M8G5P4fUmb2IX+T+cStHpmQ=";
}; };
patches = [ patches = [

View File

@ -32,13 +32,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ueberzugpp"; pname = "ueberzugpp";
version = "2.8.5"; version = "2.8.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jstkdng"; owner = "jstkdng";
repo = "ueberzugpp"; repo = "ueberzugpp";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-WnrKwbh7m84xlKMuixkB8LLw8Pzb8+mZV9cHWiI6cBY="; hash = "sha256-FNDFNPNiTLAB90dRpVX3XmbzB5pkkJmnhENmsPRldVE=";
}; };
# error: no member named 'ranges' in namespace 'std' # error: no member named 'ranges' in namespace 'std'

View File

@ -0,0 +1,39 @@
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "charasay";
version = "2.0.0";
src = fetchFromGitHub {
owner = "latipun7";
repo = pname;
rev = "v${version}";
hash = "sha256-99lMXgSHgxKc0GHnRRciMoZ+rQJyMAx+27fj6NkXxds=";
};
cargoHash = "sha256-0la16XinseOXPH2mvdYD7ZquvF2dju4UPBwl5VrTEZA=";
nativeBuildInputs = [ installShellFiles ];
postPatch = ''
rm .cargo/config.toml
'';
postInstall = ''
installShellCompletion --cmd himalaya \
--bash <($out/bin/chara completion --shell bash) \
--fish <($out/bin/chara completion --shell fish) \
--zsh <($out/bin/chara completion --shell zsh)
'';
meta = with lib; {
description = "The future of cowsay - Colorful characters saying something";
homepage = "https://github.com/latipun7/charasay";
license = licenses.mit;
maintainers = with maintainers; [ hmajid2301 ];
};
}

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fluent-bit"; pname = "fluent-bit";
version = "2.1.3"; version = "2.1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fluent"; owner = "fluent";
repo = "fluent-bit"; repo = "fluent-bit";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-zNNqJbMVFNq82SKmlvU1rhjg549eH6rzrm2/mb1jM7E="; sha256 = "sha256-WaIGTQiBVbLpSw17rBd1KbllkGEnSSXAPdO0CcbSNSI=";
}; };
nativeBuildInputs = [ cmake flex bison ]; nativeBuildInputs = [ cmake flex bison ];

View File

@ -2,19 +2,19 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "xcp"; pname = "xcp";
version = "0.9.4"; version = "0.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tarka"; owner = "tarka";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-MvtMgdlMVMp2qWN+EbAKZwBwW0TA8aivlJY8KZm+7jM="; sha256 = "sha256-DrB7eVo7nFsp2jGVygbBvj7zOztJ8jDkLODRFfxXhjY=";
}; };
# no such file or directory errors # no such file or directory errors
doCheck = false; doCheck = false;
cargoHash = "sha256-vxfoJnyG0wWgkcZpQYiKkQaHl01VDuQ0kA26MXVCgY8="; cargoHash = "sha256-O16aY+s27LBMcbefz4ug5+EuGAAiNsD7D0nv5KPg+Us=";
meta = with lib; { meta = with lib; {
description = "An extended cp(1)"; description = "An extended cp(1)";

View File

@ -0,0 +1,37 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, piknik
}:
buildGoModule rec {
pname = "piknik";
version = "0.10.1";
src = fetchFromGitHub {
owner = "jedisct1";
repo = "piknik";
rev = version;
hash = "sha256-3yvr2H1a9YtgOEEBwn1HlGXIWFzRwQPBw9+KQxW3/jo=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
passthru.tests = {
version = testers.testVersion {
package = piknik;
version = "v${version}";
};
};
meta = with lib; {
description = "Copy/paste anything over the network";
homepage = "https://github.com/jedisct1/piknik";
changelog = "https://github.com/jedisct1/piknik/blob/${src.rev}/ChangeLog";
license = licenses.bsd2;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "trurl"; pname = "trurl";
version = "0.6"; version = "0.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "curl"; owner = "curl";
repo = pname; repo = pname;
rev = "${pname}-${version}"; rev = "${pname}-${version}";
hash = "sha256-/Gf7T67LPzVPhjAqTvbLiJOqfKeWvwH/WHelJZTH4ZI="; hash = "sha256-2F/01FUsOa8ZqU1YHrxTD4KcJul2OEoW/RJCXoLfywg=";
}; };
outputs = [ "out" "dev" "man" ]; outputs = [ "out" "dev" "man" ];

View File

@ -5,16 +5,16 @@
buildGoModule rec { buildGoModule rec {
pname = "nuclei"; pname = "nuclei";
version = "2.9.4"; version = "2.9.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "projectdiscovery"; owner = "projectdiscovery";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-WqbJlpKwkbYWvSwVqhcPyIeKdlaNOvxmJh3XKi7b/Do="; hash = "sha256-+ndLh4T9Kznzx6Qgh2EQm/cSvRb6+1goOMELS8sUHPc=";
}; };
vendorHash = "sha256-yIGK7Fyr616XrZ5tQCdzontlCFegn9utrV8ZXhUQzp4="; vendorHash = "sha256-vAzyqFUluqEKeYw8unUjmyuw/c7yQYTGjLpHdYI5es8=";
modRoot = "./v2"; modRoot = "./v2";
subPackages = [ subPackages = [

View File

@ -0,0 +1,37 @@
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "topfew";
version = "0.9.0";
src = fetchFromGitHub {
owner = "timbray";
repo = "topfew";
rev = version;
hash = "sha256-6ydi/4LyqTLKpR00f4zpcrTnCorlhnsBOxdhzBMNcRI=";
};
vendorHash = null;
nativeBuildInputs = [
installShellFiles
];
ldflags = [ "-s" "-w" ];
postInstall = ''
installManPage doc/tf.1
'';
meta = with lib; {
description = "Finds the fields (or combinations of fields) which appear most often in a stream of records";
homepage = "https://github.com/timbray/topfew";
license = licenses.gpl3Only;
maintainers = with maintainers; [ figsoda ];
mainProgram = "tf";
};
}

View File

@ -11276,6 +11276,8 @@ with pkgs;
phosh-mobile-settings = callPackage ../applications/window-managers/phosh/phosh-mobile-settings.nix { }; phosh-mobile-settings = callPackage ../applications/window-managers/phosh/phosh-mobile-settings.nix { };
piknik = callPackage ../tools/networking/piknik { };
pinentry = libsForQt5.callPackage ../tools/security/pinentry { }; pinentry = libsForQt5.callPackage ../tools/security/pinentry { };
pinentry-curses = (lib.getOutput "curses" pinentry); pinentry-curses = (lib.getOutput "curses" pinentry);
@ -13112,6 +13114,8 @@ with pkgs;
toml2nix = callPackage ../development/tools/toml2nix { }; toml2nix = callPackage ../development/tools/toml2nix { };
topfew = callPackage ../tools/text/topfew { };
topfew-rs = callPackage ../tools/text/topfew-rs { }; topfew-rs = callPackage ../tools/text/topfew-rs { };
topgrade = callPackage ../tools/misc/topgrade { topgrade = callPackage ../tools/misc/topgrade {
@ -30069,6 +30073,8 @@ with pkgs;
amazon-ecr-credential-helper = callPackage ../tools/admin/amazon-ecr-credential-helper { }; amazon-ecr-credential-helper = callPackage ../tools/admin/amazon-ecr-credential-helper { };
dk = callPackage ../applications/window-managers/dk { };
docker-credential-gcr = callPackage ../tools/admin/docker-credential-gcr { }; docker-credential-gcr = callPackage ../tools/admin/docker-credential-gcr { };
docker-credential-helpers = callPackage ../tools/admin/docker-credential-helpers { }; docker-credential-helpers = callPackage ../tools/admin/docker-credential-helpers { };
@ -40715,4 +40721,6 @@ with pkgs;
isolate = callPackage ../tools/security/isolate { }; isolate = callPackage ../tools/security/isolate { };
reindeer = callPackage ../development/tools/reindeer { }; reindeer = callPackage ../development/tools/reindeer { };
charasay = callPackage ../tools/misc/charasay { };
} }