Merge staging-next into staging
This commit is contained in:
commit
150d965bfb
@ -257,6 +257,22 @@ let
|
||||
if final.isMacOS then "MACOSX_DEPLOYMENT_TARGET"
|
||||
else if final.isiOS then "IPHONEOS_DEPLOYMENT_TARGET"
|
||||
else null;
|
||||
|
||||
# Remove before 25.05
|
||||
androidSdkVersion =
|
||||
if (args ? sdkVer && !args ? androidSdkVersion) then
|
||||
throw "For android `sdkVer` has been renamed to `androidSdkVersion`"
|
||||
else if (args ? androidSdkVersion) then
|
||||
args.androidSdkVersion
|
||||
else
|
||||
null;
|
||||
androidNdkVersion =
|
||||
if (args ? ndkVer && !args ? androidNdkVersion) then
|
||||
throw "For android `ndkVer` has been renamed to `androidNdkVersion`"
|
||||
else if (args ? androidSdkVersion) then
|
||||
args.androidNdkVersion
|
||||
else
|
||||
null;
|
||||
} // (
|
||||
let
|
||||
selectEmulator = pkgs:
|
||||
|
@ -60,23 +60,23 @@ rec {
|
||||
armv7a-android-prebuilt = {
|
||||
config = "armv7a-unknown-linux-androideabi";
|
||||
rust.rustcTarget = "armv7-linux-androideabi";
|
||||
sdkVer = "33";
|
||||
ndkVer = "26";
|
||||
androidSdkVersion = "33";
|
||||
androidNdkVersion = "26";
|
||||
useAndroidPrebuilt = true;
|
||||
} // platforms.armv7a-android;
|
||||
|
||||
aarch64-android-prebuilt = {
|
||||
config = "aarch64-unknown-linux-android";
|
||||
rust.rustcTarget = "aarch64-linux-android";
|
||||
sdkVer = "33";
|
||||
ndkVer = "26";
|
||||
androidSdkVersion = "33";
|
||||
androidNdkVersion = "26";
|
||||
useAndroidPrebuilt = true;
|
||||
};
|
||||
|
||||
aarch64-android = {
|
||||
config = "aarch64-unknown-linux-android";
|
||||
sdkVer = "33";
|
||||
ndkVer = "26";
|
||||
androidSdkVersion = "33";
|
||||
androidNdkVersion = "26";
|
||||
libc = "bionic";
|
||||
useAndroidPrebuilt = false;
|
||||
useLLVM = true;
|
||||
|
@ -5484,6 +5484,12 @@
|
||||
githubId = 252042;
|
||||
keys = [ { fingerprint = "85F3 72DF 4AF3 EF13 ED34 72A3 0AAF 2901 E804 0715"; } ];
|
||||
};
|
||||
DrymarchonShaun = {
|
||||
name = "Shaun";
|
||||
email = "drymarchonshaun@protonmail.com";
|
||||
github = "DrymarchonShaun";
|
||||
githubId = 40149778;
|
||||
};
|
||||
dsalaza4 = {
|
||||
email = "podany270895@gmail.com";
|
||||
github = "dsalaza4";
|
||||
@ -11502,6 +11508,12 @@
|
||||
githubId = 31388299;
|
||||
name = "Leonardo Eugênio";
|
||||
};
|
||||
lenivaya = {
|
||||
name = "Danylo Osipchuk";
|
||||
email = "danylo.osipchuk@proton.me";
|
||||
github = "lenivaya";
|
||||
githubId = 49302467;
|
||||
};
|
||||
leo248 = {
|
||||
github = "leo248";
|
||||
githubId = 95365184;
|
||||
|
@ -1,4 +1,9 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.services.hypridle;
|
||||
@ -10,16 +15,9 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
cfg.package
|
||||
];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
systemd.user.services.hypridle = {
|
||||
description = "Hypridle idle daemon";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
script = lib.getExe cfg.package;
|
||||
};
|
||||
systemd.packages = [ cfg.package ];
|
||||
};
|
||||
|
||||
meta.maintainers = with lib.maintainers; [ johnrtitor ];
|
||||
|
@ -8,13 +8,13 @@
|
||||
|
||||
melpaBuild {
|
||||
pname = "ligo-mode";
|
||||
version = "1.7.0-unstable-2024-08-01";
|
||||
version = "1.7.0-unstable-2024-08-14";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ligolang";
|
||||
repo = "ligo";
|
||||
rev = "454e4a505212b8bd80ac3c75a1432320b9be2604";
|
||||
hash = "sha256-Z7bv+ulGwnczrSWWC1RIUzSI4wAF9AtObdi5bBfYsOs=";
|
||||
rev = "547da30202972fd9b5114ce82c4b94ddf6c8e8f7";
|
||||
hash = "sha256-kGFV3Ci8F+vK1LCQCsdpxeoLHarfa4dItQkJDihE7eI=";
|
||||
};
|
||||
|
||||
files = ''("tools/emacs/ligo-mode.el")'';
|
||||
|
@ -29,13 +29,13 @@ let
|
||||
in
|
||||
melpaBuild {
|
||||
pname = "lsp-bridge";
|
||||
version = "0-unstable-2024-08-06";
|
||||
version = "0-unstable-2024-08-12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "manateelazycat";
|
||||
repo = "lsp-bridge";
|
||||
rev = "49b5497243873b1bddea09a4a988e3573ed7cc3e";
|
||||
hash = "sha256-bGO5DjsetInDyGDHog5QJtAgz499kJEj52iWYIzdp5Y=";
|
||||
rev = "658f08ee51c193f52a0e9723b190e5f6eef77ab7";
|
||||
hash = "sha256-ksKvekDKYdlJULRmALudfduYe1TkW3aG2uBeKdHOokQ=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -22,24 +22,25 @@
|
||||
, util-linux
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, hyprwayland-scanner
|
||||
, hyprutils
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "hyprpaper";
|
||||
version = "0.7.0";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hyprwm";
|
||||
repo = "hyprpaper";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-l13c8ALA7ZKDgluYA1C1OfkDGYD6e1/GR6LJnxCLRhA=";
|
||||
hash = "sha256-HIK7XJWQCM0BAnwW5uC7P0e7DAkVTy5jlxQ0NwoSy4M=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wayland-scanner
|
||||
hyprwayland-scanner
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -62,6 +63,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
util-linux
|
||||
wayland
|
||||
wayland-protocols
|
||||
hyprutils
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
|
@ -67,7 +67,7 @@
|
||||
command ? "${package.meta.mainProgram or package.pname or package.name} --version",
|
||||
version ? package.version,
|
||||
}: runCommand "${package.name}-test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } ''
|
||||
if output=$(${command} 2>&1); then
|
||||
if output=$(${command} 2>&1 | sed -e 's|${builtins.storeDir}/[^/ ]*/|{{storeDir}}/|g'); then
|
||||
if grep -Fw -- "${version}" - <<< "$output"; then
|
||||
touch $out
|
||||
else
|
||||
|
@ -5,13 +5,13 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "api-linter";
|
||||
version = "1.67.1";
|
||||
version = "1.67.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "googleapis";
|
||||
repo = "api-linter";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-nbLaLi3Uh/zU+SPHA2x8cMic/bOKBo9wybK3b1LHNpY=";
|
||||
hash = "sha256-xwRpJKAkZFSpmAQti2EswM6RXlJVwD+nNY9t5oRzU1s=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-+dyoWK5iXH480c+akg26BCF/J8lKQoATVqZUfqMa080=";
|
||||
|
@ -0,0 +1,25 @@
|
||||
diff --git a/src/arma3-unix-launcher/mainwindow.cpp b/src/arma3-unix-launcher/mainwindow.cpp
|
||||
index 66b73cc..f89f66b 100644
|
||||
--- a/src/arma3-unix-launcher/mainwindow.cpp
|
||||
+++ b/src/arma3-unix-launcher/mainwindow.cpp
|
||||
@@ -56,6 +56,3 @@ MainWindow::MainWindow(std::unique_ptr<ARMA3::Client> arma3_client, std::filesys
|
||||
{
|
||||
- if (use_steam_integration)
|
||||
- steam_integration = std::make_unique<Steam::SteamIntegration>(ARMA3::Definitions::app_id);
|
||||
- else
|
||||
- steam_integration = std::make_unique<Steam::IntegrationStub>(ARMA3::Definitions::app_id);
|
||||
+ steam_integration = std::make_unique<Steam::IntegrationStub>(ARMA3::Definitions::app_id);
|
||||
|
||||
diff --git a/src/dayz-linux-launcher/mainwindow.cpp b/src/dayz-linux-launcher/mainwindow.cpp
|
||||
index d9223db..5773593 100644
|
||||
--- a/src/dayz-linux-launcher/mainwindow.cpp
|
||||
+++ b/src/dayz-linux-launcher/mainwindow.cpp
|
||||
@@ -56,6 +56,3 @@ MainWindow::MainWindow(std::unique_ptr<DayZ::Client> arma3_client, std::filesyst
|
||||
{
|
||||
- if (use_steam_integration)
|
||||
- steam_integration = std::make_unique<Steam::SteamIntegration>(DayZ::Definitions::app_id);
|
||||
- else
|
||||
- steam_integration = std::make_unique<Steam::IntegrationStub>(DayZ::Definitions::app_id);
|
||||
+ steam_integration = std::make_unique<Steam::IntegrationStub>(DayZ::Definitions::app_id);
|
||||
|
||||
|
@ -0,0 +1,115 @@
|
||||
diff --git a/cmake/external_dependencies.cmake b/cmake/external_dependencies.cmake
|
||||
index 2eb6ec5..9f1d67e 100644
|
||||
--- a/cmake/external_dependencies.cmake
|
||||
+++ b/cmake/external_dependencies.cmake
|
||||
@@ -4,7 +4,7 @@ include(FetchContent)
|
||||
|
||||
function(setup_library SOURCE_TO_TEST)
|
||||
set(boolArgs HEADER_ONLY)
|
||||
- set(oneValueArgs NAME CXX_FLAGS GIT_REPOSITORY GIT_TAG TEST_DEFINITIONS TEST_LINK_LIBS)
|
||||
+ set(oneValueArgs NAME CXX_FLAGS URL GIT_TAG TEST_DEFINITIONS TEST_LINK_LIBS)
|
||||
set(multiValueArgs WHEN)
|
||||
cmake_parse_arguments(LIB_SETUP "${boolArgs}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
@@ -27,12 +27,11 @@ function(setup_library SOURCE_TO_TEST)
|
||||
endif()
|
||||
|
||||
FetchContent_Declare(${LIB_SETUP_NAME}
|
||||
- GIT_REPOSITORY ${LIB_SETUP_GIT_REPOSITORY}
|
||||
- GIT_TAG ${LIB_SETUP_GIT_TAG})
|
||||
+ URL ${LIB_SETUP_URL})
|
||||
FetchContent_GetProperties(${LIB_SETUP_NAME})
|
||||
set(POPULATED "${LIB_SETUP_NAME}_POPULATED")
|
||||
if (NOT "${POPULATED}")
|
||||
- message("-- Downloading ${LIB_SETUP_NAME} from ${LIB_SETUP_GIT_REPOSITORY}")
|
||||
+ message("-- Downloading ${LIB_SETUP_NAME} from ${LIB_SETUP_URL}")
|
||||
FetchContent_Populate(${LIB_SETUP_NAME})
|
||||
set(SRCDIR "${LIB_SETUP_NAME}_SOURCE_DIR")
|
||||
set(BINDIR "${LIB_SETUP_NAME}_BINARY_DIR")
|
||||
@@ -51,8 +50,7 @@ function(setup_argparse)
|
||||
}")
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME argparse
|
||||
- GIT_REPOSITORY https://github.com/p-ranav/argparse.git
|
||||
- GIT_TAG 45664c4
|
||||
+ URL @argparse_src@
|
||||
HEADER_ONLY
|
||||
)
|
||||
if (NOT TARGET argparse::argparse)
|
||||
@@ -64,7 +62,7 @@ function(setup_curlpp)
|
||||
set(CHECK_SOURCE "#error unimplemented}")
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME curlpp
|
||||
- GIT_REPOSITORY https://github.com/jpbarrette/curlpp.git
|
||||
+ URL @curlpp_src@
|
||||
)
|
||||
if (NOT APPLE)
|
||||
set(CURLPP_LIB_PATH1 "${curlpp_BINARY_DIR}/libcurlpp.so" PARENT_SCOPE)
|
||||
@@ -79,7 +77,7 @@ function(setup_doctest)
|
||||
#include <doctest/doctest.h>")
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME doctest
|
||||
- GIT_REPOSITORY https://github.com/onqtam/doctest.git
|
||||
+ URL @doctest_src@
|
||||
HEADER_ONLY
|
||||
)
|
||||
add_library(doctest::doctest ALIAS doctest)
|
||||
@@ -100,8 +98,7 @@ function(setup_fmt)
|
||||
}")
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME fmt
|
||||
- GIT_REPOSITORY https://github.com/fmtlib/fmt.git
|
||||
- GIT_TAG 8.1.1
|
||||
+ URL @fmt_src@
|
||||
TEST_LINK_LIBS fmt
|
||||
)
|
||||
|
||||
@@ -126,7 +123,7 @@ function(setup_nlohmann_json)
|
||||
add_library(nlohmann_json INTERFACE)
|
||||
else()
|
||||
FetchContent_Declare(nlohmann_json
|
||||
- URL https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip)
|
||||
+ URL @nlohmann_json_src@)
|
||||
FetchContent_GetProperties(nlohmann_json)
|
||||
if (NOT nlohmann_json_POPULATED)
|
||||
FetchContent_Populate(nlohmann_json)
|
||||
@@ -146,8 +143,7 @@ function(setup_pugixml)
|
||||
}")
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME pugixml
|
||||
- GIT_REPOSITORY https://github.com/muttleyxd/pugixml.git
|
||||
- GIT_TAG simple-build-for-a3ul
|
||||
+ URL @pugixml_src@
|
||||
TEST_LINK_LIBS pugixml
|
||||
)
|
||||
get_target_property(TARGET_TYPE pugixml TYPE)
|
||||
@@ -188,8 +184,7 @@ function(setup_spdlog)
|
||||
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME spdlog
|
||||
- GIT_REPOSITORY https://github.com/gabime/spdlog.git
|
||||
- GIT_TAG v1.x
|
||||
+ URL @spdlog_src@
|
||||
TEST_DEFINITIONS -DSPDLOG_FMT_EXTERNAL
|
||||
TEST_LINK_LIBS ${FMT_TARGET_NAME}
|
||||
CXX_FLAGS "-Wno-attributes -Wno-reorder -Wno-redundant-move"
|
||||
@@ -198,8 +193,7 @@ endfunction()
|
||||
|
||||
function(setup_steamworkssdk)
|
||||
FetchContent_Declare(steamworkssdk
|
||||
- URL https://github.com/julianxhokaxhiu/SteamworksSDKCI/releases/download/1.53/SteamworksSDK-v1.53.0_x64.zip
|
||||
- URL_HASH MD5=322c2c90c3ab76201c92f4a2c443f664
|
||||
+ URL @steamworkssdk_src@
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND ""
|
||||
)
|
||||
@@ -241,8 +235,7 @@ function(setup_trompeloeil)
|
||||
int main() { }")
|
||||
setup_library("${CHECK_SOURCE}"
|
||||
NAME trompeloeil
|
||||
- GIT_REPOSITORY https://github.com/rollbear/trompeloeil.git
|
||||
- GIT_TAG 64fd171
|
||||
+ URL @trompeloeil_src@
|
||||
HEADER_ONLY
|
||||
)
|
||||
add_library(trompeloeil::trompeloeil ALIAS trompeloeil)
|
88
pkgs/by-name/ar/arma3-unix-launcher/package.nix
Normal file
88
pkgs/by-name/ar/arma3-unix-launcher/package.nix
Normal file
@ -0,0 +1,88 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
cmake,
|
||||
curl,
|
||||
curlpp,
|
||||
doctest,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
fmt,
|
||||
nlohmann_json,
|
||||
qt5,
|
||||
spdlog,
|
||||
substituteAll,
|
||||
trompeloeil,
|
||||
buildDayZLauncher ? false,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "arma3-unix-launcher";
|
||||
version = "413";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "muttleyxd";
|
||||
repo = "arma3-unix-launcher";
|
||||
rev = "2ea62d961522f1542d4c8e669ef5fe856916f9ec";
|
||||
hash = "sha256-uym93mYmVj9UxT8RbwdRUyIPrQX7nZTNWUUVjxCQmVU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# prevent CMake from trying to get libraries on the internet
|
||||
(substituteAll {
|
||||
src = ./dont_fetch_dependencies.patch;
|
||||
argparse_src = fetchFromGitHub {
|
||||
owner = "p-ranav";
|
||||
repo = "argparse";
|
||||
rev = "45664c4e9f05ff287731a9ff8b724d0c89fb6e77";
|
||||
sha256 = "sha256-qLD9zD6hbItDn6ZHHWBXrAWhySvqcs40xA5+C/5Fkhw=";
|
||||
};
|
||||
curlpp_src = curlpp.src;
|
||||
doctest_src = doctest;
|
||||
fmt_src = fmt;
|
||||
nlohmann_json_src = nlohmann_json;
|
||||
pugixml_src = fetchFromGitHub {
|
||||
owner = "muttleyxd";
|
||||
repo = "pugixml";
|
||||
rev = "simple-build-for-a3ul";
|
||||
sha256 = "sha256-FpREdz6DbhnLDGOuQY9rU17SSd6ngA4WfO0kGHqGJPM=";
|
||||
};
|
||||
spdlog_src = spdlog;
|
||||
steamworkssdk_src = fetchurl {
|
||||
url = "https://github.com/julianxhokaxhiu/SteamworksSDKCI/releases/download/1.53/SteamworksSDK-v1.53.0_x64.zip";
|
||||
sha256 = "sha256-6PQGaPsaxBg/MHVWw2ynYW6LaNSrE9Rd9Q9ZLKFGPFA=";
|
||||
};
|
||||
trompeloeil_src = trompeloeil;
|
||||
})
|
||||
# game won't launch with steam integration anyways, disable it
|
||||
./disable_steam_integration.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
qt5.wrapQtAppsHook
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
spdlog
|
||||
curlpp.src
|
||||
curl
|
||||
qt5.qtbase
|
||||
qt5.qtsvg
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-Wno-dev" ] ++ lib.optionals buildDayZLauncher [ "-DBUILD_DAYZ_LAUNCHER=ON" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/muttleyxd/arma3-unix-launcher/";
|
||||
description = "Clean, intuitive Arma 3 + DayZ SA Launcher";
|
||||
license = with lib.licenses; [
|
||||
# Launcher
|
||||
mit
|
||||
# Steamworks SDK
|
||||
unfree
|
||||
];
|
||||
maintainers = with lib.maintainers; [ DrymarchonShaun ];
|
||||
mainProgram = "arma3-unix-launcher";
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
})
|
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
@ -15,17 +16,15 @@ python3.pkgs.buildPythonApplication rec {
|
||||
hash = "sha256-WZmWpcBqxsNH96nVWwoepFhsvdxZpYKmAjNd7ghIJMA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'networkx = "^2.8.4"' 'networkx = "*"' \
|
||||
--replace 'netaddr = "^0.8.0"' 'netaddr = "*"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3.pkgs.poetry-core
|
||||
pythonRelaxDeps = [
|
||||
"defusedxml"
|
||||
"netaddr"
|
||||
"networkx"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
build-system = with python3.pkgs; [ poetry-core ];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
dash
|
||||
defusedxml
|
||||
dnspython
|
||||
@ -38,13 +37,12 @@ python3.pkgs.buildPythonApplication rec {
|
||||
tinydb
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"das"
|
||||
];
|
||||
pythonImportsCheck = [ "das" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Divide full port scan results and use it for targeted Nmap runs";
|
||||
homepage = "https://github.com/snovvcrash/DivideAndScan";
|
||||
changelog = "https://github.com/snovvcrash/DivideAndScan/releases/tag/v${version}";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "das";
|
||||
|
68
pkgs/by-name/gd/gdm-settings/package.nix
Normal file
68
pkgs/by-name/gd/gdm-settings/package.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
appstream,
|
||||
blueprint-compiler,
|
||||
desktop-file-utils,
|
||||
glib,
|
||||
gnome,
|
||||
libadwaita,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
wrapGAppsHook4,
|
||||
# gdm-settings needs to know where to look for themes
|
||||
# This should work for most systems, but can be overridden if not
|
||||
dataDirs ? lib.concatStringsSep ":" [
|
||||
"/run/current-system/sw/share"
|
||||
"/usr/local/share"
|
||||
"/usr/share"
|
||||
],
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "gdm-settings";
|
||||
version = "4.4";
|
||||
pyproject = false;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gdm-settings";
|
||||
repo = "gdm-settings";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-3Te8bhv2TkpJFz4llm1itRhzg9v64M7Drtrm4s9EyiQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
appstream # for appstream file validation
|
||||
blueprint-compiler
|
||||
desktop-file-utils # for desktop file validation
|
||||
glib # for `glib-compile-schemas`
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = [ libadwaita ];
|
||||
|
||||
dependencies = [ python3Packages.pygobject3 ];
|
||||
|
||||
dontWrapGApps = true;
|
||||
makeWrapperArgs = [
|
||||
"\${gappsWrapperArgs[@]}"
|
||||
"--set-default HOST_DATA_DIRS ${dataDirs}"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "gdms" ];
|
||||
|
||||
meta = {
|
||||
description = "Settings app for GNOME's Login Manager";
|
||||
homepage = "https://gdm-settings.github.io/";
|
||||
changelog = "https://github.com/gdm-settings/gdm-settings/releases/tag/v${version}";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ getchoo ];
|
||||
mainProgram = "gdm-settings";
|
||||
inherit (gnome.gdm.meta) platforms;
|
||||
};
|
||||
}
|
@ -27,11 +27,11 @@ let
|
||||
in
|
||||
stdenv'.mkDerivation (finalAttrs: {
|
||||
pname = "got";
|
||||
version = "0.101";
|
||||
version = "0.102";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gameoftrees.org/releases/portable/got-portable-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-JQZBgscxoMv4Dki77s8tYo4r5BBG+ErsDYnY5/am3MA=";
|
||||
hash = "sha256-qstQ6mZLCdYL5uQauMt7nGlEdPkPneGfu36RbaboN3c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config bison ]
|
||||
|
@ -8,16 +8,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gowall";
|
||||
version = "0.1.6";
|
||||
version = "0.1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Achno";
|
||||
repo = "gowall";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-BNksshg1yK3mQuBaC4S3HzwfJ8vW0XxfDkG7YJAF00E=";
|
||||
hash = "sha256-R7dOONfyzj6V3101Rp/WhUcFpqrSKWEkVm4a2riXZAI=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-jNx4ehew+IBx7M6ey/rT0vb53+9OBVYSEDJv8JWfZIw=";
|
||||
vendorHash = "sha256-H2Io1K2LEFmEPJYVcEaVAK2ieBrkV6u+uX82XOvNXj4=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
|
@ -6,13 +6,13 @@
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "nuclei-templates";
|
||||
version = "9.9.2";
|
||||
version = "9.9.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "projectdiscovery";
|
||||
repo = "nuclei-templates";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-PObtdRhj4KaQRHpSSGCZzhFXRYRAJ4mejkYi7SgOqyE=";
|
||||
hash = "sha256-Iw2TbDQWRy3W7eaybtGG3C+RaciKfjWpYblrCPa8SCE=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
39
pkgs/by-name/qr/qrrs/package.nix
Normal file
39
pkgs/by-name/qr/qrrs/package.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "qrrs";
|
||||
version = "0.1.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lenivaya";
|
||||
repo = "qrrs";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-L8sqvLbh85b8Ds9EvXNkyGVXm8BF3ejFd8ZH7QoxJdU=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-RLxQ7tG5e3q4vqYJU0eNvvcEnnyNc9R9at0/ACLYJiY=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installManPage ./man/*.?
|
||||
|
||||
|
||||
installShellCompletion --cmd qrrs \
|
||||
--bash <(cat ./completions/qrrs.bash) \
|
||||
--fish <(cat ./completions/qrrs.fish) \
|
||||
--zsh <(cat ./completions/_qrrs)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
maintainers = with maintainers; [ lenivaya ];
|
||||
description = "CLI QR code generator and reader written in rust";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/Lenivaya/qrrs";
|
||||
mainProgram = "qrrs";
|
||||
};
|
||||
}
|
@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
name = "regal";
|
||||
version = "0.24.0";
|
||||
version = "0.25.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "StyraInc";
|
||||
repo = "regal";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-bSu35IfQBoz2YKlEm8e02ahw9FxQfilR3b2WdjbAubs=";
|
||||
hash = "sha256-yhlkvvNkZtpVx2uZVvXjr3eqBFXHDJ5qyO6k5EPNfww=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-2NzBcOQ1TLUsh8wKiGlPogql+6qNou8//XpCiE7eV5I=";
|
||||
vendorHash = "sha256-gZYQEJAlm8qslHGfUsA8np43zdiPDYyhKm8HZIBR3ys=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linter and language server for Rego";
|
||||
|
@ -7,13 +7,13 @@
|
||||
|
||||
tcl.mkTclDerivation rec {
|
||||
pname = "tclcurl";
|
||||
version = "7.22.0";
|
||||
version = "7.22.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flightaware";
|
||||
repo = "tclcurl-fa";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-FQSzujHuP7vGJ51sdXh+31gRKqn98dV1kIqMKSoVB0M=";
|
||||
hash = "sha256-XQuP+SiqvGX3ckBShUxsGBADjV3QdvYpU4hW6LMbMMQ=";
|
||||
};
|
||||
|
||||
buildInputs = [ curl ];
|
||||
|
@ -44,7 +44,7 @@ let
|
||||
buildInfo = ndkBuildInfoFun stdenv.buildPlatform;
|
||||
targetInfo = ndkTargetInfoFun stdenv.targetPlatform;
|
||||
|
||||
inherit (stdenv.targetPlatform) sdkVer;
|
||||
androidSdkVersion = if (stdenv.targetPlatform ? androidSdkVersion && stdenv.targetPlatform.androidSdkVersion != null) then stdenv.targetPlatform.androidSdkVersion else (throw "`androidSdkVersion` is not set during the importing of nixpkgs");
|
||||
suffixSalt = lib.replaceStrings ["-" "."] ["_" "_"] stdenv.targetPlatform.config;
|
||||
|
||||
# targetInfo.triple is what Google thinks the toolchain should be, this is a little
|
||||
@ -77,8 +77,8 @@ rec {
|
||||
cp -r ${androidndk}/libexec/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/${buildInfo.double} $out/toolchain
|
||||
find $out/toolchain -type d -exec chmod 777 {} \;
|
||||
|
||||
if [ ! -d $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/${sdkVer} ]; then
|
||||
echo "NDK does not contain libraries for SDK version ${sdkVer}";
|
||||
if [ ! -d $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/${androidSdkVersion} ]; then
|
||||
echo "NDK does not contain libraries for SDK version ${androidSdkVersion}";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -86,8 +86,8 @@ rec {
|
||||
ln -s $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/*.so $out/lib/
|
||||
ln -s $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/*.a $out/lib/
|
||||
chmod +w $out/lib/*
|
||||
ln -s $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/${sdkVer}/*.so $out/lib/
|
||||
ln -s $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/${sdkVer}/*.o $out/lib/
|
||||
ln -s $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/${androidSdkVersion}/*.so $out/lib/
|
||||
ln -s $out/toolchain/sysroot/usr/lib/${targetInfo.triple}/${androidSdkVersion}/*.o $out/lib/
|
||||
|
||||
echo "INPUT(-lc++_static)" > $out/lib/libc++.a
|
||||
|
||||
@ -130,7 +130,7 @@ rec {
|
||||
bintools = binutils;
|
||||
libc = targetAndroidndkPkgs.libraries;
|
||||
extraBuildCommands = ''
|
||||
echo "-D__ANDROID_API__=${stdenv.targetPlatform.sdkVer}" >> $out/nix-support/cc-cflags
|
||||
echo "-D__ANDROID_API__=${stdenv.targetPlatform.androidSdkVersion}" >> $out/nix-support/cc-cflags
|
||||
# Android needs executables linked with -pie since version 5.0
|
||||
# Use -fPIC for compilation, and link with -pie if no -shared flag used in ldflags
|
||||
echo "-target ${targetInfo.triple} -fPIC" >> $out/nix-support/cc-cflags
|
||||
@ -151,9 +151,9 @@ rec {
|
||||
# cross-compiling packages to wrap incorrectly wrap binaries we don't include
|
||||
# anyways.
|
||||
libraries = runCommand "bionic-prebuilt" {} ''
|
||||
lpath=${buildAndroidndk}/libexec/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/${buildInfo.double}/sysroot/usr/lib/${targetInfo.triple}/${sdkVer}
|
||||
lpath=${buildAndroidndk}/libexec/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/${buildInfo.double}/sysroot/usr/lib/${targetInfo.triple}/${androidSdkVersion}
|
||||
if [ ! -d $lpath ]; then
|
||||
echo "NDK does not contain libraries for SDK version ${sdkVer} <$lpath>"
|
||||
echo "NDK does not contain libraries for SDK version ${androidSdkVersion} <$lpath>"
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p $out/lib
|
||||
|
@ -25,13 +25,13 @@ let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "amdvlk";
|
||||
version = "2024.Q2.3";
|
||||
version = "2024.Q3.1";
|
||||
|
||||
src = fetchRepoProject {
|
||||
name = "${pname}-src";
|
||||
manifest = "https://github.com/GPUOpen-Drivers/AMDVLK.git";
|
||||
rev = "refs/tags/v-${version}";
|
||||
sha256 = "kNGJWuWN2B4hEyRz2JFGSE8TiIdxujBOxF/T6nNek0A=";
|
||||
sha256 = "IZYv9ZfpIllYUhJ3f7AOFmSl7OfWWY8doaG8pe3GE+4=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
@ -8,13 +8,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sqlitecpp";
|
||||
version = "3.3.1";
|
||||
version = "3.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SRombauts";
|
||||
repo = "sqlitecpp";
|
||||
rev = finalAttrs.version;
|
||||
sha256 = "sha256-8l1JRaE7w9vJ4bCSLGAk9zwYHDFeKkBi9pE5fUJfLRc=";
|
||||
sha256 = "sha256-rsVFk4FsonrwpBd3TonkxilwWeOBocH8AyeB+71OBdI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -49,6 +49,8 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
# Test is flaky
|
||||
"test_start_already_exists"
|
||||
# Tests require a Docker setup
|
||||
"celery_setup_worker"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -11,13 +11,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gradio-pdf";
|
||||
version = "0.0.11";
|
||||
version = "0.0.13";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "gradio_pdf";
|
||||
inherit version;
|
||||
hash = "sha256-HCfjJdd9DIRqm/dS00xlU9AYGM7U/b3zNo2IgZHtasc=";
|
||||
hash = "sha256-lxfbQSJavJQSYMGqxG7zmg/XT8V8TU2I3zGiq+B/dnw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
@ -27,7 +28,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gradio-client";
|
||||
version = "1.2.0";
|
||||
version = "1.3.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -39,7 +40,7 @@ buildPythonPackage rec {
|
||||
# not to be confused with @gradio/client@${version}
|
||||
rev = "refs/tags/gradio_client@${version}";
|
||||
sparseCheckout = [ "client/python" ];
|
||||
hash = "sha256-l5WHNerSYNXrFGOpAqxxh0JLiFpatxq6a62q83tEavo=";
|
||||
hash = "sha256-UZQWguUN3l0cj2wb2f7A61RTLy9nPYcIEwHIo+F1kR0=";
|
||||
};
|
||||
prePatch = ''
|
||||
cd client/python
|
||||
@ -91,6 +92,14 @@ buildPythonPackage rec {
|
||||
#"-x" "-W" "ignore" # uncomment for debugging help
|
||||
];
|
||||
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
# flaky: OSError: Cannot find empty port in range: 7860-7959
|
||||
"test_layout_components_in_output"
|
||||
"test_layout_and_state_components_in_output"
|
||||
"test_upstream_exceptions"
|
||||
"test_httpx_kwargs"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "gradio_client" ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
@ -47,6 +47,7 @@
|
||||
|
||||
# check
|
||||
pytestCheckHook,
|
||||
hypothesis,
|
||||
altair,
|
||||
boto3,
|
||||
gradio-pdf,
|
||||
@ -63,7 +64,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gradio";
|
||||
version = "4.40.0";
|
||||
version = "4.41.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@ -71,7 +72,7 @@ buildPythonPackage rec {
|
||||
# We use the Pypi release, since it provides prebuilt webui assets
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ChV5E6RfFcOwW6uFqU4/phfHfn27yS8+MKjMVytnlgU=";
|
||||
hash = "sha256-d4li7kQFMzlUVGdm2nTSnj25pTOWIqnZuOvTOtwPLpc=";
|
||||
};
|
||||
|
||||
# fix packaging.ParserSyntaxError, which can't handle comments
|
||||
@ -133,6 +134,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
hypothesis
|
||||
altair
|
||||
boto3
|
||||
gradio-pdf
|
||||
@ -187,6 +189,9 @@ buildPythonPackage rec {
|
||||
|
||||
# flaky: OSError: Cannot find empty port in range: 7860-7959
|
||||
"test_docs_url"
|
||||
"test_orjson_serialization"
|
||||
"test_dataset_is_updated"
|
||||
"test_multimodal_api"
|
||||
|
||||
# tests if pip and other tools are installed
|
||||
"test_get_executable_path"
|
||||
@ -245,8 +250,8 @@ buildPythonPackage rec {
|
||||
"test/test_networking.py"
|
||||
# makes pytest freeze 50% of the time
|
||||
"test/test_interfaces.py"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# Network-related tests that are flaky on darwin (depend on port availability)
|
||||
|
||||
# Local network tests dependant on port availability (port 7860-7959)
|
||||
"test/test_routes.py"
|
||||
];
|
||||
pytestFlagsArray = [
|
||||
|
@ -29,15 +29,10 @@ buildPythonPackage rec {
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./ffmpeg-path.patch;
|
||||
ffmpeg = "${ffmpeg}/bin/ffmpeg";
|
||||
ffmpeg = lib.getExe ffmpeg;
|
||||
})
|
||||
];
|
||||
|
||||
# https://github.com/imageio/imageio-ffmpeg/issues/59
|
||||
postPatch = ''
|
||||
sed -i '/setup_requires=\["pip>19"\]/d' setup.py
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "inform";
|
||||
version = "1.30";
|
||||
version = "1.31";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
owner = "KenKundert";
|
||||
repo = "inform";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6Yx9ZdmrFApJ6zBiC8Q++hlATVqjriJLS2KsqC0IBCk=";
|
||||
hash = "sha256-o7yH7jCNn9gbcr7NMJVaYQOJ7hvwaY2ur1FyEP40Cco=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nutils";
|
||||
version = "8.7";
|
||||
version = "8.8";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
owner = "evalf";
|
||||
repo = "nutils";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-wxouS0FXrdIhm6nTVBuzkwHceJnZ7f7k8nMFxFsZchE=";
|
||||
hash = "sha256-E/y1YXW+0+LfntRQsdIU9rMOmN8mlFwXktD/sViJo3I=";
|
||||
};
|
||||
|
||||
build-system = [ flit-core ];
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pbs-installer";
|
||||
version = "2024.4.24";
|
||||
version = "2024.08.14";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
owner = "frostming";
|
||||
repo = "pbs-installer";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-a35xQEdo7OOFlXk2vsTdVpEhqPRKFZRQzNnZw3c7ybA=";
|
||||
hash = "sha256-Hitd7Ze8pujkRBoTapP5SekpdiDwJz/0UNe0wW7eaRA=";
|
||||
};
|
||||
|
||||
build-system = [ pdm-backend ];
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prisma";
|
||||
version = "0.14.0";
|
||||
version = "0.15.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
owner = "RobertCraigie";
|
||||
repo = "prisma-client-py";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-PeKRH+6/D5/VxnhRFhpvtZ85OL8mJDhG7QLn4oRUvfE=";
|
||||
hash = "sha256-F+Up1HHslralt3NvZZ/wT+CKvzKOjhEEuMEeT0L6NZM=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
@ -10,6 +10,7 @@
|
||||
poetry-core,
|
||||
pyjwt,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
respx,
|
||||
@ -31,10 +32,7 @@ buildPythonPackage rec {
|
||||
hash = "sha256-letF0s/zJKdMT2nGnZpMFufja0bsL0zlwG+dCSK5BA4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail " --cov=pyenphase --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
pythonRelaxDeps = [ "tenacity" ];
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
@ -50,14 +48,15 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
respx
|
||||
syrupy
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/pyenphase/pyenphase/issues/97
|
||||
"test_with_7_x_firmware"
|
||||
disabledTestPaths = [
|
||||
# Tests need network access
|
||||
"tests/test_retries.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyenphase" ];
|
||||
|
@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
docker,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
poetry-core,
|
||||
pytest,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-docker-tools";
|
||||
version = "3.1.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Jc2k";
|
||||
repo = "pytest-docker-tools";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-6F3aSUyDlBBYG1kwOQvey7rujDdK83uJ3Q1dr8Uo1pw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Switch to poetry-core, https://github.com/Jc2k/pytest-docker-tools/pull/48
|
||||
(fetchpatch {
|
||||
name = "switch-poetry-core.patch";
|
||||
url = "https://github.com/Jc2k/pytest-docker-tools/pull/48/commits/a655e4a32b075e06e89dd907b06bc4ad90703988.patch";
|
||||
hash = "sha256-CwCBld7p+bqBfxV9IyxcCvfxXfnUSzCLF2m0ZduIqkU=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
dependencies = [ docker ];
|
||||
|
||||
# Tests require a Docker setup
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pytest_docker_tools" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Opionated helpers for creating py.test fixtures for Docker integration and smoke testing environments";
|
||||
homepage = "https://github.com/Jc2k/pytest-docker-tools";
|
||||
changelog = "https://github.com/Jc2k/pytest-docker-tools/releases/tag/${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -6,6 +6,7 @@
|
||||
orjson,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
respx,
|
||||
@ -29,10 +30,7 @@ buildPythonPackage rec {
|
||||
hash = "sha256-OHC+Ul64BYCsgoFDxI1hPjBGkd/pQ0j0c9Pt5lWg1E0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail " --cov=pytrydan --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
pythonRelaxDeps = [ "tenacity" ];
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
@ -46,6 +44,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
respx
|
||||
syrupy
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "quantile-forest";
|
||||
version = "1.3.7";
|
||||
version = "1.3.8";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
owner = "zillow";
|
||||
repo = "quantile-forest";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-3EcluHUDtAYfaHycgyCAaolRcChecrPRnMaUFrpzMIQ=";
|
||||
hash = "sha256-/BY34xxEWpmUcbITBUX2nGZ8ZOjKDPwiA6Vui0CvsBc=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
@ -21,13 +21,13 @@
|
||||
|
||||
let
|
||||
common = rec {
|
||||
version = "2.3.1";
|
||||
version = "2.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
repo = "nixd";
|
||||
rev = version;
|
||||
hash = "sha256-JmDMcxIQ0220O/vWw/9SyB1dH7MSJaPK/CKY44ViVjM=";
|
||||
hash = "sha256-ffHLKHpqgVlYLGQ/Dc/6hW/inA98QdMJiv/fT2IrH7c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, buildPackages, fetchurl, fetchFromGitLab
|
||||
{ stdenv, lib, buildPackages, fetchurl, fetchpatch, fetchFromGitLab
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableMinimal ? false
|
||||
, enableAppletSymlinks ? true
|
||||
@ -75,6 +75,27 @@ stdenv.mkDerivation rec {
|
||||
url = "https://git.alpinelinux.org/aports/plain/main/busybox/0002-nslookup-sanitize-all-printed-strings-with-printable.patch?id=ed92963eb55bbc8d938097b9ccb3e221a94653f4";
|
||||
sha256 = "sha256-vl1wPbsHtXY9naajjnTicQ7Uj3N+EQ8pRNnrdsiow+w=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2022-48174.patch"; # https://bugs.busybox.net/show_bug.cgi?id=15216
|
||||
url = "https://git.busybox.net/busybox/patch/?id=d417193cf37ca1005830d7e16f5fa7e1d8a44209";
|
||||
hash = "sha256-mpDEwYncpU6X6tmtj9xM2KCrB/v2ys5bYxmPPrhm6es=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2023-42366.patch"; # https://bugs.busybox.net/show_bug.cgi?id=15874
|
||||
# This patch is also used by Alpine, see https://git.alpinelinux.org/aports/tree/main/busybox/0037-awk.c-fix-CVE-2023-42366-bug-15874.patch
|
||||
url = "https://bugs.busybox.net/attachment.cgi?id=9697";
|
||||
hash = "sha256-2eYfLZLjStea9apKXogff6sCAdG9yHx0ZsgUBaGfQIA=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2023-42363.patch"; # https://bugs.busybox.net/show_bug.cgi?id=15865
|
||||
url = "https://git.launchpad.net/ubuntu/+source/busybox/plain/debian/patches/CVE-2023-42363.patch?id=c9d8a323b337d58e302717d41796aa0242963d5a";
|
||||
hash = "sha256-1W9Q8+yFkYQKzNTrvndie8QuaEbyAFL1ZASG2fPF+Z4=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2023-42364_CVE-2023-42365.patch"; # https://bugs.busybox.net/show_bug.cgi?id=15871 https://bugs.busybox.net/show_bug.cgi?id=15868
|
||||
url = "https://git.alpinelinux.org/aports/plain/main/busybox/CVE-2023-42364-CVE-2023-42365.patch?id=8a4bf5971168bf48201c05afda7bee0fbb188e13";
|
||||
hash = "sha256-nQPgT9eA1asCo38Z9X7LR9My0+Vz5YBPba3ARV3fWcc=";
|
||||
})
|
||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
|
||||
|
||||
separateDebugInfo = true;
|
||||
|
@ -12,6 +12,8 @@
|
||||
|
||||
better_thermostat = callPackage ./better_thermostat {};
|
||||
|
||||
dwd = callPackage ./dwd { };
|
||||
|
||||
elevenlabs_tts = callPackage ./elevenlabs_tts {};
|
||||
|
||||
emporia_vue = callPackage ./emporia_vue {};
|
||||
|
@ -0,0 +1,31 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildHomeAssistantComponent,
|
||||
defusedxml,
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "hg1337";
|
||||
domain = "dwd";
|
||||
version = "2024.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hg1337";
|
||||
repo = "homeassistant-dwd";
|
||||
rev = version;
|
||||
hash = "sha256-2bmLEBt6031p9SN855uunq7HrRJ9AFokw8t4CSBidTM=";
|
||||
};
|
||||
|
||||
dependencies = [ defusedxml ];
|
||||
|
||||
# defusedxml version mismatch
|
||||
dontCheckManifest = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Custom component for Home Assistant that integrates weather data (measurements and forecasts) of Deutscher Wetterdienst";
|
||||
homepage = "https://github.com/hg1337/homeassistant-dwd";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -21,16 +21,16 @@ let
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "minio";
|
||||
version = "2024-08-03T04-33-23Z";
|
||||
version = "2024-08-17T01-24-54Z";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "minio";
|
||||
repo = "minio";
|
||||
rev = "RELEASE.${version}";
|
||||
hash = "sha256-bzEGckelhq5jJGm6dbdPsIBqksv/jY6hQUf/STQUsoE=";
|
||||
hash = "sha256-e3Zti0v+2jfRkVoXOfqW5uw9zvIfoAKhkolfNtyBNaE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-ytkiQ/g0BwHyr6LY4SGBBmfRRCFTsBtDHClyRBboGCk=";
|
||||
vendorHash = "sha256-diRNxBmWB/aJjS8+/+7Dc/2RmI93SZpmfsqP+2i9X1Q=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
@ -64,7 +64,7 @@ in lib.init bootStages ++ [
|
||||
cc = if crossSystem.useiOSPrebuilt or false
|
||||
then buildPackages.darwin.iosSdkPkgs.clang
|
||||
else if crossSystem.useAndroidPrebuilt or false
|
||||
then buildPackages."androidndkPkgs_${crossSystem.ndkVer}".clang
|
||||
then buildPackages."androidndkPkgs_${crossSystem.androidNdkVersion}".clang
|
||||
else if targetPlatform.isGhcjs
|
||||
# Need to use `throw` so tryEval for splicing works, ugh. Using
|
||||
# `null` or skipping the attribute would cause an eval failure
|
||||
|
@ -17,11 +17,11 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "netatalk";
|
||||
version = "3.1.18";
|
||||
version = "3.1.19";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/netatalk/netatalk/netatalk-${finalAttrs.version}.tar.bz2";
|
||||
hash = "sha256-htIJ3Hd2pLoXhFFk0uN2pGnO43aiexiuMYmOP0ukFlU=";
|
||||
hash = "sha256-p0pzHwnjNNWPsWRBflgaZB+ijMP5bF99TEdLs4mVKsI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -60,11 +60,11 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "networkmanager";
|
||||
version = "1.48.6";
|
||||
version = "1.48.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/NetworkManager/${lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz";
|
||||
hash = "sha256-5lxJbgZjGkl3x5XA8khZjDnDQOVjXXz1TsMHKsyZiZU=";
|
||||
hash = "sha256-YgDqyPHT/mo+ofLEFYs8lbO5+R50zXBOl7CwUbWlSHg=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" "man" "doc" ];
|
||||
|
@ -11,14 +11,14 @@
|
||||
with python3.pkgs;
|
||||
buildPythonApplication rec {
|
||||
pname = "pdm";
|
||||
version = "2.17.3";
|
||||
version = "2.18.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-9JIg8iXscSWMv3FIsUp2yurGEnRb7atn+QYjmOpWp6U=";
|
||||
hash = "sha256-+WP48VWMD/lNrYK54xIS1V0MWdIVIH4PXgQG1Bsql9w=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -5,16 +5,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cloudlist";
|
||||
version = "1.0.8";
|
||||
version = "1.0.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "projectdiscovery";
|
||||
repo = "cloudlist";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-UyZ9KSjFu/NKiz4AZoKwHiWzh+KOARDmveCWcFbOS7A=";
|
||||
hash = "sha256-aXKDSV/+okwO4UbljQr2fS/UcJkb5gC1nPZgpN7GuLY=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-tMrTAbfD+ip/UxrGTaMswgqo94rJZ0lqqxPgYFhZoTY=";
|
||||
vendorHash = "sha256-xRxbLI+CEgMYh3nThUCqcKQR6AQV/J6E98xVTfcD2h4=";
|
||||
|
||||
ldflags = [
|
||||
"-w"
|
||||
|
@ -7,13 +7,13 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cri-tools";
|
||||
version = "1.30.1";
|
||||
version = "1.31.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubernetes-sigs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-mCBGLnNlAfq7qThsbsGsBSEJEI85fg0xAbFENyIRyBU=";
|
||||
hash = "sha256-ruhWuBpPjc0dX7kgiTBFFHriSGYx4XoMNv+M39aIh10=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
@ -19588,7 +19588,7 @@ with pkgs;
|
||||
|
||||
# TODO(@Ericson2314): Build bionic libc from source
|
||||
bionic = if stdenv.hostPlatform.useAndroidPrebuilt
|
||||
then pkgs."androidndkPkgs_${stdenv.hostPlatform.ndkVer}".libraries
|
||||
then pkgs."androidndkPkgs_${stdenv.hostPlatform.androidNdkVer}".libraries
|
||||
else callPackage ../os-specific/linux/bionic-prebuilt { };
|
||||
|
||||
boolstuff = callPackage ../development/libraries/boolstuff { };
|
||||
|
@ -12554,6 +12554,8 @@ self: super: with self; {
|
||||
|
||||
pytest-django = callPackage ../development/python-modules/pytest-django { };
|
||||
|
||||
pytest-docker-tools = callPackage ../development/python-modules/pytest-docker-tools { };
|
||||
|
||||
pytest-doctestplus = callPackage ../development/python-modules/pytest-doctestplus { };
|
||||
|
||||
pytest-dotenv = callPackage ../development/python-modules/pytest-dotenv { };
|
||||
|
Loading…
Reference in New Issue
Block a user