Merge remote-tracking branch 'origin/staging-next' into staging

This commit is contained in:
K900 2024-01-18 19:15:32 +03:00
commit 967d49b8a8
74 changed files with 1772 additions and 1094 deletions

View file

@ -62,7 +62,8 @@ rec {
is32bit = { cpu = { bits = 32; }; }; is32bit = { cpu = { bits = 32; }; };
is64bit = { cpu = { bits = 64; }; }; is64bit = { cpu = { bits = 64; }; };
isILP32 = map (a: { abi = { abi = a; }; }) [ "n32" "ilp32" "x32" ]; isILP32 = [ { cpu = { family = "wasm"; bits = 32; }; } ] ++
map (a: { abi = { abi = a; }; }) [ "n32" "ilp32" "x32" ];
isBigEndian = { cpu = { significantByte = significantBytes.bigEndian; }; }; isBigEndian = { cpu = { significantByte = significantBytes.bigEndian; }; };
isLittleEndian = { cpu = { significantByte = significantBytes.littleEndian; }; }; isLittleEndian = { cpu = { significantByte = significantBytes.littleEndian; }; };

View file

@ -3406,8 +3406,7 @@
}; };
chuangzhu = { chuangzhu = {
name = "Chuang Zhu"; name = "Chuang Zhu";
email = "chuang@melty.land"; email = "nixos@chuang.cz";
matrix = "@chuangzhu:matrix.org";
github = "chuangzhu"; github = "chuangzhu";
githubId = 31200881; githubId = 31200881;
keys = [{ keys = [{
@ -17255,6 +17254,12 @@
githubId = 3789764; githubId = 3789764;
name = "skykanin"; name = "skykanin";
}; };
skyrina = {
email = "sorryu02@gmail.com";
github = "skyrina";
githubId = 116099351;
name = "Skylar";
};
slam-bert = { slam-bert = {
github = "slam-bert"; github = "slam-bert";
githubId = 106779009; githubId = 106779009;
@ -20920,6 +20925,12 @@
githubId = 81353; githubId = 81353;
name = "Alexandre Macabies"; name = "Alexandre Macabies";
}; };
zoriya = {
email = "zoe.roux@zoriya.dev";
github = "zoriya";
githubId = 32224410;
name = "Zoe Roux";
};
zowoq = { zowoq = {
github = "zowoq"; github = "zowoq";
githubId = 59103226; githubId = 59103226;

View file

@ -130,6 +130,10 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
- `security.pam.enableSSHAgentAuth` now requires `services.openssh.authorizedKeysFiles` to be non-empty, - `security.pam.enableSSHAgentAuth` now requires `services.openssh.authorizedKeysFiles` to be non-empty,
which is the case when `services.openssh.enable` is true. Previously, `pam_ssh_agent_auth` silently failed to work. which is the case when `services.openssh.enable` is true. Previously, `pam_ssh_agent_auth` silently failed to work.
- The configuration format for `services.prometheus.exporters.snmp` changed with release 0.23.0.
The module now includes an optional config check, that is enabled by default, to make the change obvious before any deployment.
More information about the configuration syntax change is available in the [upstream repository](https://github.com/prometheus/snmp_exporter/blob/b75fc6b839ee3f3ccbee68bee55f1ae99555084a/auth-split-migration.md).
## Other Notable Changes {#sec-release-24.05-notable-changes} ## Other Notable Changes {#sec-release-24.05-notable-changes}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

View file

@ -72,7 +72,7 @@ services.nginx = {
}; };
}; };
}; };
} };
``` ```
## Using ACME certificates in Apache/httpd {#module-security-acme-httpd} ## Using ACME certificates in Apache/httpd {#module-security-acme-httpd}
@ -111,7 +111,7 @@ services.nginx = {
}; };
}; };
}; };
} };
# Alternative config for Apache # Alternative config for Apache
users.users.wwwrun.extraGroups = [ "acme" ]; users.users.wwwrun.extraGroups = [ "acme" ];
services.httpd = { services.httpd = {
@ -131,7 +131,7 @@ services.httpd = {
''; '';
}; };
}; };
} };
``` ```
Now you need to configure ACME to generate a certificate. Now you need to configure ACME to generate a certificate.
@ -181,7 +181,7 @@ services.bind = {
extraConfig = "allow-update { key rfc2136key.example.com.; };"; extraConfig = "allow-update { key rfc2136key.example.com.; };";
} }
]; ];
} };
# Now we can configure ACME # Now we can configure ACME
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
@ -271,7 +271,7 @@ services.nginx = {
acmeRoot = null; acmeRoot = null;
}; };
}; };
} };
``` ```
And that's it! Next time your configuration is rebuilt, or when And that's it! Next time your configuration is rebuilt, or when

View file

@ -4,6 +4,25 @@ with lib;
let let
cfg = config.services.prometheus.exporters.snmp; cfg = config.services.prometheus.exporters.snmp;
# This ensures that we can deal with string paths, path types and
# store-path strings with context.
coerceConfigFile = file:
if (builtins.isPath file) || (lib.isStorePath file) then
file
else
(lib.warn ''
${logPrefix}: configuration file "${file}" is being copied to the nix-store.
If you would like to avoid that, please set enableConfigCheck to false.
'' /. + file);
checkConfig = file:
pkgs.runCommandLocal "checked-snmp-exporter-config.yml" {
nativeBuildInputs = [ pkgs.buildPackages.prometheus-snmp-exporter ];
} ''
ln -s ${coerceConfigFile file} $out
snmp_exporter --dry-run --config.file $out
'';
in in
{ {
port = 9116; port = 9116;
@ -24,15 +43,23 @@ in
Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option. Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
''; '';
example = { example = {
"default" = { auths.public_v2 = {
"version" = 2; community = "public";
"auth" = { version = 2;
"community" = "public";
};
}; };
}; };
}; };
enableConfigCheck = mkOption {
type = types.bool;
default = true;
description = lib.mdDoc ''
Whether to run a correctness check for the configuration file. This depends
on the configuration file residing in the nix-store. Paths passed as string will
be copied to the store.
'';
};
logFormat = mkOption { logFormat = mkOption {
type = types.enum ["logfmt" "json"]; type = types.enum ["logfmt" "json"];
default = "logfmt"; default = "logfmt";
@ -50,9 +77,13 @@ in
}; };
}; };
serviceOpts = let serviceOpts = let
configFile = if cfg.configurationPath != null uncheckedConfigFile = if cfg.configurationPath != null
then cfg.configurationPath then cfg.configurationPath
else "${pkgs.writeText "snmp-exporter-conf.yml" (builtins.toJSON cfg.configuration)}"; else "${pkgs.writeText "snmp-exporter-conf.yml" (builtins.toJSON cfg.configuration)}";
configFile = if cfg.enableConfigCheck then
checkConfig uncheckedConfigFile
else
uncheckedConfigFile;
in { in {
serviceConfig = { serviceConfig = {
ExecStart = '' ExecStart = ''

View file

@ -1392,9 +1392,11 @@ let
snmp = { snmp = {
exporterConfig = { exporterConfig = {
enable = true; enable = true;
configuration.default = { configuration = {
version = 2; auths.public_v2 = {
auth.community = "public"; community = "public";
version = 2;
};
}; };
}; };
exporterTest = '' exporterTest = ''

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, pkg-config , pkg-config
@ -38,6 +39,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY="; sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY=";
}; };
# Backport GCC 13 build fix
# FIXME: remove in next release
patches = [
(fetchpatch {
url = "https://github.com/LibreSprite/LibreSprite/commit/6ffe8472194bf5d0a73b4b2cd7f6804d3c80aa0c.patch";
hash = "sha256-5chXt0H+koofIspYsCJ7/eUxMGcCBVXJcXe3U/7F9Vc=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config

View file

@ -6,14 +6,13 @@
, curl , curl
, extra-cmake-modules , extra-cmake-modules
, ffmpeg , ffmpeg
, gettext
, harfbuzz
, libaio , libaio
, libbacktrace , libbacktrace
, libpcap , libpcap
, libsamplerate , libwebp
, libXrandr , libXrandr
, libzip , libzip
, lz4
, makeWrapper , makeWrapper
, pkg-config , pkg-config
, qtbase , qtbase
@ -29,6 +28,7 @@
, wrapQtAppsHook , wrapQtAppsHook
, xz , xz
, zip , zip
, zstd
}: }:
let let
@ -36,26 +36,30 @@ let
pcsx2_patches = fetchFromGitHub { pcsx2_patches = fetchFromGitHub {
owner = "PCSX2"; owner = "PCSX2";
repo = "pcsx2_patches"; repo = "pcsx2_patches";
rev = "42d7ee72b66955e3bbd2caaeaa855f605b463722"; rev = "619e75bb8db50325b44863f2ccf3c39470c3d5a3";
sha256 = "sha256-Zd+Aeps2IWVX2fS1Vyczv/wAX8Z89XnCH1eqSPdYEw8="; sha256 = "sha256-2KE0W3WwBJCLe8DosyDVsFtEofKgBsChpQEQe+3O+Hg=";
}; };
in in
llvmPackages_17.stdenv.mkDerivation rec { llvmPackages_17.stdenv.mkDerivation rec {
pname = "pcsx2"; pname = "pcsx2";
version = "1.7.5318"; version = "1.7.5474";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PCSX2"; owner = "PCSX2";
repo = "pcsx2"; repo = "pcsx2";
fetchSubmodules = true; fetchSubmodules = true;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-5SUlq3HQAzROG1yncA4u4XGVv+1I+s9FQ6LgJkiLSD0="; sha256 = "sha256-5ZCXw6PEQ6Ed6kEP27m9O0U79uVGEFR/vwee6/dZBD8=";
}; };
patches = [
./define-rev.patch
];
cmakeFlags = [ cmakeFlags = [
"-DDISABLE_ADVANCE_SIMD=ON" "-DDISABLE_ADVANCE_SIMD=ON"
"-DUSE_LINKED_FFMPEG=ON" "-DUSE_LINKED_FFMPEG=ON"
"-DDISABLE_BUILD_DATE=ON" "-DPCSX2_GIT_REV=v${version}"
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -70,14 +74,13 @@ llvmPackages_17.stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
curl curl
ffmpeg ffmpeg
gettext
harfbuzz
libaio libaio
libbacktrace libbacktrace
libpcap libpcap
libsamplerate libwebp
libXrandr libXrandr
libzip libzip
lz4
qtbase qtbase
qtsvg qtsvg
qttools qttools
@ -85,9 +88,9 @@ llvmPackages_17.stdenv.mkDerivation rec {
SDL2 SDL2
soundtouch soundtouch
vulkan-headers vulkan-headers
vulkan-loader
wayland wayland
xz xz
zstd
] ]
++ cubeb.passthru.backendLibs; ++ cubeb.passthru.backendLibs;

View file

@ -0,0 +1,12 @@
diff --git a/cmake/Pcsx2Utils.cmake b/cmake/Pcsx2Utils.cmake
index 87f012c..052f1be 100644
--- a/cmake/Pcsx2Utils.cmake
+++ b/cmake/Pcsx2Utils.cmake
@@ -44,7 +44,6 @@ function(detect_compiler)
endfunction()
function(get_git_version_info)
- set(PCSX2_GIT_REV "")
set(PCSX2_GIT_TAG "")
set(PCSX2_GIT_HASH "")
if (GIT_FOUND AND EXISTS ${PROJECT_SOURCE_DIR}/.git)

View file

@ -31,6 +31,7 @@ buildFHSEnv rec {
ocl-icd # needed for opencl ocl-icd # needed for opencl
numactl # needed by hfs ocl backend numactl # needed by hfs ocl backend
ncurses5 # needed by hfs ocl backend ncurses5 # needed by hfs ocl backend
zstd # needed from 20.0
] ++ (with xorg; [ ] ++ (with xorg; [
libICE libICE
libSM libSM

View file

@ -1,14 +1,11 @@
{ lib, stdenv, requireFile, callPackage}: { lib, stdenv, requireFile, callPackage}:
let
license_dir = "~/.config/houdini";
in
callPackage ./runtime-build.nix rec { callPackage ./runtime-build.nix rec {
version = "19.5.569"; version = "20.0.506";
eulaDate = "2021-10-13"; eulaDate = "2021-10-13";
src = requireFile rec { src = requireFile rec {
name = "houdini-${version}-linux_x86_64_gcc9.3.tar.gz"; name = "houdini-${version}-linux_x86_64_gcc11.2.tar.gz";
sha256 = "0c2d6a31c24f5e7229498af6c3a7cdf81242501d7a0792e4c33b53a898d4999e"; sha256 = "10dcb695bf9bb6407ccfd91c67858d69864208ee97e1e9afe216abf99db549f5";
url = "https://www.sidefx.com/download/daily-builds/?production=true"; url = "https://www.sidefx.com/download/daily-builds/?production=true";
}; };
} }

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "easycrypt"; pname = "easycrypt";
version = "2023.09"; version = "2024.01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "r${version}"; rev = "r${version}";
hash = "sha256-9xavU9jRisZekPqC87EyiLXtZCGu/9QeGzq6BJGt1+Y="; hash = "sha256-UYDoVMi5TtYxgPq5nkp/oRtcMcHl2p7KAG8ptvuOL5U=";
}; };
nativeBuildInputs = with ocamlPackages; [ nativeBuildInputs = with ocamlPackages; [

View file

@ -54,11 +54,18 @@ in python.pkgs.buildPythonApplication rec {
owner = "ManimCommunity"; owner = "ManimCommunity";
repo = "manim"; repo = "manim";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-TI7O0b1JvUZAxTj6XfpAJKhbGqrGnhcrE9eRJUVx4GM="; hash = "sha256-TI7O0b1JvUZAxTj6XfpAJKhbGqrGnhcrE9eRJUVx4GM=";
}; };
nativeBuildInputs = with python.pkgs; [ nativeBuildInputs = with python.pkgs; [
poetry-core poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"cloup"
"pillow"
"skia-pathops"
]; ];
patches = [ patches = [
@ -67,8 +74,7 @@ in python.pkgs.buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "--no-cov-on-fail --cov=manim --cov-report xml --cov-report term" "" \ --replace "--no-cov-on-fail --cov=manim --cov-report xml --cov-report term" ""
--replace 'cloup = "^0.13.0"' 'cloup = "*"' \
''; '';
buildInputs = [ cairo ]; buildInputs = [ cairo ];

View file

@ -3,36 +3,26 @@
{ name { name
, description ? "" , description ? ""
, deps ? [] , deps ? []
}: , ...
}@args:
let stdenvNoCC.mkDerivation (lib.recursiveUpdate {
nuget-source = stdenvNoCC.mkDerivation { inherit name;
inherit name;
nativeBuildInputs = [ python3 ]; nativeBuildInputs = [ python3 ];
buildCommand = '' buildCommand = ''
mkdir -p $out/{lib,share} mkdir -p $out/{lib,share}
# use -L to follow symbolic links. When `projectReferences` is used in # use -L to follow symbolic links. When `projectReferences` is used in
# buildDotnetModule, one of the deps will be a symlink farm. # buildDotnetModule, one of the deps will be a symlink farm.
find -L ${lib.concatStringsSep " " deps} -type f -name '*.nupkg' -exec \ find -L ${lib.concatStringsSep " " deps} -type f -name '*.nupkg' -exec \
ln -s '{}' -t $out/lib ';' ln -s '{}' -t $out/lib ';'
# Generates a list of all licenses' spdx ids, if available. # Generates a list of all licenses' spdx ids, if available.
# Note that this currently ignores any license provided in plain text (e.g. "LICENSE.txt") # Note that this currently ignores any license provided in plain text (e.g. "LICENSE.txt")
python ${./extract-licenses-from-nupkgs.py} $out/lib > $out/share/licenses python ${./extract-licenses-from-nupkgs.py} $out/lib > $out/share/licenses
''; '';
meta.description = description; meta.description = description;
} // { # We need data from `$out` for `meta`, so we have to use overrides as to not hit infinite recursion. } (removeAttrs args [ "name" "description" "deps" ]))
meta = nuget-source.meta // {
licenses = let
# TODO: avoid IFD
depLicenses = lib.splitString "\n" (builtins.readFile "${nuget-source}/share/licenses");
in lib.flatten (lib.forEach depLicenses (spdx:
lib.optionals (spdx != "") (lib.getLicenseFromSpdxId spdx)
));
};
};
in nuget-source

View file

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "arjun"; pname = "arjun";
version = "2.2.1"; version = "2.2.2";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "s0md3v"; owner = "s0md3v";
repo = "Arjun"; repo = "Arjun";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-YxfUlD7aBwoYYsZE0zTZxoXg1TgU2yT1V+mglmsXtlo="; hash = "sha256-odVUFs517RSp66MymniSeTKTntQtXomjC68Hhdsglf0=";
}; };
nativeBuildInputs = with python3.pkgs; [ nativeBuildInputs = with python3.pkgs; [

View file

@ -0,0 +1,38 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, openssl
}:
stdenv.mkDerivation rec {
pname = "bruteforce-salted-openssl";
version = "1.4.2";
src = fetchFromGitHub {
owner = "glv2";
repo = "bruteforce-salted-openssl";
rev = version;
hash = "sha256-ICxXdKjRP2vXdJpjn0PP0/6rw9LKju0nVOSj47TyrzY=";
};
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
openssl
];
enableParallelBuilding = true;
meta = with lib; {
description = "Try to find the password of file encrypted with OpenSSL";
homepage = "https://github.com/glv2/bruteforce-salted-openssl";
changelog = "https://github.com/glv2/bruteforce-salted-openssl/blob/${src.rev}/NEWS";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ octodi ];
mainProgram = "bruteforce-salted-openssl";
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, openssl
, db
}:
stdenv.mkDerivation rec {
pname = "bruteforce-wallet";
version = "1.5.3";
src = fetchFromGitHub {
owner = "glv2";
repo = "bruteforce-wallet";
rev = version;
hash = "sha256-1sMoVlQK3ceFOHyGeXKXUD35HmMxVX8w7qefZrzAj5k=";
};
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
openssl
db
];
enableParallelBuilding = true;
meta = with lib; {
description = "Try to find password of encrypted cryptocurrency wallet";
homepage = "https://github.com/glv2/bruteforce-wallet";
changelog = "https://github.com/glv2/bruteforce-wallet/blob/${src.rev}/NEWS";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ octodi ];
mainProgram = "bruteforce-wallet";
platforms = platforms.linux;
};
}

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,6 @@
lib, lib,
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
rust,
rustPlatform, rustPlatform,
cmake, cmake,
makeBinaryWrapper, makeBinaryWrapper,
@ -21,13 +20,13 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cosmic-edit"; pname = "cosmic-edit";
version = "unstable-2023-11-29"; version = "0-unstable-2024-01-12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pop-os"; owner = "pop-os";
repo = pname; repo = pname;
rev = "4a3dd101f35eb3c1c585f104d78ed4ee31d393d3"; rev = "c1944f9c15812ce842c91a77e228cc22a0f49f18";
hash = "sha256-pk+4u13oWZ4fgXy1tlDgq+E4J+UddjTNSexMm4dgBSo="; hash = "sha256-wJnBfBQKYmpJBSboGKtlwew17clE60ac2AismIe1XaA=";
}; };
cargoLock = { cargoLock = {
@ -35,8 +34,10 @@ rustPlatform.buildRustPackage rec {
outputHashes = { outputHashes = {
"accesskit-0.11.0" = "sha256-xVhe6adUb8VmwIKKjHxwCwOo5Y1p3Or3ylcJJdLDrrE="; "accesskit-0.11.0" = "sha256-xVhe6adUb8VmwIKKjHxwCwOo5Y1p3Or3ylcJJdLDrrE=";
"atomicwrites-0.4.2" = "sha256-QZSuGPrJXh+svMeFWqAXoqZQxLq/WfIiamqvjJNVhxA="; "atomicwrites-0.4.2" = "sha256-QZSuGPrJXh+svMeFWqAXoqZQxLq/WfIiamqvjJNVhxA=";
"cosmic-config-0.1.0" = "sha256-wBliqZbRHYiwZmu0vHeIP5DFzg/1IeQP3aMxiYC88bo="; "cosmic-config-0.1.0" = "sha256-GHjoLGF9hFJRpf5i+TwflRnh8N+oWyWZ9fqgRFLXQsw=";
"cosmic-text-0.10.0" = "sha256-fE5HkhITLw0OBfFLFMsKEJw5idO265i4S7qylHTt7C0="; "cosmic-syntax-theme-0.1.0" = "sha256-9Vf2s5Ry2hco80EbXOuVLwvOWygRiuaRD4tTImWooSg=";
"cosmic-text-0.10.0" = "sha256-PHz5jUecK889E88Y20XUe2adTUO8ElnoV7IIcaohMUw=";
"glyphon-0.3.0" = "sha256-JGkNIfj1HjOF8kGxqJPNq/JO+NhZD6XrZ4KmkXEP6Xc=";
"sctk-adwaita-0.5.4" = "sha256-yK0F2w/0nxyKrSiHZbx7+aPNY2vlFs7s8nu/COp2KqQ="; "sctk-adwaita-0.5.4" = "sha256-yK0F2w/0nxyKrSiHZbx7+aPNY2vlFs7s8nu/COp2KqQ=";
"softbuffer-0.3.3" = "sha256-eKYFVr6C1+X6ulidHIu9SP591rJxStxwL9uMiqnXx4k="; "softbuffer-0.3.3" = "sha256-eKYFVr6C1+X6ulidHIu9SP591rJxStxwL9uMiqnXx4k=";
"smithay-client-toolkit-0.16.1" = "sha256-z7EZThbh7YmKzAACv181zaEZmWxTrMkFRzP0nfsHK6c="; "smithay-client-toolkit-0.16.1" = "sha256-z7EZThbh7YmKzAACv181zaEZmWxTrMkFRzP0nfsHK6c=";
@ -50,12 +51,7 @@ rustPlatform.buildRustPackage rec {
substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)" substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)"
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ just pkg-config makeBinaryWrapper ];
cmake
just
pkg-config
makeBinaryWrapper
];
buildInputs = [ buildInputs = [
libxkbcommon libxkbcommon
xorg.libX11 xorg.libX11
@ -75,9 +71,7 @@ rustPlatform.buildRustPackage rec {
(placeholder "out") (placeholder "out")
"--set" "--set"
"bin-src" "bin-src"
"target/${ "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-edit"
rust.lib.toRustTargetSpecShort stdenv.hostPlatform
}/release/cosmic-edit"
]; ];
# LD_LIBRARY_PATH can be removed once tiny-xlib is bumped above 0.2.2 # LD_LIBRARY_PATH can be removed once tiny-xlib is bumped above 0.2.2
@ -91,7 +85,7 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/pop-os/cosmic-edit"; homepage = "https://github.com/pop-os/cosmic-edit";
description = "Text Editor for the COSMIC Desktop Environment"; description = "Text Editor for the COSMIC Desktop Environment";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ ahoneybun ]; maintainers = with maintainers; [ ahoneybun nyanbinary ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View file

@ -10,8 +10,6 @@
just, just,
pkg-config, pkg-config,
libxkbcommon, libxkbcommon,
glib,
gtk3,
libinput, libinput,
fontconfig, fontconfig,
freetype, freetype,
@ -63,8 +61,6 @@ rustPlatform.buildRustPackage rec {
fontconfig fontconfig
freetype freetype
wayland wayland
glib
gtk3
]; ];
dontUseJustBuild = true; dontUseJustBuild = true;
@ -84,7 +80,7 @@ rustPlatform.buildRustPackage rec {
postInstall = '' postInstall = ''
wrapProgram "$out/bin/${pname}" \ wrapProgram "$out/bin/${pname}" \
--suffix XDG_DATA_DIRS : "${cosmic-icons}/share" \ --suffix XDG_DATA_DIRS : "${cosmic-icons}/share" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ xorg.libX11 wayland libxkbcommon ]} --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ xorg.libX11 xorg.libXcursor xorg.libXrandr xorg.libXi wayland libxkbcommon ]}
''; '';
meta = with lib; { meta = with lib; {

View file

@ -0,0 +1,18 @@
{ buildDotnetGlobalTool, lib }:
buildDotnetGlobalTool {
pname = "csharpier";
version = "0.27.0";
executables = "dotnet-csharpier";
nugetSha256 = "sha256-aI8sZoUXAA/bOn7ITMkBFXHeTVRm9O/qX+bWfOKwRDs=";
meta = with lib; {
description = "An opinionated code formatter for C#";
homepage = "https://csharpier.com/";
changelog = "https://github.com/belav/csharpier/blob/main/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ zoriya ];
mainProgram = "dotnet-csharpier";
};
}

View file

@ -0,0 +1,65 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, SDL2
, alsa-lib
, ffmpeg
, lua5_3
, qt5
, file
, makeDesktopItem
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libtas";
version = "1.4.5";
src = fetchFromGitHub {
owner = "clementgallet";
repo = "libTAS";
rev = "v${finalAttrs.version}";
hash = "sha256-n4iaJG9k+/TFfGMDCYL83Z6paxpm/gY3thP9T84GeQU=";
};
nativeBuildInputs = [ autoreconfHook qt5.wrapQtAppsHook pkg-config ];
buildInputs = [ SDL2 alsa-lib ffmpeg lua5_3 qt5.qtbase ];
configureFlags = [
"--enable-release-build"
];
postInstall = ''
mkdir -p $out/lib
mv $out/bin/libtas*.so $out/lib/
'';
enableParallelBuilding = true;
postFixup = ''
wrapProgram $out/bin/libTAS \
--suffix PATH : ${lib.makeBinPath [ file ]} \
--set-default LIBTAS_SO_PATH $out/lib/libtas.so
'';
desktopItems = [
(makeDesktopItem {
name = "libTAS";
desktopName = "libTAS";
exec = "libTAS %U";
icon = "libTAS";
startupWMClass = "libTAS";
keywords = [ "libTAS" ];
})
];
meta = with lib; {
homepage = "https://clementgallet.github.io/libTAS/";
description = "GNU/Linux software to give TAS tools to games";
license = lib.licenses.gpl3Only;
maintainers = with maintainers; [ skyrina ];
mainProgram = "libTAS";
platforms = [ "i686-linux" "x86_64-linux" ];
};
})

View file

@ -0,0 +1,50 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, libevdev
, kmod
, bash
, installShellFiles
}:
let
pname = "modprobed-db";
version = "2.46";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "graysky2";
repo = "modprobed-db";
rev = "v${version}";
hash = "sha256-GQME5CAZsGVHSPowKQMyUR7OjHeFZi/5YcWFUT9L/AQ=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ kmod libevdev bash ];
installFlags = [
"PREFIX=$(out)"
"INITDIR_SYSTEMD=$(out)/lib/systemd/user"
];
postPatch = ''
substituteInPlace ./common/modprobed-db.in \
--replace "/usr/share" "$out/share"
'';
postInstall = ''
installShellCompletion --zsh common/zsh-completion
'';
meta = {
homepage = "https://github.com/graysky2/modprobed-db";
description = "Useful utility for users wishing to build a minimal kernel via a make localmodconfig";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ NotAShelf ];
mainProgram = "modprobed-db";
platforms = lib.platforms.linux;
};
}

View file

@ -11,13 +11,13 @@
buildDotnetModule rec { buildDotnetModule rec {
pname = "naps2"; pname = "naps2";
version = "7.2.2"; version = "7.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cyanfish"; owner = "cyanfish";
repo = "naps2"; repo = "naps2";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ikt0gl/pNjEaENj1WRLdn/Zvx349FAGpzSV62Y2GwXI="; hash = "sha256-aR4IDPfcbWWyM+1MhSWIsNUNLi43MvbWBykoEkVbe+4=";
}; };
projectFile = "NAPS2.App.Gtk/NAPS2.App.Gtk.csproj"; projectFile = "NAPS2.App.Gtk/NAPS2.App.Gtk.csproj";

View file

@ -0,0 +1,62 @@
{ lib
, python3
, fetchFromGitLab
, desktop-file-utils
, gobject-introspection
, gtk3
, libhandy
, meson
, ninja
, pkg-config
, wrapGAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "powersupply";
version = "0.9.0";
format = "other";
src = fetchFromGitLab {
owner = "martijnbraam";
repo = "powersupply";
rev = version;
hash = "sha256-3NXoOqveMlMezYe4C78F3764KeAy5Sz3M714PO3h/eI=";
};
nativeBuildInputs = [
desktop-file-utils
gtk3
gobject-introspection
meson
ninja
pkg-config
wrapGAppsHook
];
buildInputs = [
gtk3
libhandy
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
strictDeps = true;
meta = with lib; {
description = "Graphical app to display power status of mobile Linux platforms";
homepage = "https://gitlab.com/MartijnBraam/powersupply";
license = licenses.mit;
mainProgram = "powersupply";
platforms = platforms.linux;
maintainers = with maintainers; [ Luflosi ];
};
}

View file

@ -0,0 +1,53 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, darwin
}:
stdenv.mkDerivation rec {
pname = "qgrep";
version = "1.3";
src = fetchFromGitHub {
owner = "zeux";
repo = "qgrep";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-TeXOzfb1Nu6hz9l6dXGZY+xboscPapKm0Z264hv1Aww=";
};
patches = [
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/zeux/qgrep/commit/8810ab153ec59717a5d7537b3e7812c01cd80848.patch";
hash = "sha256-lCMvpuLZluT6Rw8RFZ2uY9bffPBoq6sRVWYLUmeXfOg=";
})
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.CoreFoundation
];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
"-Wno-error=unused-command-line-argument"
"-Wno-error=unqualified-std-cast-call"
]);
installPhase = ''
runHook preInstall
install -Dm755 qgrep $out/bin/qgrep
runHook postInstall
'';
meta = with lib; {
description = "Fast regular expression grep for source code with incremental index updates";
homepage = "https://github.com/zeux/qgrep";
license = licenses.mit;
maintainers = [ maintainers.yrashk ];
platforms = platforms.all;
};
}

View file

@ -1,18 +1,25 @@
{ lib, buildPythonApplication, fetchFromGitHub { lib
, requests, scapy }: , fetchFromGitHub
, python3
}:
buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "websploit"; pname = "websploit";
version = "4.0.4"; version = "4.0.4";
pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "f4rih"; owner = "f4rih";
repo = pname; repo = "websploit";
rev = version; rev = "refs/tags/${version}";
sha256 = "LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw="; sha256 = "LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw=";
}; };
propagatedBuildInputs = [ nativeBuildInputs = with python3.pkgs; [
setuptools
];
propagatedBuildInputs = with python3.pkgs; [
requests requests
scapy scapy
]; ];
@ -20,10 +27,16 @@ buildPythonApplication rec {
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [
"websploit"
];
meta = with lib; { meta = with lib; {
description = "A high level MITM framework"; description = "A high level MITM framework";
homepage = "https://github.com/f4rih/websploit"; homepage = "https://github.com/f4rih/websploit";
changelog = "https://github.com/f4rih/websploit/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ emilytrau ]; maintainers = with maintainers; [ emilytrau ];
mainProgram = "websploit";
}; };
} }

View file

@ -2,16 +2,16 @@
buildNpmPackage rec { buildNpmPackage rec {
pname = "whistle"; pname = "whistle";
version = "2.9.62"; version = "2.9.63";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "avwo"; owner = "avwo";
repo = "whistle"; repo = "whistle";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-sAG08hUhsd/73seBnQaSzKE/ej+c7aee34xG468gMF4="; hash = "sha256-Dp3bW31INOVMCAculPsGHmzkQiWawfo5k9ALs21C1mc=";
}; };
npmDepsHash = "sha256-2CISLLcoTkSKfpJDbLApqh3KtpIxYEjSKzUfw202Zkc="; npmDepsHash = "sha256-Qqtp0SukzkuG1DGMcKP4eLXGfWHMZY9TcyP280wkk0g=";
dontNpmBuild = true; dontNpmBuild = true;

File diff suppressed because it is too large Load diff

View file

@ -2,24 +2,24 @@
, lib , lib
, libffi , libffi
, libxml2 , libxml2
, llvmPackages_13 , llvmPackages_16
, ncurses , ncurses
, rustPlatform , rustPlatform
}: }:
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
pname = "ante"; pname = "ante";
version = "unstable-2022-08-22"; version = "unstable-2023-12-18";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jfecher"; owner = "jfecher";
repo = "ante"; repo = "ante";
rev = "8b708d549c213c34e4ca62d31cf0dd25bfa7b548"; rev = "e38231ffa51b84a2ca53b4b0439d1ca5e0dea32a";
sha256 = "sha256-s8nDuG32lI4pBLsOzgfyUGpc7/r0j4EhzH54ErBK7A0="; hash = "sha256-UKEoOm+Jc0YUwO74Tn038MLeX/c3d2z8I0cTBVfX61U=";
}; };
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"inkwell-0.1.0" = "sha256-vWrpF66r5HalGQz2jSmQljfz0EgS7shLw7A8q75j3tE="; "inkwell-0.2.0" = "sha256-eMoclRtekg8v+m5KsTcjB3zCdPkcJy42NALEEuT/fw8=";
}; };
}; };
@ -28,7 +28,7 @@ rustPlatform.buildRustPackage {
llvm-sys requires a specific version of llvmPackages, llvm-sys requires a specific version of llvmPackages,
that is not the same as the one included by default with rustPlatform. that is not the same as the one included by default with rustPlatform.
*/ */
nativeBuildInputs = [ llvmPackages_13.llvm ]; nativeBuildInputs = [ llvmPackages_16.llvm ];
buildInputs = [ libffi libxml2 ncurses ]; buildInputs = [ libffi libxml2 ncurses ];
postPatch = '' postPatch = ''
@ -37,13 +37,13 @@ rustPlatform.buildRustPackage {
''; '';
preBuild = preBuild =
let let
major = lib.versions.major llvmPackages_13.llvm.version; major = lib.versions.major llvmPackages_16.llvm.version;
minor = lib.versions.minor llvmPackages_13.llvm.version; minor = lib.versions.minor llvmPackages_16.llvm.version;
llvm-sys-ver = "${major}${builtins.substring 0 1 minor}"; llvm-sys-ver = "${major}${builtins.substring 0 1 minor}";
in in
'' ''
# On some architectures llvm-sys is not using the package listed inside nativeBuildInputs # On some architectures llvm-sys is not using the package listed inside nativeBuildInputs
export LLVM_SYS_${llvm-sys-ver}_PREFIX=${llvmPackages_13.llvm.dev} export LLVM_SYS_${llvm-sys-ver}_PREFIX=${llvmPackages_16.llvm.dev}
export ANTE_STDLIB_DIR=$out/lib export ANTE_STDLIB_DIR=$out/lib
mkdir -p $ANTE_STDLIB_DIR mkdir -p $ANTE_STDLIB_DIR
cp -r $src/stdlib/* $ANTE_STDLIB_DIR cp -r $src/stdlib/* $ANTE_STDLIB_DIR

View file

@ -251,6 +251,11 @@ let
++ lib.optionals (targetPlatform.isMips && targetPlatform.parsed.abi.name == "gnu" && lib.versions.major version == "12") [ ++ lib.optionals (targetPlatform.isMips && targetPlatform.parsed.abi.name == "gnu" && lib.versions.major version == "12") [
"--disable-libsanitizer" "--disable-libsanitizer"
] ]
++ lib.optionals targetPlatform.isAlpha [
# Workaround build failures like:
# cc1: error: fp software completion requires '-mtrap-precision=i' [-Werror]
"--disable-werror"
]
; ;
in configureFlags in configureFlags

View file

@ -48,6 +48,6 @@ in
# https://www.openwall.com/lists/musl/2022/11/09/3 # https://www.openwall.com/lists/musl/2022/11/09/3
# #
# 'parsed.cpu.family' won't be correct for every platform. # 'parsed.cpu.family' won't be correct for every platform.
+ lib.optionalString (stdenv.targetPlatform.isLoongArch64 || stdenv.targetPlatform.isS390) '' + lib.optionalString (stdenv.targetPlatform.isLoongArch64 || stdenv.targetPlatform.isS390 || stdenv.targetPlatform.isAlpha) ''
touch libgcc/config/${stdenv.targetPlatform.parsed.cpu.family}/crt{i,n}.S touch libgcc/config/${stdenv.targetPlatform.parsed.cpu.family}/crt{i,n}.S
'' ''

View file

@ -1,84 +1,115 @@
{ fdupes { fdupes
, buildFHSEnv
, fetchzip , fetchzip
, icoutils , icoutils
, imagemagick , imagemagick
, jdk17 , jdk17
, lib , lib
, makeDesktopItem , makeDesktopItem
, stdenv , stdenvNoCC
}: }:
let let
iconame = "STM32CubeMX"; iconame = "STM32CubeMX";
in package = stdenvNoCC.mkDerivation rec {
stdenv.mkDerivation rec { pname = "stm32cubemx";
pname = "stm32cubemx"; version = "6.10.0";
version = "6.10.0";
src = fetchzip { src = fetchzip {
url = "https://sw-center.st.com/packs/resource/library/stm32cube_mx_v${builtins.replaceStrings ["."] [""] version}-lin.zip"; url = "https://sw-center.st.com/packs/resource/library/stm32cube_mx_v${builtins.replaceStrings ["."] [""] version}-lin.zip";
sha256 = "sha256-B5Sf+zM7h9BiFqDYrLS0JdqZi3dGy6H9gAaJIN3izeM="; sha256 = "sha256-B5Sf+zM7h9BiFqDYrLS0JdqZi3dGy6H9gAaJIN3izeM=";
stripRoot = false; stripRoot = false;
}; };
nativeBuildInputs = [ fdupes icoutils imagemagick ]; nativeBuildInputs = [ fdupes icoutils imagemagick ];
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "STM32CubeMX"; name = "STM32CubeMX";
exec = "stm32cubemx"; exec = "stm32cubemx";
desktopName = "STM32CubeMX"; desktopName = "STM32CubeMX";
categories = [ "Development" ]; categories = [ "Development" ];
icon = "stm32cubemx"; icon = "stm32cubemx";
comment = meta.description; comment = meta.description;
terminal = false; terminal = false;
startupNotify = false; startupNotify = false;
mimeTypes = [ mimeTypes = [
"x-scheme-handler/sgnl" "x-scheme-handler/sgnl"
"x-scheme-handler/signalcaptcha" "x-scheme-handler/signalcaptcha"
]; ];
}; };
buildCommand = '' buildCommand = ''
mkdir -p $out/{bin,opt/STM32CubeMX,share/applications} mkdir -p $out/{bin,opt/STM32CubeMX,share/applications}
cp -r $src/MX/. $out/opt/STM32CubeMX/ cp -r $src/MX/. $out/opt/STM32CubeMX/
chmod +rx $out/opt/STM32CubeMX/STM32CubeMX chmod +rx $out/opt/STM32CubeMX/STM32CubeMX
cat << EOF > $out/bin/${pname} cat << EOF > $out/bin/${pname}
#!${stdenv.shell} #!${stdenvNoCC.shell}
${jdk17}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX ${jdk17}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX
EOF EOF
chmod +x $out/bin/${pname} chmod +x $out/bin/${pname}
icotool --extract $out/opt/STM32CubeMX/help/${iconame}.ico icotool --extract $out/opt/STM32CubeMX/help/${iconame}.ico
fdupes -dN . > /dev/null fdupes -dN . > /dev/null
ls ls
for size in 16 24 32 48 64 128 256; do for size in 16 24 32 48 64 128 256; do
mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps
if [ $size -eq 256 ]; then if [ $size -eq 256 ]; then
mv ${iconame}_*_"$size"x"$size"x32.png \ mv ${iconame}_*_"$size"x"$size"x32.png \
$out/share/icons/hicolor/"$size"x"$size"/apps/${pname}.png $out/share/icons/hicolor/"$size"x"$size"/apps/${pname}.png
else else
convert -resize "$size"x"$size" ${iconame}_*_256x256x32.png \ convert -resize "$size"x"$size" ${iconame}_*_256x256x32.png \
$out/share/icons/hicolor/"$size"x"$size"/apps/${pname}.png $out/share/icons/hicolor/"$size"x"$size"/apps/${pname}.png
fi fi
done; done;
cp ${desktopItem}/share/applications/*.desktop $out/share/applications cp ${desktopItem}/share/applications/*.desktop $out/share/applications
'';
meta = with lib; {
description = "A graphical tool for configuring STM32 microcontrollers and microprocessors";
longDescription = ''
A graphical tool that allows a very easy configuration of STM32
microcontrollers and microprocessors, as well as the generation of the
corresponding initialization C code for the Arm® Cortex®-M core or a
partial Linux® Device Tree for Arm® Cortex®-A core), through a
step-by-step process.
''; '';
homepage = "https://www.st.com/en/development-tools/stm32cubemx.html";
sourceProvenance = with sourceTypes; [ binaryBytecode ]; meta = with lib; {
license = licenses.unfree; description = "A graphical tool for configuring STM32 microcontrollers and microprocessors";
maintainers = with maintainers; [ angaz wucke13 ]; longDescription = ''
platforms = platforms.all; A graphical tool that allows a very easy configuration of STM32
microcontrollers and microprocessors, as well as the generation of the
corresponding initialization C code for the Arm® Cortex®-M core or a
partial Linux® Device Tree for Arm® Cortex®-A core), through a
step-by-step process.
'';
homepage = "https://www.st.com/en/development-tools/stm32cubemx.html";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.unfree;
maintainers = with maintainers; [ angaz wucke13 ];
platforms = [ "x86_64-linux" ];
};
}; };
in
buildFHSEnv {
inherit (package) pname meta;
runScript = "${package.outPath}/bin/stm32cubemx";
targetPkgs = pkgs:
with pkgs; [
alsa-lib
at-spi2-atk
cairo
cups
dbus
expat
glib
gtk3
libdrm
libGL
libudev0-shim
libxkbcommon
mesa
nspr
nss
pango
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXrandr
];
} }

View file

@ -1,13 +1,30 @@
{ lib, stdenv, fetchurl, cmake, boost, python3 }: { lib
, stdenv
, fetchurl
, fetchpatch
, cmake
, boost
, python3
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "avro-c++"; pname = "avro-c++";
version = "1.11.0"; version = "1.11.3";
src = fetchurl { src = fetchurl {
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz"; url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
sha256 = "sha256-73DKihz+7XAX3LLA7VkTdN6rFhuGvmyksxK8JMranFY="; hash = "sha256-+6JCrvd+yBnQdWH8upN1FyGVbejQyujh8vMAtUszG64=";
}; };
patches = [
# This patch fixes boost compatibility and can be removed when
# upgrading beyond 1.11.3 https://github.com/apache/avro/pull/1920
(fetchpatch {
name = "fix-boost-compatibility.patch";
url = "https://github.com/apache/avro/commit/016323828f147f185d03f50d2223a2f50bfafce1.patch";
hash = "sha256-hP/5J2JzSplMvg8EjEk98Vim8DfTyZ4hZ/WGiVwvM1A=";
})
];
patchFlags = [ "-p3" ];
nativeBuildInputs = [ cmake python3 ]; nativeBuildInputs = [ cmake python3 ];
buildInputs = [ boost ]; buildInputs = [ boost ];

View file

@ -86,7 +86,7 @@
, withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration , withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration
, withVdpau ? withSmallDeps # Vdpau hardware acceleration , withVdpau ? withSmallDeps # Vdpau hardware acceleration
, withVidStab ? withFullDeps # Video stabilization , withVidStab ? withFullDeps # Video stabilization
, withVmaf ? withFullDeps && withGPLv3 && !stdenv.isAarch64 # Netflix's VMAF (Video Multi-Method Assessment Fusion) , withVmaf ? withFullDeps && withGPLv3 && !stdenv.isAarch64 && lib.versionAtLeast version "5" # Netflix's VMAF (Video Multi-Method Assessment Fusion)
, withVoAmrwbenc ? withFullDeps # AMR-WB encoder , withVoAmrwbenc ? withFullDeps # AMR-WB encoder
, withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists , withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists
, withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding , withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding

View file

@ -1,8 +1,12 @@
{ callPackage, zlib }: { callPackage
, zlib
, zstd
}:
callPackage ./common.nix rec { callPackage ./common.nix rec {
version = "0.4.2"; version = "0.9.0";
url = "https://www.prevanders.net/libdwarf-${version}.tar.xz"; url = "https://www.prevanders.net/libdwarf-${version}.tar.xz";
hash = "sha512-bSo+vwEENi3Zzs7CcpNWhPl32xGYEO6g7siMn1agQvJgpPbtO7q96Fkv4W+Yy9gbSrKHgAUUDgXI9HXfY4DRwg=="; hash = "sha512-KC2Q38nacE62SkuhFB8q5mD+6xS78acjdzhmmOMSSSi0SmkU2OiOYUGrCINc5yOtCQqFOtV9vLQ527pXJV+1iQ==";
buildInputs = [ zlib ]; buildInputs = [ zlib zstd ];
knownVulnerabilities = []; knownVulnerabilities = [];
} }

View file

@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-h3mXoGRYgPg0wKQ1u6uFP7wlEUMQd5uIBt4Hr7vjNtA="; sha256 = "sha256-h3mXoGRYgPg0wKQ1u6uFP7wlEUMQd5uIBt4Hr7vjNtA=";
}; };
patches = [ ./fix-openssl-detection.patch ];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ openssl ]; buildInputs = [ openssl ];

View file

@ -0,0 +1,36 @@
From 6bdcf53de74ac2afba42deea63522939ca51f871 Mon Sep 17 00:00:00 2001
From: Raphael Robatsch <raphael-git@tapesoftware.net>
Date: Mon, 25 Dec 2023 16:15:29 +0000
Subject: [PATCH] Do not forcibly set OPENSSL_ROOT_DIR.
CMake can already find OpenSSL via pkg-config. Setting OPENSSL_ROOT_DIR
forcibly to "/usr" breaks this.
---
CMakeLists.txt | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 288bcbe8..9750fae6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,17 +119,6 @@ include(.CMake/compiler_opts.cmake)
include(.CMake/alg_support.cmake)
if(${OQS_USE_OPENSSL})
- if(NOT DEFINED OPENSSL_ROOT_DIR)
- if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin")
- if(EXISTS "/usr/local/opt/openssl@1.1")
- set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl@1.1")
- elseif(EXISTS "/opt/homebrew/opt/openssl@1.1")
- set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl@1.1")
- endif()
- elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
- set(OPENSSL_ROOT_DIR "/usr")
- endif()
- endif()
find_package(OpenSSL 1.1.1 REQUIRED)
endif()
--
2.42.0

View file

@ -87,6 +87,15 @@ let
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice fpletz ]; maintainers = with maintainers; [ thoughtpolice fpletz ];
inherit knownVulnerabilities; inherit knownVulnerabilities;
# OpenBSD believes that PowerPC should be always-big-endian;
# this assumption seems to have propagated into recent
# releases of libressl. Since libressl is aliased to many
# other packages (e.g. netcat) it's important to fail early
# here, otherwise it's very difficult to figure out why
# libressl is getting dragged into a failing build.
badPlatforms = with lib.systems.inspect.patterns;
[ (lib.recursiveUpdate isPower64 isLittleEndian) ];
}; };
}; };

View file

@ -1,3 +1,5 @@
diff --git a/tools/srp_shared.c b/tools/srp_shared.c
index f782126..23e82a5 100644
--- a/tools/srp_shared.c --- a/tools/srp_shared.c
+++ b/tools/srp_shared.c +++ b/tools/srp_shared.c
@@ -173,7 +173,11 @@ void user_verifier_lookup(char * username, @@ -173,7 +173,11 @@ void user_verifier_lookup(char * username,
@ -5,9 +7,9 @@
return; return;
+#if defined(__APPLE__) +#if defined(__APPLE__)
+ *generation = (buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec; + *generation = ((uint64_t)buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec;
+#else +#else
*generation = (buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec; *generation = ((uint64_t)buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec;
+#endif +#endif
#endif #endif

View file

@ -11,14 +11,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "librist"; pname = "librist";
version = "0.2.8"; version = "0.2.10";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "code.videolan.org"; domain = "code.videolan.org";
owner = "rist"; owner = "rist";
repo = "librist"; repo = "librist";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-E12TS+N47UQapkF6oO0Lx66Z3lHAyP0R4tVnx/uKBwQ="; hash = "sha256-8N4wQXxjNZuNGx/c7WVAV5QS48Bff5G3t11UkihT+K0=";
}; };
patches = [ patches = [

View file

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "colorful"; pname = "colorful";
version = "0.5.5"; version = "0.5.6";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "timofurrer"; owner = "timofurrer";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-fgxbj1WE9JcGt+oEcBguL0wQEWIn5toRTLWsvCFO3k8="; hash = "sha256-8rHJIsHiyfjmjlGiEyrzvEwKgi1kP4Njm731mlFDMIU=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [

View file

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "dsnap"; pname = "dsnap";
version = "1.0.0"; version = "1.0.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -28,6 +28,12 @@ buildPythonPackage rec {
hash = "sha256-yKch+tKjFhvZfzloazMH378dkERF8gnZEX1Som+d670="; hash = "sha256-yKch+tKjFhvZfzloazMH378dkERF8gnZEX1Som+d670=";
}; };
postPatch = ''
# Is no direct dependency
substituteInPlace pyproject.toml \
--replace 'urllib3 = "^1.26.4"' 'urllib3 = "*"'
'';
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
]; ];

View file

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "griffe"; pname = "griffe";
version = "0.38.1"; version = "0.39.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "mkdocstrings"; owner = "mkdocstrings";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-j0j13bJtHlPc00pjmfpg/QJKzYQQcyA+jE7q538Uu08="; hash = "sha256-mVIGT7kb8+eQcTAF7/S+0KraQiDzS9VdyrBsxzqpBHI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -11,24 +11,31 @@
, pytest-aiohttp , pytest-aiohttp
, pytest-asyncio , pytest-asyncio
, requests , requests
, setuptools
, setuptools-scm
, websocket-client , websocket-client
, websockets , websockets
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "homematicip"; pname = "homematicip";
version = "1.0.16"; version = "1.1.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hahn-th"; owner = "hahn-th";
repo = "homematicip-rest-api"; repo = "homematicip-rest-api";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-rvjdhsvGYllVeenVkU/ikwil4OVHPRIaXs+85q0pM/w="; hash = "sha256-tx7/amXG3rLdUFgRPQcuf57qkBLAPxPWjLGSO7MrcWU=";
}; };
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aenum aenum
aiohttp aiohttp

View file

@ -1,24 +1,24 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flit-core , setuptools
, pythonOlder , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pex"; pname = "pex";
version = "2.1.156"; version = "2.1.159";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-VC7LRXwh9a6Pp0mJQJjhxU6GOWKO/ucOzn+J2mAqpMI="; hash = "sha256-hBlwfyQ1PbD6AyCsra2yZwt0x8+iGtDisU9coTSJRZI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
flit-core setuptools
]; ];
# A few more dependencies I don't want to handle right now... # A few more dependencies I don't want to handle right now...

View file

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pipdeptree"; pname = "pipdeptree";
version = "2.13.1"; version = "2.13.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "tox-dev"; owner = "tox-dev";
repo = "pipdeptree"; repo = "pipdeptree";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-rlnJmGe9LYwIJxV02IjiKtT1iS1O9ik8dAfjsPHsa8U="; hash = "sha256-eDgulAKq78HRW/7GhO40hxr+F1hOfgXqAzaCw5pFjD8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-bsblan"; pname = "python-bsblan";
version = "0.5.16"; version = "0.5.18";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "liudger"; owner = "liudger";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-m80lnNd1ANddV0d/w3S7+QWzIPRklDZsWMO2g1hgEoQ="; hash = "sha256-SJUIJhsVn4LZiUx9h3Q2uWoeaQiKoIRrijTfPgCHnAA=";
}; };
postPatch = '' postPatch = ''

View file

@ -30,7 +30,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "rasterio"; pname = "rasterio";
version = "4"; version = "1.3.9";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -38,8 +38,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rasterio"; owner = "rasterio";
repo = "rasterio"; repo = "rasterio";
rev = "refs/tags/release-test-${version}"; rev = "refs/tags/${version}";
hash = "sha256-YO0FnmIEt+88f6k2mdXDSQg7UKq1Swr8wqVUGdRyQR4="; hash = "sha256-Tp6BSU33FaszrIXQgU0Asb7IMue0C939o/atAKz+3Q4=";
}; };
patches = [ patches = [

View file

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "reolink-aio"; pname = "reolink-aio";
version = "0.8.6"; version = "0.8.7";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "starkillerOG"; owner = "starkillerOG";
repo = "reolink_aio"; repo = "reolink_aio";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-uc13IJb4b6sXNL35UUc3Sv4gh4BVVk0a+esA+ouhsFg="; hash = "sha256-+Yhw7Wbt0K7BLXatd/UANnnNWPkxgk8SqAyV9Kk4hos=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -2,25 +2,38 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, sphinx , sphinx
, pythonOlder
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinx-multitoc-numbering"; pname = "sphinx-multitoc-numbering";
version = "0.1.3"; version = "0.1.3";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c9607671ac511236fa5d61a7491c1031e700e8d498c9d2418e6c61d1251209ae"; hash = "sha256-yWB2caxREjb6XWGnSRwQMecA6NSYydJBjmxh0SUSCa4=";
}; };
propagatedBuildInputs = [ sphinx ]; nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [ "sphinx_multitoc_numbering" ]; propagatedBuildInputs = [
sphinx
];
pythonImportsCheck = [
"sphinx_multitoc_numbering"
];
meta = with lib; { meta = with lib; {
description = "Supporting continuous HTML section numbering"; description = "Supporting continuous HTML section numbering";
homepage = "https://github.com/executablebooks/sphinx-multitoc-numbering"; homepage = "https://github.com/executablebooks/sphinx-multitoc-numbering";
changelog = "https://github.com/executablebooks/sphinx-multitoc-numbering/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ marsam ]; maintainers = with maintainers; [ marsam ];
}; };

View file

@ -21,13 +21,13 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "gef"; pname = "gef";
version = "2023.08"; version = "2024.01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hugsy"; owner = "hugsy";
repo = "gef"; repo = "gef";
rev = version; rev = version;
sha256 = "sha256-MqpII3jhSc6aP/WQDktom2wxAvCkxCwfs1AFWij5J7A="; sha256 = "sha256-uSUr2NFvj7QIlvG3RWYm7A9Xx7a4JYkbAQld7c7+C7g=";
}; };
dontBuild = true; dontBuild = true;

View file

@ -7,16 +7,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-mutants"; pname = "cargo-mutants";
version = "24.1.0"; version = "24.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sourcefrog"; owner = "sourcefrog";
repo = "cargo-mutants"; repo = "cargo-mutants";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-hWM8QtzWUrhWHTAv4Fgq9F3ZIZS2HVP4R8J/HIh8T+0="; hash = "sha256-n7fpfgbDvLMMA834BUSAEYD+mXVxGGFPLlLjDxpKuSA=";
}; };
cargoHash = "sha256-dKhxyhLWeaP9/qYZLMDFGF2DmKhzPXOT5qXHP3D3MjY="; cargoHash = "sha256-lEeNIwNvq6K+xRCUTXs9Sh7o8q3u5GcBKntVMhPQqMU=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration darwin.apple_sdk.frameworks.SystemConfiguration

View file

@ -113,7 +113,7 @@ rustPlatform.buildRustPackage {
cargoTestFlags = [ "--package" "airshipper" ]; cargoTestFlags = [ "--package" "airshipper" ];
meta = with lib; { meta = with lib; {
description = "Provides automatic updates for the voxel RPG Veloren."; description = "Provides automatic updates for the voxel RPG Veloren";
homepage = "https://www.veloren.net"; homepage = "https://www.veloren.net";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ yusdacra ]; maintainers = with maintainers; [ yusdacra ];

View file

@ -8,12 +8,6 @@ stdenv.mkDerivation rec {
pname = "black-hole-solver"; pname = "black-hole-solver";
version = "1.12.0"; version = "1.12.0";
meta = with lib; {
homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
description = "A solver for Solitaire variants Golf, Black Hole, and All in a Row.";
license = licenses.mit;
};
src = fetchurl { src = fetchurl {
url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz"; url = "https://fc-solve.shlomifish.org/downloads/fc-solve/${pname}-${version}.tar.xz";
sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c="; sha256 = "sha256-0y8yU291cykliPQbsNha5C1WE3bCGNxKtrrf5JBKN6c=";
@ -27,4 +21,9 @@ stdenv.mkDerivation rec {
patchShebangs ./scripts patchShebangs ./scripts
''; '';
meta = with lib; {
description = "A solver for Solitaire variants Golf, Black Hole, and All in a Row";
homepage = "https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/";
license = licenses.mit;
};
} }

View file

@ -35,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
meta = with lib; { meta = with lib; {
description = "A reimplementation of the 1997 Bullfrog business sim Theme Hospital."; description = "A reimplementation of the 1997 Bullfrog business sim Theme Hospital";
homepage = "https://corsixth.com/"; homepage = "https://corsixth.com/";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ hughobrien ]; maintainers = with maintainers; [ hughobrien ];

View file

@ -114,7 +114,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
description = "A Teeworlds modification with a unique cooperative gameplay."; description = "A Teeworlds modification with a unique cooperative gameplay";
longDescription = '' longDescription = ''
DDraceNetwork (DDNet) is an actively maintained version of DDRace, DDraceNetwork (DDNet) is an actively maintained version of DDRace,
a Teeworlds modification with a unique cooperative gameplay. a Teeworlds modification with a unique cooperative gameplay.

View file

@ -76,7 +76,7 @@ stdenvNoCC.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
description = "A plugin for Dwarf Fortress / DFHack that improves various aspects the game interface."; description = "A plugin for Dwarf Fortress / DFHack that improves various aspects the game interface";
maintainers = with maintainers; [ Baughn numinit ]; maintainers = with maintainers; [ Baughn numinit ];
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux;

View file

@ -54,8 +54,7 @@ stdenv.mkDerivation rec {
]; ];
meta = with lib; { meta = with lib; {
description = "A fractal physics game."; description = "A community-developed version of the original Marble Marcher - a fractal physics game";
longDescription = "A community-developed version of the original Marble Marcher - a fractal physics game.";
homepage = "https://michaelmoroz.itch.io/mmce"; homepage = "https://michaelmoroz.itch.io/mmce";
license = with licenses; [ license = with licenses; [
gpl2Plus # Code gpl2Plus # Code

View file

@ -72,7 +72,7 @@ buildDotnetModule rec {
''; '';
meta = with lib; { meta = with lib; {
description = "Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert. ${engine.build} version."; description = "Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert. ${engine.build} version";
homepage = "https://www.openra.net/"; homepage = "https://www.openra.net/";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ mdarocha ]; maintainers = with maintainers; [ mdarocha ];

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
]; ];
meta = with lib; { meta = with lib; {
description = "A cross platform, customizable graphical frontend for launching emulators and managing your game collection."; description = "A cross platform, customizable graphical frontend for launching emulators and managing your game collection";
homepage = "https://pegasus-frontend.org/"; homepage = "https://pegasus-frontend.org/";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ tengkuizdihar ]; maintainers = with maintainers; [ tengkuizdihar ];

View file

@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
description = "Modern \"Jedi Engine\" replacement supporting Dark Forces, mods, and in the future Outlaws."; description = "Modern \"Jedi Engine\" replacement supporting Dark Forces, mods, and in the future, Outlaws";
homepage = "https://theforceengine.github.io"; homepage = "https://theforceengine.github.io";
license = licenses.gpl2Only; license = licenses.gpl2Only;
maintainers = with maintainers; [ devusb ]; maintainers = with maintainers; [ devusb ];

View file

@ -24,7 +24,7 @@ buildGoModule rec {
''; '';
meta = with lib; { meta = with lib; {
description = "Play chess against UCI engines in your terminal."; description = "Play chess against UCI engines in your terminal";
homepage = "https://tmountain.github.io/uchess/"; homepage = "https://tmountain.github.io/uchess/";
maintainers = with maintainers; [ tmountain ]; maintainers = with maintainers; [ tmountain ];
license = licenses.mit; license = licenses.mit;

View file

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://marc.mongenet.ch/OSS/XGalaga/"; homepage = "https://marc.mongenet.ch/OSS/XGalaga/";
description = "XGalaga++ is a classic single screen vertical shoot em up. It is inspired by XGalaga and reuses most of its sprites."; description = "XGalaga++ is a classic single screen vertical shoot em up. It is inspired by XGalaga and reuses most of its sprites";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
}; };

View file

@ -5,14 +5,14 @@
, profile ? "/etc/g810-led/profile" , profile ? "/etc/g810-led/profile"
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "g810-led"; pname = "g810-led";
version = "0.4.3"; version = "0.4.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MatMoul"; owner = "MatMoul";
repo = pname; repo = "g810-led";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-GKHtQ7DinqfhclDdPO94KtTLQhhonAoWS4VOvs6CMhY="; hash = "sha256-GKHtQ7DinqfhclDdPO94KtTLQhhonAoWS4VOvs6CMhY=";
}; };
@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
--replace "/etc/g810-led/profile" "${profile}" --replace "/etc/g810-led/profile" "${profile}"
''; '';
# GCC 13 cannot find `uint16_t` and other similar types by default anymore
env.CXXFLAGS = "-include cstdint";
buildInputs = [ buildInputs = [
hidapi hidapi
]; ];
@ -48,4 +51,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View file

@ -11,9 +11,9 @@ let
}; };
# ./update-zen.py lqx # ./update-zen.py lqx
lqxVariant = { lqxVariant = {
version = "6.6.11"; #lqx version = "6.6.12"; #lqx
suffix = "lqx1"; #lqx suffix = "lqx1"; #lqx
sha256 = "0vsfpbkkj73hcncrihviqbmy20id1hx08c537by1a6hfc0f9y55z"; #lqx sha256 = "13wj7w66mrkabf7f03svq8x9dqy7w3dnh9jqpkr2hdkd6l2nf6c3"; #lqx
isLqx = true; isLqx = true;
}; };
zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // { zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {

View file

@ -1,7 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch2
, cmake , cmake
, perl , perl
, glib , glib
@ -28,23 +27,15 @@ assert withHyperscan -> stdenv.isx86_64;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rspamd"; pname = "rspamd";
version = "3.7.4"; version = "3.7.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rspamd"; owner = "rspamd";
repo = "rspamd"; repo = "rspamd";
rev = version; rev = version;
hash = "sha256-Bg0EFgxk/sRwE8/7a/m8J4cTgooR4fobQil8pbWtkoc="; hash = "sha256-Y9Xq6mEq52AeTBGMQOh4jO4BUcSS9YfCs1/Wka5zkK4=";
}; };
patches = [
(fetchpatch2 {
name = "no-hyperscan-fix.patch";
url = "https://github.com/rspamd/rspamd/commit/d907a95ac2e2cad6f7f65c4323f031f7931ae18b.patch";
hash = "sha256-bMmgiJSy0QrzvBAComzT0aM8UF8OKeV0VgMr0wwrM6w=";
})
];
hardeningEnable = [ "pie" ]; hardeningEnable = [ "pie" ];
nativeBuildInputs = [ cmake pkg-config perl ]; nativeBuildInputs = [ cmake pkg-config perl ];

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "snmp_exporter"; pname = "snmp_exporter";
version = "0.22.0"; version = "0.25.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "prometheus"; owner = "prometheus";
repo = "snmp_exporter"; repo = "snmp_exporter";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-HncffOX0/z8XIEXTOkt6bcnAfY7xwgNBGhUwC3FIJjo="; sha256 = "sha256-6Y2zJwY5gToJlY6iLug2jNXXtNLNz98WoTKGcWgYzaA=";
}; };
vendorHash = "sha256-n0LPKmGPxLZgvzdpyuE67WOJv7MKN28m7PtQpWYdtMk="; vendorHash = "sha256-8soLDI/hBzSZB6Lfj1jVkIWfIkMPJmp84bu7TKg7jeo=";
buildInputs = [ net-snmp ]; buildInputs = [ net-snmp ];
@ -23,6 +23,6 @@ buildGoModule rec {
description = "SNMP Exporter for Prometheus"; description = "SNMP Exporter for Prometheus";
homepage = "https://github.com/prometheus/snmp_exporter"; homepage = "https://github.com/prometheus/snmp_exporter";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ oida willibutz Frostman ]; maintainers = with maintainers; [ oida Frostman ];
}; };
} }

View file

@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
strictDeps = true; strictDeps = true;
buildInputs = lib.optional withReadline readline; buildInputs = lib.optional withReadline readline;
# As of 0.19.0 the build generates an error on MacOS (using clang version 16.0.6 in the builder),
# whereas running it outside of Nix with clang version 15.0.0 generates just a warning. The shell seems to
# work just fine though, so we disable the error here.
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
configureFlags = [ configureFlags = [
"--datarootdir=${placeholder "out"}" "--datarootdir=${placeholder "out"}"
] ++ lib.optionals withReadline [ ] ++ lib.optionals withReadline [

View file

@ -66,6 +66,7 @@ let
meta = with lib; { meta = with lib; {
description = "A robust and highly flexible tunneling application"; description = "A robust and highly flexible tunneling application";
mainProgram = "openvpn";
downloadPage = "https://openvpn.net/community-downloads/"; downloadPage = "https://openvpn.net/community-downloads/";
homepage = "https://openvpn.net/"; homepage = "https://openvpn.net/";
license = licenses.gpl2Only; license = licenses.gpl2Only;

View file

@ -7,13 +7,13 @@
buildGoModule rec { buildGoModule rec {
pname = "grype"; pname = "grype";
version = "0.74.0"; version = "0.74.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "anchore"; owner = "anchore";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-M/PBsCZPMh2RSrTWqe5XjErVrSi39DbQpqSzbKXA/wI="; hash = "sha256-/s23QSg4+reF+BTbbk1MXtUC0ytdgd8olaiUTqR7LqM=";
# populate values that require us to use git. By doing this in postFetch we # populate values that require us to use git. By doing this in postFetch we
# can delete .git afterwards and maintain better reproducibility of the src. # can delete .git afterwards and maintain better reproducibility of the src.
leaveDotGit = true; leaveDotGit = true;
@ -28,7 +28,7 @@ buildGoModule rec {
proxyVendor = true; proxyVendor = true;
vendorHash = "sha256-h/rpDF1weo54DSHRM3eV//+WjSOI24zo1YmpTa3MRnE="; vendorHash = "sha256-LNyYwnQhGZfsHrA02fHdXKRTJ83Xii3q//Tfrq3sLFc=";
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles

View file

@ -13,7 +13,7 @@ let
owner = "carpedm20"; owner = "carpedm20";
repo = "emoji"; repo = "emoji";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-vKQ51RP7uy57vP3dOnHZRSp/Wz+YDzeLUR8JnIELE/I="; hash = "sha256-vKQ51RP7uy57vP3dOnHZRSp/Wz+YDzeLUR8JnIELE/I=";
}; };
}; };
@ -26,29 +26,35 @@ let
owner = "tweepy"; owner = "tweepy";
repo = "tweepy"; repo = "tweepy";
rev = "v${version}"; rev = "v${version}";
sha256 = "0k4bdlwjna6f1k19jki4xqgckrinkkw8b9wihzymr1l04rwd05nw"; hash = "sha256-3BbQeCaAhlz9h5GnhficNubJHu4kTpnCDM4oKzlti0w=";
}; };
doCheck = false; doCheck = false;
}; };
}; };
}; };
in in py.pkgs.buildPythonApplication rec {
with py.pkgs;
buildPythonApplication rec {
pname = "ioccheck"; pname = "ioccheck";
version = "unstable-2021-09-29"; version = "unstable-2021-09-29";
format = "pyproject"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ranguli"; owner = "ranguli";
repo = pname; repo = "ioccheck";
rev = "db02d921e2519b77523a200ca2d78417802463db"; rev = "db02d921e2519b77523a200ca2d78417802463db";
hash = "sha256-qf5tHIpbj/BfrzUST+EzohKh1hUg09KwF+vT0tj1+FE="; hash = "sha256-qf5tHIpbj/BfrzUST+EzohKh1hUg09KwF+vT0tj1+FE=";
}; };
nativeBuildInputs = with py.pkgs; [ nativeBuildInputs = with py.pkgs; [
poetry-core poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"backoff"
"pyfiglet"
"tabulate"
"termcolor"
"vt-py"
]; ];
propagatedBuildInputs = with py.pkgs; [ propagatedBuildInputs = with py.pkgs; [
@ -73,11 +79,7 @@ buildPythonApplication rec {
postPatch = '' postPatch = ''
# Can be removed with the next release # Can be removed with the next release
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace '"hurry.filesize" = "^0.9"' "" \ --replace '"hurry.filesize" = "^0.9"' ""
--replace 'vt-py = ">=0.6.1,<0.8.0"' 'vt-py = ">=0.6.1"' \
--replace 'backoff = "^1.10.0"' 'backoff = ">=1.10.0"' \
--replace 'termcolor = "^1.1.0"' 'termcolor = "*"' \
--replace 'tabulate = "^0.8.9"' 'tabulate = "*"'
''; '';
pythonImportsCheck = [ pythonImportsCheck = [

View file

@ -1,45 +0,0 @@
{ lib, stdenv, fetchFromGitHub, CoreServices, CoreFoundation, fetchpatch }:
stdenv.mkDerivation rec {
version = "1.1";
pname = "qgrep";
src = fetchFromGitHub {
owner = "zeux";
repo = "qgrep";
rev = "v${version}";
sha256 = "046ccw34vz2k5jn6gyxign5gs2qi7i50jy9b74wqv7sjf5zayrh0";
fetchSubmodules = true;
};
patches = lib.optionals stdenv.isDarwin [
(fetchpatch {
url = "https://github.com/zeux/qgrep/commit/21c4d1a5ab0f0bdaa0b5ca993c1315c041418cc6.patch";
sha256 = "0wpxzrd9pmhgbgby17vb8279xwvkxfdd99gvv7r74indgdxqg7v8";
})
];
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices CoreFoundation ];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
# Needed with GCC 12 but breaks on darwin (with clang) or older gcc
"-Wno-error=mismatched-new-delete"
]);
postPatch = lib.optionalString stdenv.isAarch64 ''
substituteInPlace Makefile \
--replace "-msse2" "" --replace "-DUSE_SSE2" ""
'';
installPhase = ''
install -Dm755 qgrep $out/bin/qgrep
'';
meta = with lib; {
description = "Fast regular expression grep for source code with incremental index updates";
homepage = "https://github.com/zeux/qgrep";
license = licenses.mit;
maintainers = [ maintainers.yrashk ];
platforms = platforms.all;
};
}

View file

@ -12507,10 +12507,6 @@ with pkgs;
qdigidoc = libsForQt5.callPackage ../tools/security/qdigidoc { } ; qdigidoc = libsForQt5.callPackage ../tools/security/qdigidoc { } ;
qgrep = pin-to-gcc12-if-gcc13 (callPackage ../tools/text/qgrep {
inherit (darwin.apple_sdk.frameworks) CoreServices CoreFoundation;
});
qhull = callPackage ../development/libraries/qhull { }; qhull = callPackage ../development/libraries/qhull { };
qjournalctl = libsForQt5.callPackage ../applications/system/qjournalctl { }; qjournalctl = libsForQt5.callPackage ../applications/system/qjournalctl { };
@ -36376,8 +36372,6 @@ with pkgs;
stdenv = if stdenv.cc.isClang then gccStdenv else stdenv; stdenv = if stdenv.cc.isClang then gccStdenv else stdenv;
}; };
websploit = python3Packages.callPackage ../tools/security/websploit { };
webssh = with python3Packages; toPythonApplication webssh; webssh = with python3Packages; toPythonApplication webssh;
webtorrent_desktop = callPackage ../applications/video/webtorrent_desktop { webtorrent_desktop = callPackage ../applications/video/webtorrent_desktop {