Merge master into haskell-updates

This commit is contained in:
github-actions[bot] 2023-11-03 00:12:22 +00:00 committed by GitHub
commit 1b00b5e528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
166 changed files with 14148 additions and 6888 deletions

View File

@ -1,13 +1,28 @@
# Fetchers {#chap-pkgs-fetchers} # Fetchers {#chap-pkgs-fetchers}
Building software with Nix often requires downloading source code and other files from the internet. Building software with Nix often requires downloading source code and other files from the internet.
`nixpkgs` provides *fetchers* for different protocols and services. Fetchers are functions that simplify downloading files. To this end, Nixpkgs provides *fetchers*: functions to obtain remote sources via various protocols and services.
Nixpkgs fetchers differ from built-in fetchers such as [`builtins.fetchTarball`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchTarball):
- A built-in fetcher will download and cache files at evaluation time and produce a [store path](https://nixos.org/manual/nix/stable/glossary#gloss-store-path).
A Nixpkgs fetcher will create a ([fixed-output](https://nixos.org/manual/nix/stable/glossary#gloss-fixed-output-derivation)) [derivation](https://nixos.org/manual/nix/stable/language/derivations), and files are downloaded at build time.
- Built-in fetchers will invalidate their cache after [`tarball-ttl`](https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-tarball-ttl) expires, and will require network activity to check if the cache entry is up to date.
Nixpkgs fetchers only re-download if the specified hash changes or the store object is not otherwise available.
- Built-in fetchers do not use [substituters](https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-substituters).
Derivations produced by Nixpkgs fetchers will use any configured binary cache transparently.
This significantly reduces the time needed to evaluate the entirety of Nixpkgs, and allows [Hydra](https://nixos.org/hydra) to retain and re-distribute sources used by Nixpkgs in the [public binary cache](https://cache.nixos.org).
For these reasons, built-in fetchers are not allowed in Nixpkgs source code.
The following table shows an overview of the differences:
| Fetchers | Download | Output | Cache | Re-download when |
|-|-|-|-|-|
| `builtins.fetch*` | evaluation time | store path | `/nix/store`, `~/.cache/nix` | `tarball-ttl` expires, cache miss in `~/.cache/nix`, output store object not in local store |
| `pkgs.fetch*` | build time | derivation | `/nix/store`, substituters | output store object not available |
## Caveats {#chap-pkgs-fetchers-caveats} ## Caveats {#chap-pkgs-fetchers-caveats}
Fetchers create [fixed output derivations](https://nixos.org/manual/nix/stable/#fixed-output-drvs) from downloaded files.
Nix can reuse the downloaded files via the hash of the resulting derivation.
The fact that the hash belongs to the Nix derivation output and not the file itself can lead to confusion. The fact that the hash belongs to the Nix derivation output and not the file itself can lead to confusion.
For example, consider the following fetcher: For example, consider the following fetcher:

View File

@ -225,6 +225,9 @@ Arguments:
This use case makes little sense for files that are already in the store. This use case makes little sense for files that are already in the store.
This should be a separate abstraction as e.g. `pkgs.drvLayout` instead, which could have a similar interface but be specific to derivations. This should be a separate abstraction as e.g. `pkgs.drvLayout` instead, which could have a similar interface but be specific to derivations.
Additional capabilities could be supported that can't be done at evaluation time, such as renaming files, creating new directories, setting executable bits, etc. Additional capabilities could be supported that can't be done at evaluation time, such as renaming files, creating new directories, setting executable bits, etc.
- (+) An API for filtering/transforming Nix store paths could be much more powerful,
because it's not limited to just what is possible at evaluation time with `builtins.path`.
Operations such as moving and adding files would be supported.
### Single files ### Single files

View File

@ -6493,6 +6493,12 @@
githubId = 1713676; githubId = 1713676;
name = "Luis G. Torres"; name = "Luis G. Torres";
}; };
giomf = {
email = "giomf@mailbox.org";
github = "giomf";
githubId = 35076723;
name = "Guillaume Fournier";
};
giorgiga = { giorgiga = {
email = "giorgio.gallo@bitnic.it"; email = "giorgio.gallo@bitnic.it";
github = "giorgiga"; github = "giorgiga";
@ -14076,6 +14082,13 @@
githubId = 13000278; githubId = 13000278;
name = "Maksim Bronsky"; name = "Maksim Bronsky";
}; };
plusgut = {
name = "Carlo Jeske";
email = "carlo.jeske+nixpkgs@webentwickler2-0.de";
github = "plusgut";
githubId = 277935;
matrix = "@plusgut5:matrix.org";
};
PlushBeaver = { PlushBeaver = {
name = "Dmitry Kozlyuk"; name = "Dmitry Kozlyuk";
email = "dmitry.kozliuk+nixpkgs@gmail.com"; email = "dmitry.kozliuk+nixpkgs@gmail.com";

View File

@ -390,6 +390,9 @@
- `zfs` was updated from 2.1.x to 2.2.0, [enabling newer kernel support and adding new features](https://github.com/openzfs/zfs/releases/tag/zfs-2.2.0). - `zfs` was updated from 2.1.x to 2.2.0, [enabling newer kernel support and adding new features](https://github.com/openzfs/zfs/releases/tag/zfs-2.2.0).
- Elixir now defaults to version
[v1.15](https://elixir-lang.org/blog/2023/06/19/elixir-v1-15-0-released/).
- A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` is still supported for cases where the name of the network interface is irrelevant. - A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` is still supported for cases where the name of the network interface is irrelevant.
- DocBook option documentation is no longer supported, all module documentation now uses markdown. - DocBook option documentation is no longer supported, all module documentation now uses markdown.
@ -413,6 +416,8 @@
- `services.hedgedoc` has been heavily refactored, reducing the amount of declared options in the module. Most of the options should still work without any changes. Some options have been deprecated, as they no longer have any effect. See [#244941](https://github.com/NixOS/nixpkgs/pull/244941) for more details. - `services.hedgedoc` has been heavily refactored, reducing the amount of declared options in the module. Most of the options should still work without any changes. Some options have been deprecated, as they no longer have any effect. See [#244941](https://github.com/NixOS/nixpkgs/pull/244941) for more details.
- The [services.woodpecker-server](#opt-services.woodpecker-server.environmentFile) type was changed to list of paths to be more consistent to the woodpecker-agent module
- The module [services.ankisyncd](#opt-services.ankisyncd.package) has been switched to [anki-sync-server-rs](https://github.com/ankicommunity/anki-sync-server-rs) from the old python version, which was difficult to update, had not been updated in a while, and did not support recent versions of anki. - The module [services.ankisyncd](#opt-services.ankisyncd.package) has been switched to [anki-sync-server-rs](https://github.com/ankicommunity/anki-sync-server-rs) from the old python version, which was difficult to update, had not been updated in a while, and did not support recent versions of anki.
Unfortunately all servers supporting new clients (newer version of anki-sync-server, anki's built in sync server and this new rust package) do not support the older sync protocol that was used in the old server, so such old clients will also need updating and in particular the anki package in nixpkgs is also being updated in this release. Unfortunately all servers supporting new clients (newer version of anki-sync-server, anki's built in sync server and this new rust package) do not support the older sync protocol that was used in the old server, so such old clients will also need updating and in particular the anki package in nixpkgs is also being updated in this release.
The module update takes care of the new config syntax and the data itself (user login and cards) are compatible, so users of the module will be able to just log in again after updating both client and server without any extra action. The module update takes care of the new config syntax and the data itself (user login and cards) are compatible, so users of the module will be able to just log in again after updating both client and server without any extra action.

View File

@ -20,7 +20,10 @@ in rec {
pkgs.runCommand "unit-${mkPathSafeName name}" pkgs.runCommand "unit-${mkPathSafeName name}"
{ preferLocalBuild = true; { preferLocalBuild = true;
allowSubstitutes = false; allowSubstitutes = false;
inherit (unit) text; # unit.text can be null. But variables that are null listed in
# passAsFile are ignored by nix, resulting in no file being created,
# making the mv operation fail.
text = optionalString (unit.text != null) unit.text;
passAsFile = [ "text" ]; passAsFile = [ "text" ];
} }
'' ''

View File

@ -3,8 +3,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib;
let let
# This is copied into the installer image, so it's important that it is filtered # This is copied into the installer image, so it's important that it is filtered
# to avoid including a large .git directory. # to avoid including a large .git directory.
@ -27,38 +25,40 @@ let
if [ ! -e $out/nixos/nixpkgs ]; then if [ ! -e $out/nixos/nixpkgs ]; then
ln -s . $out/nixos/nixpkgs ln -s . $out/nixos/nixpkgs
fi fi
${optionalString (config.system.nixos.revision != null) '' ${lib.optionalString (config.system.nixos.revision != null) ''
echo -n ${config.system.nixos.revision} > $out/nixos/.git-revision echo -n ${config.system.nixos.revision} > $out/nixos/.git-revision
''} ''}
echo -n ${config.system.nixos.versionSuffix} > $out/nixos/.version-suffix echo -n ${config.system.nixos.versionSuffix} > $out/nixos/.version-suffix
echo ${config.system.nixos.versionSuffix} | sed -e s/pre// > $out/nixos/svn-revision echo ${config.system.nixos.versionSuffix} | sed -e s/pre// > $out/nixos/svn-revision
''; '';
in in
{ {
# Pin the nixpkgs flake in the installer to our cleaned up nixpkgs source. options.system.installer.channel.enable = (lib.mkEnableOption "bundling NixOS/Nixpkgs channel in the installer") // { default = true; };
# FIXME: this might be surprising and is really only needed for offline installations, config = lib.mkIf config.system.installer.channel.enable {
# see discussion in https://github.com/NixOS/nixpkgs/pull/204178#issuecomment-1336289021 # Pin the nixpkgs flake in the installer to our cleaned up nixpkgs source.
nix.registry.nixpkgs.to = { # FIXME: this might be surprising and is really only needed for offline installations,
type = "path"; # see discussion in https://github.com/NixOS/nixpkgs/pull/204178#issuecomment-1336289021
path = "${channelSources}/nixos"; nix.registry.nixpkgs.to = {
}; type = "path";
path = "${channelSources}/nixos";
};
# Provide the NixOS/Nixpkgs sources in /etc/nixos. This is required # Provide the NixOS/Nixpkgs sources in /etc/nixos. This is required
# for nixos-install. # for nixos-install.
boot.postBootCommands = mkAfter boot.postBootCommands = lib.mkAfter
'' ''
if ! [ -e /var/lib/nixos/did-channel-init ]; then if ! [ -e /var/lib/nixos/did-channel-init ]; then
echo "unpacking the NixOS/Nixpkgs sources..." echo "unpacking the NixOS/Nixpkgs sources..."
mkdir -p /nix/var/nix/profiles/per-user/root mkdir -p /nix/var/nix/profiles/per-user/root
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/per-user/root/channels \ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/per-user/root/channels \
-i ${channelSources} --quiet --option build-use-substitutes false \ -i ${channelSources} --quiet --option build-use-substitutes false \
${optionalString config.boot.initrd.systemd.enable "--option sandbox false"} # There's an issue with pivot_root ${lib.optionalString config.boot.initrd.systemd.enable "--option sandbox false"} # There's an issue with pivot_root
mkdir -m 0700 -p /root/.nix-defexpr mkdir -m 0700 -p /root/.nix-defexpr
ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
mkdir -m 0755 -p /var/lib/nixos mkdir -m 0755 -p /var/lib/nixos
touch /var/lib/nixos/did-channel-init touch /var/lib/nixos/did-channel-init
fi fi
''; '';
};
} }

View File

@ -31,9 +31,9 @@ in
description = lib.mdDoc "woodpecker-server config environment variables, for other options read the [documentation](https://woodpecker-ci.org/docs/administration/server-config)"; description = lib.mdDoc "woodpecker-server config environment variables, for other options read the [documentation](https://woodpecker-ci.org/docs/administration/server-config)";
}; };
environmentFile = lib.mkOption { environmentFile = lib.mkOption {
type = lib.types.nullOr lib.types.path; type = with lib.types; coercedTo path (f: [ f ]) (listOf path);
default = null; default = [ ];
example = "/root/woodpecker-server.env"; example = [ "/root/woodpecker-server.env" ];
description = lib.mdDoc '' description = lib.mdDoc ''
File to load environment variables File to load environment variables
from. This is helpful for specifying secrets. from. This is helpful for specifying secrets.
@ -61,7 +61,7 @@ in
StateDirectoryMode = "0700"; StateDirectoryMode = "0700";
UMask = "0007"; UMask = "0007";
ConfigurationDirectory = "woodpecker-server"; ConfigurationDirectory = "woodpecker-server";
EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile; EnvironmentFile = cfg.environmentFile;
ExecStart = "${cfg.package}/bin/woodpecker-server"; ExecStart = "${cfg.package}/bin/woodpecker-server";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 15; RestartSec = 15;

View File

@ -455,6 +455,7 @@ in {
"govee_ble" "govee_ble"
"homekit_controller" "homekit_controller"
"inkbird" "inkbird"
"improv_ble"
"keymitt_ble" "keymitt_ble"
"led_ble" "led_ble"
"medcom_ble" "medcom_ble"

View File

@ -108,7 +108,7 @@ in {
services.grafana.settings.rendering = mkIf cfg.provisionGrafana { services.grafana.settings.rendering = mkIf cfg.provisionGrafana {
server_url = "http://localhost:${toString cfg.settings.service.port}/render"; server_url = "http://localhost:${toString cfg.settings.service.port}/render";
callback_url = "http://localhost:${toString config.services.grafana.settings.server.http_port}"; callback_url = "http://${config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}";
}; };
services.grafana-image-renderer.chromium = mkDefault pkgs.chromium; services.grafana-image-renderer.chromium = mkDefault pkgs.chromium;

View File

@ -86,7 +86,7 @@ let
# Erlang/Elixir uses a somewhat special format for IP addresses # Erlang/Elixir uses a somewhat special format for IP addresses
erlAddr = addr: fileContents erlAddr = addr: fileContents
(pkgs.runCommand addr { (pkgs.runCommand addr {
nativeBuildInputs = with pkgs; [ elixir ]; nativeBuildInputs = [ cfg.package.elixirPackage ];
code = '' code = ''
case :inet.parse_address('${addr}') do case :inet.parse_address('${addr}') do
{:ok, addr} -> IO.inspect addr {:ok, addr} -> IO.inspect addr
@ -96,7 +96,7 @@ let
passAsFile = [ "code" ]; passAsFile = [ "code" ];
} ''elixir "$codePath" >"$out"''); } ''elixir "$codePath" >"$out"'');
format = pkgs.formats.elixirConf { }; format = pkgs.formats.elixirConf { elixir = cfg.package.elixirPackage; };
configFile = format.generate "config.exs" configFile = format.generate "config.exs"
(replaceSec (replaceSec
(attrsets.updateManyAttrsByPath [{ (attrsets.updateManyAttrsByPath [{
@ -146,7 +146,7 @@ let
initSecretsScript = writeShell { initSecretsScript = writeShell {
name = "akkoma-init-secrets"; name = "akkoma-init-secrets";
runtimeInputs = with pkgs; [ coreutils elixir ]; runtimeInputs = with pkgs; [ coreutils cfg.package.elixirPackage ];
text = let text = let
key-base = web.secret_key_base; key-base = web.secret_key_base;
jwt-signer = ex.":joken".":default_signer"; jwt-signer = ex.":joken".":default_signer";

View File

@ -8,7 +8,7 @@ let
user = "mobilizon"; user = "mobilizon";
group = "mobilizon"; group = "mobilizon";
settingsFormat = pkgs.formats.elixirConf { elixir = pkgs.elixir_1_14; }; settingsFormat = pkgs.formats.elixirConf { elixir = cfg.package.elixirPackage; };
configFile = settingsFormat.generate "mobilizon-config.exs" cfg.settings; configFile = settingsFormat.generate "mobilizon-config.exs" cfg.settings;
@ -309,7 +309,7 @@ in
genCookie = "IO.puts(Base.encode32(:crypto.strong_rand_bytes(32)))"; genCookie = "IO.puts(Base.encode32(:crypto.strong_rand_bytes(32)))";
evalElixir = str: '' evalElixir = str: ''
${pkgs.elixir_1_14}/bin/elixir --eval '${str}' ${cfg.package.elixirPackage}/bin/elixir --eval '${str}'
''; '';
in in
'' ''

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pocket-casts"; pname = "pocket-casts";
version = "0.6.0"; version = "0.7.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "felicianotech"; owner = "felicianotech";
repo = "pocket-casts-desktop-app"; repo = "pocket-casts-desktop-app";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-WMv2G4b7kYnWy0pz8YyI2eTdefs1mtWau+HQLiRygjE="; sha256 = "sha256-d4uVeHy4/91Ki6Wk6GlOt2lcK6U+M7fOryiOYA7q/x4=";
}; };
desktopItems = [ desktopItems = [

View File

@ -26,7 +26,6 @@
, libXrandr , libXrandr
, lzo , lzo
, mbedtls_2 , mbedtls_2
, mgba
, miniupnpc , miniupnpc
, minizip-ng , minizip-ng
, openal , openal
@ -38,7 +37,6 @@
, vulkan-loader , vulkan-loader
, xxHash , xxHash
, xz , xz
, zlib-ng
# Used in passthru # Used in passthru
, common-updater-scripts , common-updater-scripts
@ -78,6 +76,8 @@ stdenv.mkDerivation rec {
./find-minizip-ng.patch ./find-minizip-ng.patch
]; ];
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
stdenv.cc stdenv.cc
cmake cmake
@ -118,7 +118,6 @@ stdenv.mkDerivation rec {
sfml sfml
xxHash xxHash
xz # LibLZMA xz # LibLZMA
zlib-ng
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
alsa-lib alsa-lib
bluez bluez
@ -175,6 +174,7 @@ stdenv.mkDerivation rec {
tests.version = testers.testVersion { tests.version = testers.testVersion {
package = dolphin-emu; package = dolphin-emu;
command = "dolphin-emu-nogui --version"; command = "dolphin-emu-nogui --version";
version = if stdenv.hostPlatform.isDarwin then "Dolphin 5.0" else version;
}; };
updateScript = writeShellScript "dolphin-update-script" '' updateScript = writeShellScript "dolphin-update-script" ''

View File

@ -23,6 +23,11 @@ in stdenv.mkDerivation {
sha256 = "1gy79d5wdaacph0cc1amw7mqm7i0716n6mvav16p1svi26iz193v"; sha256 = "1gy79d5wdaacph0cc1amw7mqm7i0716n6mvav16p1svi26iz193v";
}; };
patches = [
./zlib-1.3.patch
./fortify3.patch
];
buildInputs = [ nasm SDL zlib libpng ncurses libGLU libGL ]; buildInputs = [ nasm SDL zlib libpng ncurses libGLU libGL ];
prePatch = '' prePatch = ''

View File

@ -0,0 +1,20 @@
pal16bxcl is an array of 256 dwords, not bytes:
src/endmem.asm:NEWSYM pal16bxcl, resd 256
While at it fixes off-by-4 out of bounds exit.
Detected by _FORTIFY_SOURCE=3:
*** buffer overflow detected ***: terminated
#7 0x08057c14 in memset (__len=2, __ch=255, __dest=<optimized out>) at ...-glibc-2.38-23-dev/include/bits/string_fortified.h:59
#8 clearmem () at initc.c:1461
--- a/src/initc.c
+++ b/src/initc.c
@@ -1389,7 +1389,7 @@ extern unsigned char vidmemch8[4096];
extern unsigned char pal16b[1024];
extern unsigned char pal16bcl[1024];
extern unsigned char pal16bclha[1024];
-extern unsigned char pal16bxcl[256];
+extern unsigned char pal16bxcl[1024];
extern unsigned char SPCRAM[65472];
unsigned char *SPCState = SPCRAM;

View File

@ -0,0 +1,41 @@
Add support for 2-digit zlib version like "1.3".
--- a/src/acinclude.m4
+++ b/src/acinclude.m4
@@ -67,7 +67,7 @@ char* my_strdup (char *str)
int main (int argc, char *argv[])
{
- int major, minor, micro, zlib_major_version, zlib_minor_version, zlib_micro_version;
+ int major, minor, micro, zlib_major_version, zlib_minor_version, zlib_micro_version = 0;
char *zlibver, *tmp_version;
@@ -85,7 +85,7 @@ int main (int argc, char *argv[])
printf("%s, bad version string for\n\tmin_zlib_version... ", "$min_zlib_version");
exit(1);
}
- if (sscanf(zlibver, "%d.%d.%d", &zlib_major_version, &zlib_minor_version, &zlib_micro_version) != 3) {
+ if (sscanf(zlibver, "%d.%d.%d", &zlib_major_version, &zlib_minor_version, &zlib_micro_version) != 3 && sscanf(zlibver, "%d.%d", &zlib_major_version, &zlib_minor_version) != 2) {
printf("%s, bad version string given\n", zlibver);
puts("\tby zlib, sometimes due to very old zlibs that didnt correctly");
printf("\tdefine their version. Please upgrade if you are running an\n\told zlib... ");
--- a/src/configure
+++ b/src/configure
@@ -3817,7 +3817,7 @@ char* my_strdup (char *str)
int main (int argc, char *argv[])
{
- int major, minor, micro, zlib_major_version, zlib_minor_version, zlib_micro_version;
+ int major, minor, micro, zlib_major_version, zlib_minor_version, zlib_micro_version = 0;
char *zlibver, *tmp_version;
@@ -3835,7 +3835,7 @@ int main (int argc, char *argv[])
printf("%s, bad version string for\n\tmin_zlib_version... ", "$min_zlib_version");
exit(1);
}
- if (sscanf(zlibver, "%d.%d.%d", &zlib_major_version, &zlib_minor_version, &zlib_micro_version) != 3) {
+ if (sscanf(zlibver, "%d.%d.%d", &zlib_major_version, &zlib_minor_version, &zlib_micro_version) != 3 && sscanf(zlibver, "%d.%d", &zlib_major_version, &zlib_minor_version) != 2) {
printf("%s, bad version string given\n", zlibver);
puts("\tby zlib, sometimes due to very old zlibs that didnt correctly");
printf("\tdefine their version. Please upgrade if you are running an\n\told zlib... ");

View File

@ -15,12 +15,12 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mkgmap"; pname = "mkgmap";
version = "4914"; version = "4916";
src = fetchsvn { src = fetchsvn {
url = "https://svn.mkgmap.org.uk/mkgmap/mkgmap/trunk"; url = "https://svn.mkgmap.org.uk/mkgmap/mkgmap/trunk";
rev = version; rev = version;
sha256 = "sha256-aA5jGW6GTo2OvFZ/uPA4KpS+SjNB/tRGwgj1oM7zywU="; sha256 = "sha256-Ok6s1DaTZBcYtkHA7WAxjGz0HycvFqBpkwZIirc+dFU=";
}; };
patches = [ patches = [

View File

@ -7,29 +7,32 @@
, libXau , libXau
, libXdmcp , libXdmcp
, conf ? null , conf ? null
, patches ? [] , patches ? [ ]
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "slstatus"; pname = "slstatus";
version = "unstable-2022-12-19"; version = "1.0";
src = fetchgit { src = fetchgit {
url = "https://git.suckless.org/slstatus"; url = "https://git.suckless.org/slstatus";
rev = "c919def84fd4f52f501548e5f7705b9d56dd1459"; rev = version;
hash = "sha256-nEIHIO8CAYdtX8GniO6GDEaHj7kEu81b05nCMVdr2SE="; hash = "sha256-cFah6EgApslLSlJaOy/5W9ZV9Z1lzfKye/rRh9Om3T4=";
}; };
configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf); preBuild =
preBuild = '' let
${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"} configFile = if lib.isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf;
makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC) in
''; ''
${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"}
makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC)
'';
inherit patches; inherit patches;
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libX11 libXau libXdmcp]; buildInputs = [ libX11 libXau libXdmcp ];
installFlags = [ "PREFIX=$(out)" ]; installFlags = [ "PREFIX=$(out)" ];

View File

@ -68,24 +68,24 @@ let
libcava.src = fetchFromGitHub { libcava.src = fetchFromGitHub {
owner = "LukashonakV"; owner = "LukashonakV";
repo = "cava"; repo = "cava";
rev = "0.8.5"; rev = "0.9.1";
hash = "sha256-b/XfqLh8PnW018sGVKRRlFvBpo2Ru1R2lUeTR7pugBo="; hash = "sha256-FnRJJV0poRmw+y4nt1X7Z0ipX86LRK1TJhNKHFk0rTw=";
}; };
in in
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "waybar"; pname = "waybar";
version = "0.9.22"; version = "0.9.23";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Alexays"; owner = "Alexays";
repo = "Waybar"; repo = "Waybar";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-9LJDA+zrHF9Mn8+W9iUw50LvO+xdT7/l80KdltPrnDo="; hash = "sha256-MYOnEqoIN74rw/+DdTLdZXG8JmF70j5hPXhahfp32m0=";
}; };
postUnpack = lib.optional cavaSupport '' postUnpack = lib.optional cavaSupport ''
pushd "$sourceRoot" pushd "$sourceRoot"
cp -R --no-preserve=mode,ownership ${libcava.src} subprojects/cava-0.8.5 cp -R --no-preserve=mode,ownership ${libcava.src} subprojects/cava-0.9.1
patchShebangs . patchShebangs .
popd popd
''; '';

View File

@ -7,13 +7,13 @@
buildGoModule rec { buildGoModule rec {
pname = "ydict"; pname = "ydict";
version = "2.2.1"; version = "2.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "TimothyYe"; owner = "TimothyYe";
repo = "ydict"; repo = "ydict";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-qrGOrqI+PXsDNCmgcCPDNn6qUYu2emhYSkYsz4sj27M="; sha256 = "sha256-FcrkfWE1m5OveK4YPgVmUbL/jkh2NEs9bfeCHm2H9P8=";
}; };
vendorHash = "sha256-c5nQVQd4n978kFAAKcx5mX2Jz16ZOhS8iL/oxS1o5xs="; vendorHash = "sha256-c5nQVQd4n978kFAAKcx5mX2Jz16ZOhS8iL/oxS1o5xs=";

View File

@ -47,19 +47,42 @@
, at-spi2-atk , at-spi2-atk
, at-spi2-core , at-spi2-core
, libqt5pas , libqt5pas
, qt6
, vivaldi-ffmpeg-codecs
, edition ? "stable"
}: }:
stdenv.mkDerivation rec { let
pname = "yandex-browser"; version = {
version = "23.7.1.1148-1"; corporate = "23.9.1.1016-1";
beta = "23.9.1.1028-1";
stable = "23.9.1.962-1";
}.${edition};
hash = {
corporate = "sha256-A/MjphA6vefDzPmShpPbgjDTl4WnCiZWuHofy1Djrzc=";
beta = "sha256-vnz1weMwR3V/mBNzrJ0iqnA/aifYTCucW+9kyy/0SnA=";
stable = "sha256-VrDqFLvK7RdnV6Yt1DILu7mV1WFcilOH5+VKlCdpXjc=";
}.${edition};
app = {
corporate = "";
beta = "-beta";
stable = "";
}.${edition};
in stdenv.mkDerivation rec {
pname = "yandex-browser-${edition}";
inherit version;
src = fetchurl { src = fetchurl {
url = "http://repo.yandex.ru/yandex-browser/deb/pool/main/y/${pname}-beta/${pname}-beta_${version}_amd64.deb"; url = "http://repo.yandex.ru/yandex-browser/deb/pool/main/y/${pname}/${pname}_${version}_amd64.deb";
sha256 = "sha256-SJbuT2MnsXcqOSk4xCUokseDotjbWgAnvwnfNPF9zi4="; inherit hash;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
autoPatchelfHook autoPatchelfHook
qt6.wrapQtAppsHook
wrapGAppsHook wrapGAppsHook
]; ];
@ -108,6 +131,7 @@ stdenv.mkDerivation rec {
pango pango
stdenv.cc.cc.lib stdenv.cc.cc.lib
libqt5pas libqt5pas
qt6.qtbase
]; ];
unpackPhase = '' unpackPhase = ''
@ -118,15 +142,20 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
cp $TMP/ya/{usr/share,opt} $out/ -R cp $TMP/ya/{usr/share,opt} $out/ -R
substituteInPlace $out/share/applications/yandex-browser-beta.desktop --replace /usr/ $out/ cp $out/share/applications/yandex-browser${app}.desktop $out/share/applications/${pname}.desktop || true
ln -sf $out/opt/yandex/browser-beta/yandex_browser $out/bin/yandex-browser rm -f $out/share/applications/yandex-browser.desktop
ln -sf $out/opt/yandex/browser-beta/yandex_browser $out/bin/yandex-browser-beta substituteInPlace $out/share/applications/${pname}.desktop --replace /usr/ $out/
substituteInPlace $out/share/menu/yandex-browser${app}.menu --replace /opt/ $out/opt/
substituteInPlace $out/share/gnome-control-center/default-apps/yandex-browser${app}.xml --replace /opt/ $out/opt/
ln -sf ${vivaldi-ffmpeg-codecs}/lib/libffmpeg.so $out/opt/yandex/browser${app}/libffmpeg.so
ln -sf $out/opt/yandex/browser${app}/yandex-browser${app} $out/bin/${pname}
''; '';
runtimeDependencies = map lib.getLib [ runtimeDependencies = map lib.getLib [
libpulseaudio libpulseaudio
curl curl
systemd systemd
vivaldi-ffmpeg-codecs
] ++ buildInputs; ] ++ buildInputs;
meta = with lib; { meta = with lib; {

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "kyverno"; pname = "kyverno";
version = "1.10.3"; version = "1.10.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kyverno"; owner = "kyverno";
repo = "kyverno"; repo = "kyverno";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-SRDabFN0ITXwHzvE5m3pIAk42kQa2yINpT64x+k3r3g="; sha256 = "sha256-Qcy+LGvoDJZ+zpIJvC8P0c5pl6GpiDuq7sWdrdMojmg=";
}; };
ldflags = [ ldflags = [
@ -18,7 +18,7 @@ buildGoModule rec {
"-X github.com/kyverno/kyverno/pkg/version.BuildTime=1970-01-01_00:00:00" "-X github.com/kyverno/kyverno/pkg/version.BuildTime=1970-01-01_00:00:00"
]; ];
vendorHash = "sha256-YFlf0lqG4vWn9d5RAvi12ti/wV+qvsHWn123hhfmxRU="; vendorHash = "sha256-6JM5r/MUETmlMB/8Z82mpUe8bAym9ekb1HL24ik2OlE=";
subPackages = [ "cmd/cli/kubectl-kyverno" ]; subPackages = [ "cmd/cli/kubectl-kyverno" ];

View File

@ -5,14 +5,14 @@
, fetchurl , fetchurl
, python3 , python3
, dropbox , dropbox
, gtk3 , gtk4
, gnome , gnome
, gdk-pixbuf , gdk-pixbuf
, gobject-introspection , gobject-introspection
}: }:
let let
version = "2020.03.04"; version = "2023.09.06";
dropboxd = "${dropbox}/bin/dropbox"; dropboxd = "${dropbox}/bin/dropbox";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -23,16 +23,12 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "https://linux.dropbox.com/packages/nautilus-dropbox-${version}.tar.bz2"; url = "https://linux.dropbox.com/packages/nautilus-dropbox-${version}.tar.bz2";
sha256 = "1jjc835n2j61d23kvygdb4n4jsrw33r9mbwxrm4fqin6x01l2w7k"; hash = "sha256-kZMwj8Fn8Hf58C57wE025TlmiSs5TaKMGEzvb2QjgSw=";
}; };
strictDeps = true; strictDeps = true;
patches = [ patches = [
# Fix extension for Nautilus 43
# https://github.com/dropbox/nautilus-dropbox/pull/105
./nautilus-43.patch
(substituteAll { (substituteAll {
src = ./fix-cli-paths.patch; src = ./fix-cli-paths.patch;
inherit dropboxd; inherit dropboxd;
@ -54,12 +50,12 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
python3 python3
gtk3 gtk4
gnome.nautilus gnome.nautilus
]; ];
configureFlags = [ configureFlags = [
"--with-nautilus-extension-dir=${placeholder "nautilusExtension"}/lib/nautilus/extensions-3.0" "--with-nautilus-extension-dir=${placeholder "nautilusExtension"}/lib/nautilus/extension-4"
]; ];
makeFlags = [ makeFlags = [
@ -70,6 +66,8 @@ stdenv.mkDerivation {
homepage = "https://www.dropbox.com"; homepage = "https://www.dropbox.com";
description = "Command line client for the dropbox daemon"; description = "Command line client for the dropbox daemon";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
mainProgram = "dropbox";
maintainers = with lib.maintainers; [ eclairevoyant ];
# NOTE: Dropbox itself only works on linux, so this is ok. # NOTE: Dropbox itself only works on linux, so this is ok.
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };

View File

@ -7,7 +7,7 @@ assert lib.elem stdenv.hostPlatform.system platforms;
# Dropbox client to bootstrap installation. # Dropbox client to bootstrap installation.
# The client is self-updating, so the actual version may be newer. # The client is self-updating, so the actual version may be newer.
let let
version = "111.3.447"; version = "185.4.6054";
arch = { arch = {
x86_64-linux = "x86_64"; x86_64-linux = "x86_64";
@ -84,7 +84,7 @@ buildFHSEnv {
description = "Online stored folders (daemon version)"; description = "Online stored folders (daemon version)";
homepage = "http://www.dropbox.com/"; homepage = "http://www.dropbox.com/";
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ ttuegel ]; maintainers = with maintainers; [ eclairevoyant ttuegel ];
platforms = [ "i686-linux" "x86_64-linux" ]; platforms = [ "i686-linux" "x86_64-linux" ];
mainProgram = "dropbox"; mainProgram = "dropbox";
}; };

View File

@ -1,195 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 025289c..42b49fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@ AM_CONFIG_HEADER(config.h)
#AC_PROG_INTLTOOL([0.29])
# Dependency checks
-NAUTILUS_REQUIRED=2.16.0
+NAUTILUS_REQUIRED=43.rc
GLIB_REQUIRED=2.14.0
# Used programs
@@ -26,8 +26,11 @@ if test "x$HAVE_PKGCONFIG" = "xno"; then
AC_MSG_ERROR(you need to have pkgconfig installed !)
fi
-PKG_CHECK_MODULES(NAUTILUS, libnautilus-extension >= $NAUTILUS_REQUIRED)
+PKG_CHECK_MODULES(NAUTILUS, libnautilus-extension-4 >= $NAUTILUS_REQUIRED)
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
+PKG_CHECK_MODULES(GTK, gtk4 >= 4.6.0)
+
+AC_SUBST(GTK_CFLAGS)
AC_PATH_PROG([PYTHON3], [python3])
@@ -84,10 +87,10 @@ AC_MSG_CHECKING([for nautilus extension directory])
if test -n "$with_nautilus_extension_dir"; then
NAUTILUS_EXTENSION_DIR=$with_nautilus_extension_dir
else
- NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
+ NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension-4`
fi
if test -z "$NAUTILUS_EXTENSION_DIR"; then
- NAUTILUS_EXTENSION_DIR='${exec_prefix}/lib/nautilus/extension-1.0'
+ NAUTILUS_EXTENSION_DIR='${exec_prefix}/lib/nautilus/extension-4'
fi
AC_MSG_RESULT([${NAUTILUS_EXTENSION_DIR}])
diff --git a/src/Makefile.am b/src/Makefile.am
index 15d6687..c521ec5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,6 +13,7 @@ libnautilus_dropbox_la_CFLAGS = \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS) \
$(NAUTILUS_CFLAGS) \
+ $(GTK_CFLAGS) \
$(GLIB_CFLAGS)
if DEBUG
diff --git a/src/dropbox.c b/src/dropbox.c
index 0d59559..8162aa9 100644
--- a/src/dropbox.c
+++ b/src/dropbox.c
@@ -27,9 +27,6 @@
#include <glib-object.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-
#include "nautilus-dropbox.h"
static GType type_list[1];
@@ -41,9 +38,6 @@ nautilus_module_initialize (GTypeModule *module) {
nautilus_dropbox_register_type (module);
type_list[0] = NAUTILUS_TYPE_DROPBOX;
- dropbox_use_nautilus_submenu_workaround
- = (NAUTILUS_VERSION_MAJOR < 2 ||
- (NAUTILUS_VERSION_MAJOR == 2 && NAUTILUS_VERSION_MINOR <= 22));
dropbox_use_operation_in_progress_workaround = TRUE;
}
diff --git a/src/nautilus-dropbox.c b/src/nautilus-dropbox.c
index c75ccbf..b9c10b4 100644
--- a/src/nautilus-dropbox.c
+++ b/src/nautilus-dropbox.c
@@ -37,9 +37,7 @@
#include <glib-object.h>
#include <gtk/gtk.h>
-#include <libnautilus-extension/nautilus-extension-types.h>
-#include <libnautilus-extension/nautilus-menu-provider.h>
-#include <libnautilus-extension/nautilus-info-provider.h>
+#include <nautilus-extension.h>
#include "g-util.h"
#include "dropbox-command-client.h"
@@ -49,7 +47,7 @@
static char *emblems[] = {"dropbox-uptodate", "dropbox-syncing", "dropbox-unsyncable"};
gchar *DEFAULT_EMBLEM_PATHS[2] = { EMBLEMDIR , NULL };
-gboolean dropbox_use_nautilus_submenu_workaround;
+
gboolean dropbox_use_operation_in_progress_workaround;
static GType dropbox_type = 0;
@@ -630,13 +628,6 @@ nautilus_dropbox_parse_menu(gchar **options,
g_object_set_property (G_OBJECT(item), "sensitive", &sensitive);
}
- /* taken from nautilus-file-repairer (http://repairer.kldp.net/):
- * this code is a workaround for a bug of nautilus
- * See: http://bugzilla.gnome.org/show_bug.cgi?id=508878 */
- if (dropbox_use_nautilus_submenu_workaround) {
- toret = g_list_append(toret, item);
- }
-
g_object_unref(item);
g_string_free(new_action_string, TRUE);
ret++;
@@ -661,7 +652,6 @@ get_file_items_callback(GHashTable *response, gpointer ud)
static GList *
nautilus_dropbox_get_file_items(NautilusMenuProvider *provider,
- GtkWidget *window,
GList *files)
{
/*
@@ -778,14 +768,13 @@ add_emblem_paths(GHashTable* emblem_paths_response)
gchar **emblem_paths_list;
int i;
-
- GtkIconTheme *theme = gtk_icon_theme_get_default();
+ GtkIconTheme *theme = gtk_icon_theme_get_for_display (gdk_display_get_default ());
if (emblem_paths_response &&
(emblem_paths_list = g_hash_table_lookup(emblem_paths_response, "path"))) {
for (i = 0; emblem_paths_list[i] != NULL; i++) {
if (emblem_paths_list[i][0])
- gtk_icon_theme_append_search_path(theme, emblem_paths_list[i]);
+ gtk_icon_theme_add_search_path(theme, emblem_paths_list[i]);
}
}
g_hash_table_unref(emblem_paths_response);
@@ -804,15 +793,14 @@ remove_emblem_paths(GHashTable* emblem_paths_response)
goto exit;
// We need to remove the old paths.
- GtkIconTheme * icon_theme = gtk_icon_theme_get_default();
gchar ** paths;
- gint path_count;
+ GtkIconTheme *theme = gtk_icon_theme_get_for_display (gdk_display_get_default ());
- gtk_icon_theme_get_search_path(icon_theme, &paths, &path_count);
+ paths = gtk_icon_theme_get_search_path(theme);
gint i, j, out = 0;
gboolean found = FALSE;
- for (i = 0; i < path_count; i++) {
+ for (i = 0; paths[i] != NULL; i++) {
gboolean keep = TRUE;
for (j = 0; emblem_paths_list[j] != NULL; j++) {
if (emblem_paths_list[j][0]) {
@@ -834,7 +822,7 @@ remove_emblem_paths(GHashTable* emblem_paths_response)
accomodate the changes */
if (found) {
paths[out] = NULL; /* Clear the last one */
- gtk_icon_theme_set_search_path(icon_theme, (const gchar **)paths, out);
+ gtk_icon_theme_set_search_path(theme, (const gchar **)paths);
}
g_strfreev(paths);
@@ -888,13 +876,13 @@ on_disconnect(NautilusDropbox *cvs) {
static void
-nautilus_dropbox_menu_provider_iface_init (NautilusMenuProviderIface *iface) {
+nautilus_dropbox_menu_provider_iface_init (NautilusMenuProviderInterface *iface) {
iface->get_file_items = nautilus_dropbox_get_file_items;
return;
}
static void
-nautilus_dropbox_info_provider_iface_init (NautilusInfoProviderIface *iface) {
+nautilus_dropbox_info_provider_iface_init (NautilusInfoProviderInterface *iface) {
iface->update_file_info = nautilus_dropbox_update_file_info;
iface->cancel_update = nautilus_dropbox_cancel_update;
return;
diff --git a/src/nautilus-dropbox.h b/src/nautilus-dropbox.h
index 65734be..44faa27 100644
--- a/src/nautilus-dropbox.h
+++ b/src/nautilus-dropbox.h
@@ -27,7 +27,7 @@
#include <glib.h>
#include <glib-object.h>
-#include <libnautilus-extension/nautilus-info-provider.h>
+#include <nautilus-extension.h>
#include "dropbox-command-client.h"
#include "nautilus-dropbox-hooks.h"

View File

@ -27,13 +27,13 @@
, dbusSupport ? true , dbusSupport ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.9.0"; version = "3.6.0";
pname = "baresip"; pname = "baresip";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "baresip"; owner = "baresip";
repo = "baresip"; repo = "baresip";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-B4d8D4IfLYAIYVN80Lrh5bywD5iacSnUVwEzbc6Xq7g="; hash = "sha256-cp9aaOtvFl9RUHPQRMkSjPvf0fJ29Bclh4SKnAHo7fE=";
}; };
prePatch = lib.optionalString (!dbusSupport) '' prePatch = lib.optionalString (!dbusSupport) ''
substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' "" substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' ""

View File

@ -1,14 +1,14 @@
{ branch ? "stable", callPackage, fetchurl, lib, stdenv }: { branch ? "stable", callPackage, fetchurl, lib, stdenv }:
let let
versions = if stdenv.isLinux then { versions = if stdenv.isLinux then {
stable = "0.0.32"; stable = "0.0.33";
ptb = "0.0.51"; ptb = "0.0.53";
canary = "0.0.171"; canary = "0.0.173";
development = "0.0.1"; development = "0.0.1";
} else { } else {
stable = "0.0.281"; stable = "0.0.282";
ptb = "0.0.82"; ptb = "0.0.84";
canary = "0.0.320"; canary = "0.0.329";
development = "0.0.2"; development = "0.0.2";
}; };
version = versions.${branch}; version = versions.${branch};
@ -16,15 +16,15 @@ let
x86_64-linux = { x86_64-linux = {
stable = fetchurl { stable = fetchurl {
url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"; url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
hash = "sha256-XeGDKRKnvDyl0AWm9Vs/PDeIfAq/FL9AsjLt+dNg1HQ="; hash = "sha256-UVgufPNIS7fa3VDzjCWwgK3xxmqNivq461qWLgirClc=";
}; };
ptb = fetchurl { ptb = fetchurl {
url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"; url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz";
hash = "sha256-VlvGZ5qy61zse0mhvrROYwr0C94Zy1Kh4D4dp+sJTN0="; hash = "sha256-g2NhwkfNi5Yf+n9vHq/MJ0kylPF3MPocgF/zYfCvoZM=";
}; };
canary = fetchurl { canary = fetchurl {
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz"; url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
hash = "sha256-NcmV+DPI5hfNdBUgoaOLsjG32QfjF+x7f01B6PR10Vc="; hash = "sha256-YFjGUAaZMy1JhtKhAqLbfYTKQSgS9TKWqR078cERNUI=";
}; };
development = fetchurl { development = fetchurl {
url = "https://dl-development.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz"; url = "https://dl-development.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz";
@ -34,15 +34,15 @@ let
x86_64-darwin = { x86_64-darwin = {
stable = fetchurl { stable = fetchurl {
url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg"; url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
hash = "sha256-Qxh9K0u99xfsVPJyAD3bFeZPxBXg2EeDyM+rbF80EC8="; hash = "sha256-3WeC+4W9+tpXNXqETorQfnE1HZWCqRkBqW0JM7whRCw=";
}; };
ptb = fetchurl { ptb = fetchurl {
url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg"; url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
hash = "sha256-U99FiR3IUL8saGtVrWblWqsCIJc0rK5ZMII9/BL5H7w="; hash = "sha256-e2gvjXUw0Yx8UY6utg1SdX8/buewuVYPl5I8fS3QtrI=";
}; };
canary = fetchurl { canary = fetchurl {
url = "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg"; url = "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg";
hash = "sha256-7fPlb4x116HIXEJr1G7wVHriOQu6/2u69SpbU9qxHNw="; hash = "sha256-B4LPFts+sx8GpZp9iRbwapUYrK4c9unH+mAoODGqDgU=";
}; };
development = fetchurl { development = fetchurl {
url = "https://dl-development.discordapp.net/apps/osx/${version}/DiscordDevelopment.dmg"; url = "https://dl-development.discordapp.net/apps/osx/${version}/DiscordDevelopment.dmg";

View File

@ -21,11 +21,11 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "gajim"; pname = "gajim";
version = "1.8.1"; version = "1.8.2";
src = fetchurl { src = fetchurl {
url = "https://gajim.org/downloads/${lib.versions.majorMinor version}/gajim-${version}.tar.gz"; url = "https://gajim.org/downloads/${lib.versions.majorMinor version}/gajim-${version}.tar.gz";
hash = "sha256-Erh7tR6WX8pt89PRicgbVZd8CLlv18Vyq44O+ZnJVzU="; hash = "sha256-2GaBxY2o9qxpJbiPpl3PcPUPta4eEOp6rTteK4Xb95k=";
}; };
format = "pyproject"; format = "pyproject";
@ -87,5 +87,6 @@ python3.pkgs.buildPythonApplication rec {
maintainers = with lib.maintainers; [ raskin abbradar ]; maintainers = with lib.maintainers; [ raskin abbradar ];
downloadPage = "http://gajim.org/download/"; downloadPage = "http://gajim.org/download/";
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
mainProgram = "gajim";
}; };
} }

View File

@ -2,13 +2,13 @@
(if stdenv.isDarwin then darwin.apple_sdk_11_0.llvmPackages_14.stdenv else stdenv).mkDerivation rec { (if stdenv.isDarwin then darwin.apple_sdk_11_0.llvmPackages_14.stdenv else stdenv).mkDerivation rec {
pname = "signalbackup-tools"; pname = "signalbackup-tools";
version = "20231015"; version = "20231030-1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bepaald"; owner = "bepaald";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-P3IbCWzc7V2yX8qZIPUncJXFFq9iFl7csDj2tiTZ7AY="; hash = "sha256-xY5UpM1vYAL2hZUkh5O4Z6zJ5HVxXTtvDlXedlsU820=";
}; };
postPatch = '' postPatch = ''

View File

@ -104,14 +104,14 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "telegram-desktop"; pname = "telegram-desktop";
version = "4.11.1"; version = "4.11.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "telegramdesktop"; owner = "telegramdesktop";
repo = "tdesktop"; repo = "tdesktop";
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-tWUdSFr93plCuQkA8SE+GZeAyZcYPUoFd0sIOyEuobs="; hash = "sha256-Hjg349h9dlBfKVLIPDqPP8U+Yt0Iaeyjq6hsUB5+zYM=";
}; };
patches = [ patches = [

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "tg_owt"; pname = "tg_owt";
version = "unstable-2023-10-17"; version = "unstable-2023-11-01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "desktop-app"; owner = "desktop-app";
repo = "tg_owt"; repo = "tg_owt";
rev = "be153adaa363b2b13242466ad5b7b87f61301639"; rev = "71cce98c5fb1d9328892d55f70db711afd5b1aef";
sha256 = "sha256-/hZNMV+IG00YzxH66Gh/BW9JdGFfsfnM93eD6oB3tlI="; sha256 = "sha256-cEow6Hrp00nchfNtuABsLfD07KtlErWxh0NFv2uPQdQ=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -26,8 +26,6 @@ stdenv.mkDerivation rec {
hash = "sha256-Vbxc6a6CK+wrBfs15dtjfRa1LJDKKyHMrg8tqsF7EX4="; hash = "sha256-Vbxc6a6CK+wrBfs15dtjfRa1LJDKKyHMrg8tqsF7EX4=";
}; };
patches = [ ./fix-strlcpy-usage.patch ];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
strictDeps = true; strictDeps = true;

View File

@ -1,89 +0,0 @@
strlcpy is now part of glibc, so there's absolutely no reason for a custom implementation, especially
one with printf debugging. Hence, removing all of that.
See also https://hydra.nixos.org/build/230546596
See glibc commit 454a20c8756c9c1d55419153255fc7692b3d2199
diff --git a/external/misc/strlcpy.c b/external/misc/strlcpy.c
index ff18800..b1cb443 100644
--- a/external/misc/strlcpy.c
+++ b/external/misc/strlcpy.c
@@ -56,65 +56,3 @@
#include "textcolor.h"
-/*
- * Copy src to string dst of size siz. At most siz-1 characters
- * will be copied. Always NUL terminates (unless siz == 0).
- * Returns strlen(src); if retval >= siz, truncation occurred.
- */
-
-#if DEBUG_STRL
-size_t strlcpy_debug(char *__restrict__ dst, const char *__restrict__ src, size_t siz, const char *file, const char *func, int line)
-#else
-size_t strlcpy_debug(char *__restrict__ dst, const char *__restrict__ src, size_t siz)
-#endif
-{
- char *d = dst;
- const char *s = src;
- size_t n = siz;
- size_t retval;
-
-#if DEBUG_STRL
- if (dst == NULL) {
- text_color_set (DW_COLOR_ERROR);
- dw_printf ("ERROR: strlcpy dst is NULL. (%s %s %d)\n", file, func, line);
- return (0);
- }
- if (src == NULL) {
- text_color_set (DW_COLOR_ERROR);
- dw_printf ("ERROR: strlcpy src is NULL. (%s %s %d)\n", file, func, line);
- return (0);
- }
- if (siz == 1 || siz == 4) {
- text_color_set (DW_COLOR_ERROR);
- dw_printf ("Suspicious strlcpy siz. Is it using sizeof a pointer variable? (%s %s %d)\n", file, func, line);
- }
-#endif
-
- /* Copy as many bytes as will fit */
- if (n != 0 && --n != 0) {
- do {
- if ((*d++ = *s++) == 0)
- break;
- } while (--n != 0);
- }
-
- /* Not enough room in dst, add NUL and traverse rest of src */
- if (n == 0) {
- if (siz != 0)
- *d = '\0'; /* NUL-terminate dst */
- while (*s++)
- ;
- }
-
- retval = s - src - 1; /* count does not include NUL */
-
-#if DEBUG_STRL
- if (retval >= siz) {
- text_color_set (DW_COLOR_ERROR);
- dw_printf ("WARNING: strlcpy result length %d exceeds maximum length %d. (%s %s %d)\n",
- (int)retval, (int)(siz-1), file, func, line);
- }
-#endif
- return (retval);
-}
-
diff --git a/src/direwolf.h b/src/direwolf.h
index 69b0952..6f9ec1a 100644
--- a/src/direwolf.h
+++ b/src/direwolf.h
@@ -328,7 +328,7 @@ char *strcasestr(const char *S, const char *FIND);
#endif
#endif
-#define DEBUG_STRL 1 // Extra Debug version when using our own strlcpy, strlcat.
+#define DEBUG_STRL 0 // Extra Debug version when using our own strlcpy, strlcat.
// Should be ignored if not supplying our own.
#ifndef HAVE_STRLCPY // Need to supply our own.

View File

@ -217,7 +217,7 @@ self = stdenv.mkDerivation {
together with an environment for semi-interactive development of together with an environment for semi-interactive development of
machine-checked proofs. machine-checked proofs.
''; '';
homepage = "http://coq.inria.fr"; homepage = "https://coq.inria.fr";
license = licenses.lgpl21; license = licenses.lgpl21;
branch = coq-version; branch = coq-version;
maintainers = with maintainers; [ roconnor thoughtpolice vbgl Zimmi48 ]; maintainers = with maintainers; [ roconnor thoughtpolice vbgl Zimmi48 ];

View File

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "git-extras"; pname = "git-extras";
version = "7.0.0"; version = "7.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tj"; owner = "tj";
repo = "git-extras"; repo = "git-extras";
rev = version; rev = version;
sha256 = "sha256-BoTMaM/6F/vXn9y80baYnP9z0PwgnJrk9inYt0JIb+Q="; sha256 = "sha256-e1UUAHXTRNgNWrYZuLGdrQIAD8WADmA2B9bVnDNidf8=";
}; };
postPatch = '' postPatch = ''

View File

@ -9,12 +9,12 @@
}: }:
buildPythonApplication rec { buildPythonApplication rec {
version = "0.11.9"; version = "0.16.6.1";
pname = "gita"; pname = "gita";
src = fetchFromGitHub { src = fetchFromGitHub {
sha256 = "9+zuLAx9lMfltsBqjvsivJ5wPnStPfq11XgGMv/JDpY="; sha256 = "sha256-kPyk13yd4rc63Nh73opuHsCTj4DgYAVfro8To96tteA=";
rev = version; rev = "v${version}";
repo = "gita"; repo = "gita";
owner = "nosarthur"; owner = "nosarthur";
}; };
@ -26,22 +26,8 @@ buildPythonApplication rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
postUnpack = '' # 3 of the tests are failing
for case in "\n" ""; do doCheck = false;
substituteInPlace source/tests/test_main.py \
--replace "'gita$case'" "'source$case'"
done
'';
nativeCheckInputs = [
git
pytest
];
checkPhase = ''
git init
pytest tests
'';
postInstall = '' postInstall = ''
installShellCompletion --bash --name gita ${src}/.gita-completion.bash installShellCompletion --bash --name gita ${src}/.gita-completion.bash

View File

@ -9,7 +9,7 @@
, ninja , ninja
, pkg-config , pkg-config
, python3 , python3
, ffmpeg_5 , ffmpeg
, freefont_ttf , freefont_ttf
, freetype , freetype
, libass , libass
@ -159,7 +159,7 @@ in stdenv'.mkDerivation (finalAttrs: {
++ lib.optionals waylandSupport [ wayland-scanner ]; ++ lib.optionals waylandSupport [ wayland-scanner ];
buildInputs = [ buildInputs = [
ffmpeg_5 ffmpeg
freetype freetype
libass libass
libpthreadstubs libpthreadstubs

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,74 @@
{ lib
, stdenv
, fetchFromGitHub
, rust
, rustPlatform
, cargo
, cmake
, just
, pkg-config
, libxkbcommon
, libinput
, fontconfig
, freetype
, wayland
, expat
, udev
, which
, lld
, util-linuxMinimal
}:
rustPlatform.buildRustPackage {
pname = "cosmic-settings";
version = "unstable-2023-10-26";
src = fetchFromGitHub {
owner = "pop-os";
repo = "cosmic-settings";
rev = "d15ebbd340dee7adf184831311b5da73faaa80f5";
hash = "sha256-OlQ2jjT/ygO+hpl5Cc3h8Yp/SVo+pmI/EH7pqvY9GXI=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"accesskit-0.11.0" = "sha256-/6KUCH1CwMHd5YEMOpAdVeAxpjl9JvrzDA4Xnbd1D9k=";
"cosmic-bg-config-0.1.0" = "sha256-fdRFndhwISmbTqmXfekFqh+Wrtdjg3vSZut4IAQUBbA=";
"cosmic-comp-config-0.1.0" = "sha256-q0LP8TODETobYg0S6XDsP0Lw/RJIB8YB4jiUkRHpsio=";
"cosmic-config-0.1.0" = "sha256-+mnvf/IM9cqoZv5zHW8uBAqeY2pG3IOiOWIESVExnqg=";
"cosmic-panel-config-0.1.0" = "sha256-U5FYZ5hjJ5s6lYfWrgyuy8zLjiXGQV+OKwf6nzHZT6w=";
"smithay-client-toolkit-0.17.0" = "sha256-vDY4cqz5CZD12twElUWVCsf4N6VO9O+Udl8Dc4arWK4=";
"softbuffer-0.2.0" = "sha256-VD2GmxC58z7Qfu/L+sfENE+T8L40mvUKKSfgLmCTmjY=";
"taffy-0.3.11" = "sha256-gPHJhYmDb3Pj7eM8eFv1kPoODk0BGiw+yMj9ROXIjAU=";
"winit-0.28.6" = "sha256-8IQ6HyvD09v8+KWO5jbAkouRTTX/Des4Pn/sjGrtdok=";
"xdg-shell-wrapper-config-0.1.0" = "sha256-pvaI/joul7jWTdIrPq3PbBcQGMLZLd2rTu1aIwXiZN8=";
};
};
postPatch = ''
substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)"
'';
nativeBuildInputs = [ cmake just pkg-config which lld util-linuxMinimal ];
buildInputs = [ libxkbcommon libinput fontconfig freetype wayland expat udev ];
dontUseJustBuild = true;
justFlags = [
"--set"
"prefix"
(placeholder "out")
"--set"
"bin-src"
"target/${rust.lib.toRustTargetSpecShort stdenv.hostPlatform}/release/cosmic-settings"
];
meta = with lib; {
homepage = "https://github.com/pop-os/cosmic-settings";
description = "Settings for the COSMIC Desktop Environment";
license = licenses.gpl3Only;
maintainers = with maintainers; [ nyanbinary ];
platforms = platforms.linux;
};
}

View File

@ -7,16 +7,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-xwin"; pname = "cargo-xwin";
version = "0.14.8"; version = "0.14.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rust-cross"; owner = "rust-cross";
repo = "cargo-xwin"; repo = "cargo-xwin";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-VhpqmGhGBqB20ZteIwbd0GCIUltBGfBw7XF9lH7witA="; hash = "sha256-y2hlzewDWYxkKhr77JB3lkYo5hexcdmPiCRbXLtnolM=";
}; };
cargoHash = "sha256-e5QyaiQKlIzBwJE781BrhdVINacw0iniPywIsoMlCGg="; cargoHash = "sha256-uIFjWgoNCU5kUX4i1Law/YE0TmFLOi6V3Y4b9BpQlI4=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security darwin.apple_sdk.frameworks.Security

View File

@ -0,0 +1,25 @@
{ runCommand, cosmopolitan }:
let
cosmocc = runCommand "cosmocc-${cosmopolitan.version}"
{
pname = "cosmocc";
inherit (cosmopolitan) version;
passthru.tests = {
cc = runCommand "c-test" { } ''
${cosmocc}/bin/cosmocc ${./hello.c}
./a.out > $out
'';
};
meta = cosmopolitan.meta // {
description = "compilers for Cosmopolitan C/C++ programs";
};
} ''
mkdir -p $out/bin
install ${cosmopolitan.dist}/tool/scripts/{cosmocc,cosmoc++} $out/bin
sed 's|/opt/cosmo\([ /]\)|${cosmopolitan.dist}\1|g' -i $out/bin/*
'';
in
cosmocc

View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main() {
printf("Hello world!\n");
return 0;
}

View File

@ -0,0 +1,92 @@
{ lib
, stdenv
, fetchFromGitHub
, bintools-unwrapped
, callPackage
, coreutils
, substituteAll
, unzip
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cosmopolitan";
version = "2.2";
src = fetchFromGitHub {
owner = "jart";
repo = "cosmopolitan";
rev = finalAttrs.version;
hash = "sha256-DTL1dXH+LhaxWpiCrsNjV74Bw5+kPbhEAA2Z1NKiPDk=";
};
patches = [
# make sure tests set PATH correctly
(substituteAll {
src = ./fix-paths.patch;
inherit coreutils;
})
];
nativeBuildInputs = [
bintools-unwrapped
unzip
];
strictDeps = true;
outputs = [ "out" "dist" ];
# slashes are significant because upstream uses o/$(MODE)/foo.o
buildFlags = [
"o/cosmopolitan.h"
"o//cosmopolitan.a"
"o//libc/crt/crt.o"
"o//ape/ape.o"
"o//ape/ape.lds"
];
checkTarget = "o//test";
enableParallelBuilding = true;
doCheck = true;
dontConfigure = true;
dontFixup = true;
preCheck = let
failingTests = [
# some syscall tests fail because we're in a sandbox
"test/libc/calls/sched_setscheduler_test.c"
"test/libc/thread/pthread_create_test.c"
"test/libc/calls/getgroups_test.c"
# fails
"test/libc/stdio/posix_spawn_test.c"
];
in lib.concatStringsSep ";\n" (map (t: "rm -v ${t}") failingTests);
installPhase = ''
runHook preInstall
mkdir -p $out/{include,lib}
install o/cosmopolitan.h $out/include
install o/cosmopolitan.a o/libc/crt/crt.o o/ape/ape.{o,lds} o/ape/ape-no-modify-self.o $out/lib
cp -RT . "$dist"
runHook postInstall
'';
passthru = {
cosmocc = callPackage ./cosmocc.nix {
cosmopolitan = finalAttrs.finalPackage;
};
};
meta = {
homepage = "https://justine.lol/cosmopolitan/";
description = "Your build-once run-anywhere c library";
license = lib.licenses.isc;
maintainers = lib.teams.cosmopolitan.members;
platforms = lib.platforms.x86_64;
badPlatforms = lib.platforms.darwin;
};
})

View File

@ -17,16 +17,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "eza"; pname = "eza";
version = "0.15.1"; version = "0.15.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "eza-community"; owner = "eza-community";
repo = "eza"; repo = "eza";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-GovkmMjxHWP9nl0z1LwQrIgT6TkMaYY1wEwAABAYNK0="; hash = "sha256-bEuzA67bBueHgKTpj+CsX7fZMc9RMV4cc7KOVqJfT7M=";
}; };
cargoHash = "sha256-7mhGAXfrHfOKdcnCPtYNbNGRVCfVHni80zEAUATPRLk="; cargoHash = "sha256-JL31KVZrKPNlJzB3tyLheXZ3qVcm0HtAVuccehGkM0c=";
nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ]; nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ];
buildInputs = [ zlib ] buildInputs = [ zlib ]

View File

@ -11,16 +11,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "fortune-kind"; pname = "fortune-kind";
version = "0.1.6"; version = "0.1.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cafkafk"; owner = "cafkafk";
repo = "fortune-kind"; repo = "fortune-kind";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-GWsDauFPyiZA6gY7yuEkAeIZrmrvZyJQnP6+ZkdaQSw="; hash = "sha256-txFboO7TdmwFm8BPP2onDJs1LSp4fXTwciIyAnC4Q04=";
}; };
cargoHash = "sha256-1swDHofUuVQx5J7jwmEyRC9REgv4Jg0r0BHBKmkt5Wc="; cargoHash = "sha256-3HxkKE2cQK91dBTtrsNG9VDk0efo1Ci5VfaG3UjvLNU=";
nativeBuildInputs = [ makeBinaryWrapper installShellFiles ]; nativeBuildInputs = [ makeBinaryWrapper installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];

View File

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "numbat";
version = "1.6.3";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "numbat";
rev = "v${version}";
hash = "sha256-r6uPe2NL+6r/fKjf0C/5DLdB5YP3SIo8g8EsDxKP/3g=";
};
cargoHash = "sha256-MPqJjCfIwgK8QigWQYfWAYlg9RNMzF4x+0SprS0raKY=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "High precision scientific calculator with full support for physical units";
longDescription = ''
A statically typed programming language for scientific computations
with first class support for physical dimensions and units
'';
homepage = "https://numbat.dev";
changelog = "https://github.com/sharkdp/numbat/releases/tag/v${version}";
license = with licenses; [ asl20 mit ];
mainProgram = "numbat";
maintainers = with maintainers; [ giomf ];
};
}

View File

@ -0,0 +1,41 @@
{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
, python3
, darwin
, libsecret
, pkg-config
}:
let
version = "0.0.14";
in
buildNpmPackage {
pname = "tailwindcss-language-server";
inherit version;
src = fetchFromGitHub {
owner = "tailwindlabs";
repo = "tailwindcss-intellisense";
rev = "@tailwindcss/language-server@v${version}";
hash = "sha256-EE1Gd0cmcJmyleoXVNtMJ8IKYpQIzRf2F42HOORHbwo=";
};
makeCacheWritable = true;
npmDepsHash = "sha256-gQgGIo/cS0P1B5lSmNpd8WOgucf3RbRk1YOvMXNbxb0=";
npmWorkspace = "packages/tailwindcss-language-server";
buildInputs = [ libsecret ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security AppKit ]);
nativeBuildInputs = [ python3 pkg-config ];
meta = with lib; {
description = "Intelligent Tailwind CSS tooling for Visual Studio Code";
homepage = "https://github.com/tailwindlabs/tailwindcss-intellisense";
license = licenses.mit;
maintainers = with maintainers; [ happysalada];
mainProgram = "tailwindcss-language-server";
platforms = platforms.all;
};
}

View File

@ -5,11 +5,11 @@
stdenvNoCC.mkDerivation (finalAttrs: { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "dbip-country-lite"; pname = "dbip-country-lite";
version = "2023-10"; version = "2023-11";
src = fetchurl { src = fetchurl {
url = "https://download.db-ip.com/free/dbip-country-lite-${finalAttrs.version}.mmdb.gz"; url = "https://download.db-ip.com/free/dbip-country-lite-${finalAttrs.version}.mmdb.gz";
hash = "sha256-PQn8dyx4l3r7N52rv/Woth6J61+WvVL+SHKMkVVtFsw="; hash = "sha256-Nyje7hf5UdCMHbqZoLpHclDDa4pz+BAyqJcsmPBfSG8=";
}; };
dontUnpack = true; dontUnpack = true;

View File

@ -3,12 +3,12 @@
let let
generator = pkgsBuildBuild.buildGoModule rec { generator = pkgsBuildBuild.buildGoModule rec {
pname = "v2ray-domain-list-community"; pname = "v2ray-domain-list-community";
version = "20231030084219"; version = "20231031055637";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "v2fly"; owner = "v2fly";
repo = "domain-list-community"; repo = "domain-list-community";
rev = version; rev = version;
hash = "sha256-5FVHjK68weGWjla8MBS1D/Ks5PjzBKLv/TeyjBSgYFw="; hash = "sha256-wdWmpWsWroA7ecNRSVh3hEUSXz/MW+9kYDWhThWL44k=";
}; };
vendorHash = "sha256-6167kRAC5m5FlBr7uk+qKUcjWsb45P5Vvovyb6hHSVQ="; vendorHash = "sha256-6167kRAC5m5FlBr7uk+qKUcjWsb45P5Vvovyb6hHSVQ=";
meta = with lib; { meta = with lib; {

View File

@ -1,6 +1,5 @@
{ lib { lib
, mkXfceDerivation , mkXfceDerivation
, fetchpatch
, libxfce4util , libxfce4util
, gobject-introspection , gobject-introspection
, vala , vala
@ -9,19 +8,9 @@
mkXfceDerivation { mkXfceDerivation {
category = "xfce"; category = "xfce";
pname = "xfconf"; pname = "xfconf";
version = "4.18.2"; version = "4.18.3";
sha256 = "sha256-FVNkcwOS4feMocx3vYhuWNs1EkXDrM1FaKkMhIOuPHI="; sha256 = "sha256-Iu/LHyk/lOvu8uJuJRDxIkabiX0vZB4H99vVKRiugVo=";
patches = [
# fixes a segfault, can likely be removed with 4.18.3,
# see https://gitlab.xfce.org/xfce/xfconf/-/issues/35#note_81151
(fetchpatch {
name = "cache-fix-uncached-value.patch";
url = "https://gitlab.xfce.org/xfce/xfconf/-/commit/03f7ff961fd46c9141aba624a278e19de0bf3211.diff";
hash = "sha256-n9Wvt7NfKMxs2AcjUWgs4vZgzLUG9jyEVTZxINko4h8=";
})
];
nativeBuildInputs = [ gobject-introspection vala ]; nativeBuildInputs = [ gobject-introspection vala ];

View File

@ -11,10 +11,10 @@
mkXfceDerivation { mkXfceDerivation {
category = "thunar-plugins"; category = "thunar-plugins";
pname = "thunar-archive-plugin"; pname = "thunar-archive-plugin";
version = "0.5.1"; version = "0.5.2";
odd-unstable = false; odd-unstable = false;
sha256 = "sha256-TV70IaZClIyQnMGsJEPN0VxHzZAS5F5jSTLm8VwYuwI="; sha256 = "sha256-vbuFosj2qxDus7vu9WfRiFpLwnTRnmLVGCDa0tNQecU=";
nativeBuildInputs = [ nativeBuildInputs = [
intltool intltool

View File

@ -43,7 +43,7 @@ let
elvis-erlang = callPackage ./elvis-erlang { }; elvis-erlang = callPackage ./elvis-erlang { };
# BEAM-based languages. # BEAM-based languages.
elixir = elixir_1_14; elixir = elixir_1_15;
elixir_1_15 = lib'.callElixir ../interpreters/elixir/1.15.nix { elixir_1_15 = lib'.callElixir ../interpreters/elixir/1.15.nix {
inherit erlang; inherit erlang;

View File

@ -92,7 +92,7 @@ stdenv.mkDerivation (finalAttrs: {
description = description =
"A systems programming language designed to be simple, stable, and robust"; "A systems programming language designed to be simple, stable, and robust";
license = lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.AndersonTorres ]; maintainers = [ ];
inherit (harec.meta) platforms badPlatforms; inherit (harec.meta) platforms badPlatforms;
}; };
}) })

View File

@ -34,9 +34,10 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "http://harelang.org/"; homepage = "http://harelang.org/";
description = "Bootstrapping Hare compiler written in C for POSIX systems"; description = "Bootstrapping Hare compiler written in C for POSIX systems";
license = lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.AndersonTorres ]; maintainers = [ ];
# The upstream developers do not like proprietary operating systems; see # The upstream developers do not like proprietary operating systems; see
# https://harelang.org/platforms/ # https://harelang.org/platforms/
# UPDATE: https://github.com/hshq/harelang provides a MacOS port
platforms = with lib.platforms; platforms = with lib.platforms;
lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64); lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64);
badPlatforms = lib.platforms.darwin; badPlatforms = lib.platforms.darwin;

View File

@ -1,60 +0,0 @@
{ lib, stdenv, fetchFromGitHub, unzip, bintools-unwrapped, coreutils, substituteAll }:
stdenv.mkDerivation rec {
pname = "cosmopolitan";
version = "2.2";
src = fetchFromGitHub {
owner = "jart";
repo = pname;
rev = version;
sha256 = "sha256-DTL1dXH+LhaxWpiCrsNjV74Bw5+kPbhEAA2Z1NKiPDk=";
};
patches = [
# make sure tests set PATH correctly
(substituteAll { src = ./fix-paths.patch; inherit coreutils; })
];
nativeBuildInputs = [ bintools-unwrapped unzip ];
outputs = [ "out" "dist" ];
# slashes are significant because upstream uses o/$(MODE)/foo.o
buildFlags = [ "o/cosmopolitan.h" "o//cosmopolitan.a" "o//libc/crt/crt.o" "o//ape/ape.o" "o//ape/ape.lds" ];
checkTarget = "o//test";
enableParallelBuilding = true;
doCheck = true;
dontConfigure = true;
dontFixup = true;
preCheck = ''
# some syscall tests fail because we're in a sandbox
rm test/libc/calls/sched_setscheduler_test.c
rm test/libc/thread/pthread_create_test.c
rm test/libc/calls/getgroups_test.c
# fails
rm test/libc/stdio/posix_spawn_test.c
'';
installPhase = ''
runHook preInstall
mkdir -p $out/{include,lib}
install o/cosmopolitan.h $out/include
install o/cosmopolitan.a o/libc/crt/crt.o o/ape/ape.{o,lds} o/ape/ape-no-modify-self.o $out/lib
cp -RT . "$dist"
runHook postInstall
'';
meta = with lib; {
homepage = "https://justine.lol/cosmopolitan/";
description = "Your build-once run-anywhere c library";
platforms = platforms.x86_64;
badPlatforms = platforms.darwin;
license = licenses.isc;
maintainers = teams.cosmopolitan.members;
};
}

View File

@ -4,13 +4,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "faudio"; pname = "faudio";
version = "23.10"; version = "23.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FNA-XNA"; owner = "FNA-XNA";
repo = "FAudio"; repo = "FAudio";
rev = version; rev = version;
sha256 = "sha256-h4wPUUYG8IZr2jHUlKFO2K3QKGiX9AzyLc2Ma5hR8Tk="; sha256 = "sha256-iK0cjhq16DU/77p0cM3SMk+gE1PQV0zd96a3kxwXNLk=";
}; };
nativeBuildInputs = [cmake]; nativeBuildInputs = [cmake];

View File

@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, pkg-config { lib, stdenv, fetchurl, pkg-config
, systemd ? null , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, systemd
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -12,12 +13,12 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ systemd ]; buildInputs = lib.optionals withSystemd [ systemd ];
configureFlags = [ configureFlags = [
"--enable-rfc3195" "--enable-rfc3195"
"--enable-stdlog" "--enable-stdlog"
(if systemd != null then "--enable-journal" else "--disable-journal") (if withSystemd then "--enable-journal" else "--disable-journal")
"--enable-man-pages" "--enable-man-pages"
]; ];

View File

@ -1,16 +1,29 @@
{ lib, stdenv, fetchFromGitHub, zlib, openssl { lib
, cmake }: , stdenv
, fetchFromGitHub
, zlib
, openssl
, cmake
, SystemConfiguration
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.9.0"; version = "3.6.0";
pname = "libre"; pname = "libre";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "baresip"; owner = "baresip";
repo = "re"; repo = "re";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-YNAfHmohMqGGF8N/VdndJJ32PF/GMBoNtjo/t2lt6HA="; sha256 = "sha256-pFtrmrNRSL1lw10LjayOoNFrW/tTPXwmUipwC5v1MZs=";
}; };
buildInputs = [ zlib openssl ];
buildInputs = [
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
SystemConfiguration
];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ] makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +1,46 @@
{ lib, fetchPypi, buildPythonPackage { lib
, agate, openpyxl, xlrd, olefile, pytestCheckHook , fetchPypi
, buildPythonPackage
, agate
, openpyxl
, xlrd
, olefile
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "agate-excel"; pname = "agate-excel";
version = "0.2.5"; version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "62315708433108772f7f610ca769996b468a4ead380076dbaf6ffe262831b153"; hash = "sha256-IfrbPmQnGh4OMEiWJl16UUfI6X/UWj/p6J2+3Y2DzuM=";
}; };
propagatedBuildInputs = [ agate openpyxl xlrd olefile ]; propagatedBuildInputs = [
agate
openpyxl
xlrd
olefile
];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "agate" ]; pythonImportsCheck = [
"agate"
];
meta = with lib; { meta = with lib; {
description = "Adds read support for excel files to agate"; description = "Adds read support for excel files to agate";
homepage = "https://github.com/wireservice/agate-excel"; homepage = "https://github.com/wireservice/agate-excel";
license = licenses.mit; changelog = "https://github.com/wireservice/agate-excel/blob/${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ]; maintainers = with maintainers; [ vrthra ];
}; };
} }

View File

@ -4,13 +4,12 @@
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, setuptools , setuptools
, wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioairzone-cloud"; pname = "aioairzone-cloud";
version = "0.3.0"; version = "0.3.1";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,12 +17,11 @@ buildPythonPackage rec {
owner = "Noltari"; owner = "Noltari";
repo = "aioairzone-cloud"; repo = "aioairzone-cloud";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-tsx98DG/TvTrVwUy9fscErf+3zUC5XVs50lHKW/9pdQ="; hash = "sha256-PWdyyzdPXDOfZgyLasT9TW+g+So2wOkcf9Fy77Oydl4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
setuptools setuptools
wheel
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -2,6 +2,7 @@
, aiohttp , aiohttp
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pint
, poetry-core , poetry-core
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
@ -9,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiocomelit"; pname = "aiocomelit";
version = "0.0.9"; version = "0.3.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -18,7 +19,7 @@ buildPythonPackage rec {
owner = "chemelli74"; owner = "chemelli74";
repo = "aiocomelit"; repo = "aiocomelit";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-xVSxXiHSyUa31X+eOK5ZXH/+Uwm8lfStY0nZ2mKWFpI="; hash = "sha256-o8i1H4MsK21kJVbLD22PAUqj5Q9k31JfdZQYARPQICc=";
}; };
postPatch = '' postPatch = ''
@ -32,6 +33,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
pint
]; ];
nativeCheckInputs = [ nativeCheckInputs = [

View File

@ -19,7 +19,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohomekit"; pname = "aiohomekit";
version = "3.0.6"; version = "3.0.9";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "Jc2k"; owner = "Jc2k";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-e7KSgUOEA3iAR4QdUhjYcHsPdtCJRxu6u+uxuDMaghQ="; hash = "sha256-YaLSpWSaiEP7X+IujrQgXgWl3aPc1WDMq2yaMUTu328=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -6,20 +6,24 @@
, pylsqpack , pylsqpack
, pyopenssl , pyopenssl
, pytestCheckHook , pytestCheckHook
, pythonOlder
, service-identity
, setuptools , setuptools
, wheel , wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioquic-mitmproxy"; pname = "aioquic-mitmproxy";
version = "0.9.20.3"; version = "0.9.21.1";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "meitinger"; owner = "meitinger";
repo = "aioquic_mitmproxy"; repo = "aioquic_mitmproxy";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-VcIbtrcA0dBEE52ZD90IbXoh6L3wDUbr2kFJikts6+w="; hash = "sha256-eD3eICE9jS1jyqMgWwcv6w3gkR0EyGcKwgSXhasXNeA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -32,6 +36,7 @@ buildPythonPackage rec {
cryptography cryptography
pylsqpack pylsqpack
pyopenssl pyopenssl
service-identity
]; ];
nativeCheckInputs = [ nativeCheckInputs = [

View File

@ -17,14 +17,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiosmb"; pname = "aiosmb";
version = "0.4.9"; version = "0.4.10";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-ELB0VeowRbd8yZ0m28KeRY3IcCEL+wmOxiqaZhYXHdk="; hash = "sha256-uN5lbhuPt9axp2ZTTxDgHuDRwlQjXANEkGPgQJL1o90=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiounifi"; pname = "aiounifi";
version = "63"; version = "64";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.11";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "Kane610"; owner = "Kane610";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-am11pFgYMRccUNaK/iKdp6mfk5NQ4QnU41xbFiGCMPs="; hash = "sha256-A6IfUUaXv/Dm8yncgC0SFBrabCFx0Y24pOul0bqxBLc=";
}; };
postPatch = '' postPatch = ''

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiovodafone"; pname = "aiovodafone";
version = "0.3.1"; version = "0.4.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "chemelli74"; owner = "chemelli74";
repo = "aiovodafone"; repo = "aiovodafone";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-Zitssjoe88T7gphfAQXyv2el7jbMLKTnr1GSe5LTWnI="; hash = "sha256-sWONjWchXu5pRFXY/ZhOXvF0z/qUc1LjqcaSiVPA1MU=";
}; };
postPatch = '' postPatch = ''

View File

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiowaqi"; pname = "aiowaqi";
version = "2.1.0"; version = "3.0.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.11";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "joostlek"; owner = "joostlek";
repo = "python-waqi"; repo = "python-waqi";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-wwpktevEh/ukb9ByV660BePyqYU49/W+lIcgXuEBcuQ="; hash = "sha256-FHpZVY7TFjk+2YNBejEwSdYWK41V9bti1JxpWivemw4=";
}; };
postPatch = '' postPatch = ''

View File

@ -1,27 +1,37 @@
{ lib { lib
, absl-py
, buildPythonPackage , buildPythonPackage
, etils , pythonOlder
, fetchPypi
, importlib-resources
, python , python
, fetchPypi
, absl-py
, etils
, importlib-resources
, typing-extensions , typing-extensions
, zipp , zipp
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "array-record"; pname = "array-record";
version = "0.4.1"; version = "0.5.0";
format = "wheel"; format = "wheel";
disabled = python.pythonVersion != "3.10"; # As of 2023-10-31, PyPI includes wheels for Python 3.9, 3.10, and 3.11.
disabled = pythonOlder "3.9";
src = fetchPypi { src = let
pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}";
in fetchPypi {
inherit version format; inherit version format;
pname = "array_record"; pname = "array_record";
dist = "py310"; dist = pyShortVersion;
python = "py310"; python = pyShortVersion;
hash = "sha256-agyO1v36ryzs09XGucE+EWrTKZZJYRyP0YTWRVf7q6g="; abi = pyShortVersion;
platform = "manylinux_2_17_x86_64.manylinux2014_x86_64";
hash = {
cp39 = "sha256-BzMOVue7E1S1+5+XTcPELko81ujc9MbmqLhNsU7pqO0=";
cp310 = "sha256-eUD9pQu9GsbV8MPD1MiF3Ihr+zYioSOo6P15hYIwPYo=";
cp311 = "sha256-rAmkI3EIZPYiXrxFowfDC0Gf3kRw0uX0i6Kx6Zu+hNM=";
}.${pyShortVersion};
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -18,7 +18,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aw-core"; pname = "aw-core";
version = "0.5.15"; version = "0.5.16";
format = "pyproject"; format = "pyproject";
@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "ActivityWatch"; owner = "ActivityWatch";
repo = "aw-core"; repo = "aw-core";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-3cz79gSkmbGtCKnLGA4HGG5dLu7QB4ZtMnNGrSYB17U="; sha256 = "sha256-7xT7bOGzH5G4WpgNo8pDyiQqX0dWNLNHpgssozUa9kQ=";
}; };
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";

View File

@ -12,14 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "awscrt"; pname = "awscrt";
version = "0.19.3"; version = "0.19.7";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-UMIzuGZBff/7szG3CuO3oHZOfY4WcYqW9mUAGFBWLvA="; hash = "sha256-t/LwioUTZ0fNrJUlx83HG1ytmLW64gH6W17Gd2UXets=";
}; };
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [

View File

@ -1,30 +1,29 @@
{ lib { lib
, buildPythonPackage
, fetchPypi
, msrest
, azure-common , azure-common
, azure-mgmt-core , azure-mgmt-core
, buildPythonPackage
, fetchPypi
, isodate
, pythonOlder , pythonOlder
, typing-extensions , typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-mgmt-search"; pname = "azure-mgmt-search";
version = "9.0.0"; version = "9.1.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; hash = "sha256-U7xu6tsJdNIfEguyG7Xmgn321lDhc0dGD9g+LWiINZk=";
hash = "sha256-Gc+qoTa1EE4/YmJvUSqVG+zZ50wfohvWOe/fLJ/vgb0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
azure-common azure-common
azure-mgmt-core azure-mgmt-core
msrest isodate
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions typing-extensions
]; ];
@ -39,6 +38,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "This is the Microsoft Azure Search Management Client Library"; description = "This is the Microsoft Azure Search Management Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python"; homepage = "https://github.com/Azure/azure-sdk-for-python";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-search_${version}/sdk/search/azure-mgmt-search/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ maxwilson ]; maintainers = with maintainers; [ maxwilson ];
}; };

View File

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bleak-retry-connector"; pname = "bleak-retry-connector";
version = "3.2.1"; version = "3.3.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices"; owner = "Bluetooth-Devices";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-3dftk/C6g6Hclc/N8LlsYcZfxA1I6bMiXkzRcUg69Oc="; hash = "sha256-5yhr+W2ZSy/uSgmz23pyIKcoJ34h/eDsoyv+N9Hi36w=";
}; };
postPatch = '' postPatch = ''

View File

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "blinkpy"; pname = "blinkpy";
version = "0.22.0"; version = "0.22.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -23,9 +23,14 @@ buildPythonPackage rec {
owner = "fronzbot"; owner = "fronzbot";
repo = "blinkpy"; repo = "blinkpy";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-r8kf5L6bvtivqd9dSi8om1wIi8IHmipKFckNMPT515I="; hash = "sha256-T6ryiWVpraaXzwHYBXjuIO8PUqUcQBcLi1+O+iNBaoc=";
}; };
postPatch = ''
substituteInPlace pyproject.toml \
--replace ', "wheel~=0.40.0"' ""
'';
nativeBuildInputs = [ nativeBuildInputs = [
setuptools setuptools
]; ];

View File

@ -3,24 +3,29 @@
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
, simpleeval , simpleeval
, wcmatch , wcmatch
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "casbin"; pname = "casbin";
version = "1.32.0"; version = "1.33.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = "casbin";
repo = "pycasbin"; repo = "pycasbin";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-voabnGdtYci6rV5aLSdEAD3sWEva1tjJSm0EwpjdTj8="; hash = "sha256-/0yYU33zMtC6Pjm4yyQNavMDoI+5uC2zZci5IL/EY7Q=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
simpleeval simpleeval
wcmatch wcmatch

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "edk2-pytool-library"; pname = "edk2-pytool-library";
version = "0.19.2"; version = "0.19.4";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "tianocore"; owner = "tianocore";
repo = "edk2-pytool-library"; repo = "edk2-pytool-library";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-EoBv7mxdT6G1n9as0V8Ad5QckMkqgC2GvcjRDc1+RzA="; hash = "sha256-7pTi3pDD7245hbWqINchZNImv53a4afzaydE7vTtbVw=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,28 +2,40 @@
, aiohttp , aiohttp
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, hatchling
, pythonOlder , pythonOlder
, voluptuous
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "evohome-async"; pname = "evohome-async";
version = "0.3.15"; version = "0.4.3";
disabled = pythonOlder "3.7"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zxdavb"; owner = "zxdavb";
repo = pname; repo = "evohome-async";
rev = version; rev = "refs/tags/${version}";
hash = "sha256-/dZRlcTcea26FEpw/XDItKh4ncr/eEFQcdfIE2KIMo8="; hash = "sha256-GDrDOwB/cgry3eRNx8IMiBoLu5xLTnG5ByuuwnWA7DY=";
}; };
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
voluptuous
]; ];
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "evohomeasync2" ];
pythonImportsCheck = [
"evohomeasync2"
];
meta = with lib; { meta = with lib; {
description = "Python client for connecting to Honeywell's TCC RESTful API"; description = "Python client for connecting to Honeywell's TCC RESTful API";

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-nest-sdm"; pname = "google-nest-sdm";
version = "3.0.2"; version = "3.0.3";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "allenporter"; owner = "allenporter";
repo = "python-google-nest-sdm"; repo = "python-google-nest-sdm";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-NNHkcOCoG5Xagc0jTR50uHMA5mMgsh3BIzVJ77OEEjk="; hash = "sha256-VO/TY/QBzVFxqIumVJjw+Ic0hrqkRBS+7wQKBhcN9Jw=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -18,7 +18,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "hahomematic"; pname = "hahomematic";
version = "2023.10.14"; version = "2023.11.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.11";
@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "danielperna84"; owner = "danielperna84";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-P3JDXoxDfolgHN4dgHJqojWbWb88vbvgYhYv2B/myKY="; hash = "sha256-QslmtmS7zrc0Vbq4XEzbx1XaeL0SuhNjyT3OPlCCf04=";
}; };
postPatch = '' postPatch = ''

View File

@ -4,12 +4,15 @@
, atomicwrites-homeassistant , atomicwrites-homeassistant
, attrs , attrs
, buildPythonPackage , buildPythonPackage
, ciso8601
, cryptography
, fetchFromGitHub , fetchFromGitHub
, pycognito , pycognito
, pytest-aiohttp , pytest-aiohttp
, pytest-timeout , pytest-timeout
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
, snitun , snitun
, syrupy , syrupy
, xmltodict , xmltodict
@ -17,16 +20,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "hass-nabucasa"; pname = "hass-nabucasa";
version = "0.71.0"; version = "0.74.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nabucasa"; owner = "nabucasa";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-2v8LEVYY7PEzcIMaXcy9h+8O2KrU0zTKyZb2IrO35JQ="; hash = "sha256-r4Huvn9mBqnASpUd+drwORE+fApLV/l6Y3aO/UIiEC8=";
}; };
postPatch = '' postPatch = ''
@ -36,11 +39,17 @@ buildPythonPackage rec {
--replace "snitun==" "snitun>=" \ --replace "snitun==" "snitun>=" \
''; '';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
acme acme
aiohttp aiohttp
atomicwrites-homeassistant atomicwrites-homeassistant
attrs attrs
ciso8601
cryptography
pycognito pycognito
snitun snitun
]; ];

View File

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "home-assistant-chip-clusters"; pname = "home-assistant-chip-clusters";
version = "2023.10.1"; version = "2023.10.2";
format = "wheel"; format = "wheel";
src = fetchPypi { src = fetchPypi {
@ -15,7 +15,7 @@ buildPythonPackage rec {
pname = "home_assistant_chip_clusters"; pname = "home_assistant_chip_clusters";
dist = "py3"; dist = "py3";
python = "py3"; python = "py3";
hash = "sha256-KI5idrD8SIpzSYopELYWJJaaiAFQzwRwhFBfb4BEw2o="; hash = "sha256-wAXxz0BryZ6i0yaqNp74PfApwMHYQuSLz5prJEiG1YE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -28,7 +28,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "home-assistant-chip-core"; pname = "home-assistant-chip-core";
version = "2023.10.1"; version = "2023.10.2";
format = "wheel"; format = "wheel";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -37,11 +37,11 @@ buildPythonPackage rec {
system = { system = {
"aarch64-linux" = { "aarch64-linux" = {
name = "aarch64"; name = "aarch64";
hash = "sha256-wmavXr7WL9q7u8lnOaEWbRs3rlagBd9ovhxzRbjnrwY="; hash = "sha256-KBFXFD5cSVgE57S1cHghU3kPDrbRquAARN95UriPCnM=";
}; };
"x86_64-linux" = { "x86_64-linux" = {
name = "x86_64"; name = "x86_64";
hash = "sha256-mffjJtn0LmRz9DOWMMw9soYDDm/M1C5Tdj6YbWHaq2o="; hash = "sha256-9x7pjgERvsBuyol8LiuPOlFZ5Up92N9HYg1mH9/0HAU=";
}; };
}.${stdenv.system} or (throw "Unsupported system"); }.${stdenv.system} or (throw "Unsupported system");
in fetchPypi { in fetchPypi {

View File

@ -6,11 +6,11 @@
, python-dateutil , python-dateutil
, pytz , pytz
, hypothesis , hypothesis
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "5.0.7"; version = "5.0.10";
pname = "icalendar"; pname = "icalendar";
format = "setuptools"; format = "setuptools";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "collective"; owner = "collective";
repo = "icalendar"; repo = "icalendar";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-fblcbyctnvd7DOc+tMWzg+90NHzZvH5xiY6BfJakQVo="; hash = "sha256-sRsUjNClJ58kmCRiwSe7oq20eamj95Vwy/o0xPU8qPw=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -30,9 +30,11 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
hypothesis hypothesis
pytest pytestCheckHook
]; ];
pytestFlagsArray = [ "src/icalendar" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst"; changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst";
description = "A parser/generator of iCalendar files"; description = "A parser/generator of iCalendar files";

View File

@ -0,0 +1,20 @@
diff --git a/src/img2pdf.py b/src/img2pdf.py
index 036232b..d2e7829 100755
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -3815,14 +3815,7 @@ def gui():
def get_default_icc_profile():
- for profile in [
- "/usr/share/color/icc/sRGB.icc",
- "/usr/share/color/icc/OpenICC/sRGB.icc",
- "/usr/share/color/icc/colord/sRGB.icc",
- ]:
- if os.path.exists(profile):
- return profile
- return "/usr/share/color/icc/sRGB.icc"
+ return "@colord@/share/color/icc/colord/sRGB.icc"
def get_main_parser():

View File

@ -1,8 +1,11 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, isPy27 , isPy27
, fetchPypi , fetchFromGitea
, substituteAll
, fetchpatch , fetchpatch
, colord
, setuptools
, pikepdf , pikepdf
, pillow , pillow
, stdenv , stdenv
@ -19,20 +22,34 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "img2pdf"; pname = "img2pdf";
version = "0.4.4"; version = "0.5.0";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { pyproject = true;
inherit pname version;
sha256 = "8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c"; src = fetchFromGitea {
domain = "gitlab.mister-muffin.de";
owner = "josch";
repo = "img2pdf";
rev = version;
hash = "sha256-k0GqBTS8PvYDmjzyLCSdQB7oBakrEQYJcQykDNrzgcA=";
}; };
patches = [ patches = [
(fetchpatch { (substituteAll {
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/148 src = ./default-icc-profile.patch;
url = "https://gitlab.mister-muffin.de/josch/img2pdf/commit/57d7e07e6badb252c12015388b58fcb5285d3158.patch"; inherit colord;
hash = "sha256-H/g55spe/oVJRxO2Vh+F+ZgR6aLoRUrNeu5WnuU7k/k=";
}) })
(fetchpatch {
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/178
url = "https://salsa.debian.org/debian/img2pdf/-/raw/4a7dbda0f473f7c5ffcaaf68ea4ad3f435e0920d/debian/patches/fix_tests.patch";
hash = "sha256-A1zK6yINhS+dvyckZjqoSO1XJRTaf4OXFdq5ufUrBs8=";
})
];
nativeBuildInputs = [
setuptools
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -40,9 +57,6 @@ buildPythonPackage rec {
pillow pillow
]; ];
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/128
doCheck = !stdenv.isAarch64;
nativeCheckInputs = [ nativeCheckInputs = [
exiftool exiftool
ghostscript ghostscript
@ -60,16 +74,18 @@ buildPythonPackage rec {
''; '';
disabledTests = [ disabledTests = [
"test_tiff_rgb" # https://gitlab.mister-muffin.de/josch/img2pdf/issues/178
"test_png_gray1" # https://gitlab.mister-muffin.de/josch/img2pdf/issues/154 "test_miff_cmyk16"
]; ];
pythonImportsCheck = [ "img2pdf" ]; pythonImportsCheck = [ "img2pdf" ];
meta = with lib; { meta = with lib; {
changelog = "https://gitlab.mister-muffin.de/josch/img2pdf/src/tag/${src.rev}/CHANGES.rst";
description = "Convert images to PDF via direct JPEG inclusion"; description = "Convert images to PDF via direct JPEG inclusion";
homepage = "https://gitlab.mister-muffin.de/josch/img2pdf"; homepage = "https://gitlab.mister-muffin.de/josch/img2pdf";
license = licenses.lgpl2; license = licenses.lgpl3Plus;
mainProgram = "img2pdf";
maintainers = with maintainers; [ veprbl dotlambda ]; maintainers = with maintainers; [ veprbl dotlambda ];
}; };
} }

View File

@ -7,7 +7,6 @@
, http-ece , http-ece
, python-dateutil , python-dateutil
, python-magic , python-magic
, pytz
, requests , requests
, six , six
, pytestCheckHook , pytestCheckHook
@ -15,42 +14,60 @@
, pytest-vcr , pytest-vcr
, requests-mock , requests-mock
, setuptools , setuptools
, pytest-cov
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mastodon-py"; pname = "mastodon-py";
# tests are broken on last release, check after next release (> 1.8.1) version = "1.8.1";
version = "unstable-2023-06-24"; pyproject = true;
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "halcy"; owner = "halcy";
repo = "Mastodon.py"; repo = "Mastodon.py";
rev = "cd86887d88bbc07de462d1e00a8fbc3d956c0151"; rev = "refs/tags/${version}";
hash = "sha256-rJocFvtBPrSSny3lwENuRsQdAzi3u8b+SfDNGloniWI="; hash = "sha256-r0AAUjd2MBfZANEpyztMNyaQTlGWvWoUVjJNO1eL218=";
}; };
postPatch = ''
sed -i '/addopts/d' setup.cfg
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
blurhash blurhash
cryptography
decorator decorator
http-ece
python-dateutil python-dateutil
python-magic python-magic
pytz
requests requests
six six
]; ];
passthru.optional-dependencies = {
blurhash = [
blurhash
];
webpush = [
http-ece
cryptography
];
};
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
pytest-mock pytest-mock
pytest-vcr pytest-vcr
pytest-cov
requests-mock requests-mock
setuptools setuptools
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
disabledTests = [
"test_notifications_dismiss_pre_2_9_2"
"test_status_card_pre_2_9_2"
"test_stream_user_direct"
"test_stream_user_local"
]; ];
pythonImportsCheck = [ "mastodon" ]; pythonImportsCheck = [ "mastodon" ];

View File

@ -29,14 +29,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "matrix-nio"; pname = "matrix-nio";
version = "0.21.2"; version = "0.22.1";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "poljar"; owner = "poljar";
repo = "matrix-nio"; repo = "matrix-nio";
rev = version; rev = version;
hash = "sha256-eK5DPmPZ/hv3i3lzoIuS9sJXKpUNhmBv4+Nw2u/RZi0="; hash = "sha256-hFSS2Nys95YJgBNED8SBan24iRo2q/UOr6pqUPAF5Ms=";
}; };
postPatch = '' postPatch = ''

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "nbxmpp"; pname = "nbxmpp";
version = "4.3.2"; version = "4.4.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "gajim"; owner = "gajim";
repo = "python-nbxmpp"; repo = "python-nbxmpp";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-vSLWaGYST1nut+0KAzURRKsr6XRtmYYTrkJiQEK3wa4="; hash = "sha256-AuGLP/7Mggk7rF9KRvqbVtAkQFq0NXaHDUGV6HMLU7Y=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -17,13 +17,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "nitime"; pname = "nitime";
version = "0.10.1"; version = "0.10.2";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-NnoVrSt6MTTcNup1e+/1v5JoHCYcycuQH4rHLzXJt+Y="; hash = "sha256-NCaWr7ZqL1XV0QfUD+4+Yn33N1cCP33ib5oJ91OtJLU=";
}; };
# Upstream wants to build against the oldest version of numpy possible, but # Upstream wants to build against the oldest version of numpy possible, but

View File

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "py-nextbusnext"; pname = "py-nextbusnext";
version = "1.0.0"; version = "1.0.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "ViViDboarder"; owner = "ViViDboarder";
repo = "py_nextbus"; repo = "py_nextbus";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-044VDg7bQNNnRGiPZW9gwo3Bzq0LPYKTrd3EgmBOcGA="; hash = "sha256-iJPbRhXgA1AIkyf3zGZ9tuFAw8h6oyBbh7Ln/y72fyQ=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [

View File

@ -1,15 +1,17 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, aiohttp , aiohttp
, bitarray , async-timeout
, chacha20poly1305-reuseable , chacha20poly1305-reuseable
, cryptography , cryptography
, deepdiff , deepdiff
, fetchFromGitHub , fetchFromGitHub
, ifaddr
, mediafile , mediafile
, miniaudio , miniaudio
, netifaces
, protobuf , protobuf
, pydantic
, pyfakefs
, pytest-aiohttp , pytest-aiohttp
, pytest-asyncio , pytest-asyncio
, pytest-httpserver , pytest-httpserver
@ -18,23 +20,25 @@
, pythonRelaxDepsHook , pythonRelaxDepsHook
, pythonOlder , pythonOlder
, requests , requests
, setuptools
, srptools , srptools
, stdenv , stdenv
, tabulate
, zeroconf , zeroconf
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyatv"; pname = "pyatv";
version = "0.13.4"; version = "0.14.4";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "postlund"; owner = "postlund";
repo = pname; repo = "pyatv";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-rZnL18vO8eYn70GzeKSY528iTc0r/seGv0dYDYGHNzw="; hash = "sha256-w3WOlZFfuCmekUsr8msi2LXTm6j8/Bk49L3MiYF7lOM=";
}; };
postPatch = '' postPatch = ''
@ -59,24 +63,28 @@ buildPythonPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
pythonRelaxDepsHook pythonRelaxDepsHook
setuptools
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
bitarray async-timeout
chacha20poly1305-reuseable chacha20poly1305-reuseable
cryptography cryptography
ifaddr
mediafile mediafile
miniaudio miniaudio
netifaces
protobuf protobuf
pydantic
requests requests
srptools srptools
tabulate
zeroconf zeroconf
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
deepdiff deepdiff
pyfakefs
pytest-aiohttp pytest-aiohttp
pytest-asyncio pytest-asyncio
pytest-httpserver pytest-httpserver
@ -84,10 +92,6 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
disabledTests = lib.optionals (stdenv.isDarwin) [ disabledTests = lib.optionals (stdenv.isDarwin) [
# tests/protocols/raop/test_raop_functional.py::test_stream_retransmission[raop_properties2-2-True] - assert False # tests/protocols/raop/test_raop_functional.py::test_stream_retransmission[raop_properties2-2-True] - assert False
"test_stream_retransmission" "test_stream_retransmission"

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pysigma"; pname = "pysigma";
version = "0.10.5"; version = "0.10.6";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "SigmaHQ"; owner = "SigmaHQ";
repo = "pySigma"; repo = "pySigma";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-iiE6XHj5632sBlivUHz7HiNRjNpEh+OMqcJ65o2km6I="; hash = "sha256-CmIhNZraDawiiKg6WuHUVRMwXSVEizg1KEv7o2ZP1Hc=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [

View File

@ -8,16 +8,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-fsutil"; pname = "python-fsutil";
version = "0.10.0"; version = "0.11.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fabiocaccamo"; owner = "fabiocaccamo";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-bHnCa7laDYi424czCGCPZuomqEOAeihjDTTW35ZTiac="; hash = "sha256-8d/cjD7dcA4/bKZtQUjgUPVgfZdjl+ibOFRpC9dyybA=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -28,7 +28,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-matter-server"; pname = "python-matter-server";
version = "4.0.0"; version = "4.0.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -37,7 +37,7 @@ buildPythonPackage rec {
owner = "home-assistant-libs"; owner = "home-assistant-libs";
repo = "python-matter-server"; repo = "python-matter-server";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-7MBQo4jzBU/n7gVdGzVHlQl8Vj3OjfK4gk1vhLQQUE0="; hash = "sha256-zCw5sj+UgY0egjXGzcbOb7VATeLY80+8Mv9owmdA+f0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -8,12 +8,13 @@
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, syrupy
, yarl , yarl
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-opensky"; pname = "python-opensky";
version = "0.2.0"; version = "0.2.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -22,7 +23,7 @@ buildPythonPackage rec {
owner = "joostlek"; owner = "joostlek";
repo = "python-opensky"; repo = "python-opensky";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-62ncinv6XUGB1dYle/yqSCyJNbGD9BLaOqrF/zjL2fA="; hash = "sha256-xNXFvCUZ/x5ox3KxmG3eA73wpX4fwhvAVmlfcKiT1V8=";
}; };
postPatch = '' postPatch = ''
@ -47,6 +48,7 @@ buildPythonPackage rec {
aresponses aresponses
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
syrupy
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

View File

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "recurring-ical-events"; pname = "recurring-ical-events";
version = "2.0.2"; version = "2.1.0";
format = "setuptools"; format = "setuptools";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "niccokunzmann"; owner = "niccokunzmann";
repo = "python-recurring-ical-events"; repo = "python-recurring-ical-events";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-aM7c/HE8xLqT5wCLaCrfFn6c7FIkCJA6TTICZprAgNM="; hash = "sha256-HNImooD6+hsMIfJX8LuHw1YyFIQNbY7dAjqdupPbhEE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -36,6 +36,9 @@ buildPythonPackage rec {
export PATH=$out/bin:$PATH export PATH=$out/bin:$PATH
''; '';
# https://github.com/niccokunzmann/x-wr-timezone/issues/8
doCheck = false;
pythonImportsCheck = [ "x_wr_timezone" ]; pythonImportsCheck = [ "x_wr_timezone" ];
meta = { meta = {

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "zeroconf"; pname = "zeroconf";
version = "0.115.2"; version = "0.119.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "jstasiak"; owner = "jstasiak";
repo = "python-zeroconf"; repo = "python-zeroconf";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-qLJWOZyWyLx5orDbvVSluA+zFvHN2393hyVC3ty87ug="; hash = "sha256-VaqKk2WrRLZM2tfx3+y9GngEc6rMcw0b12ExFVfDYf4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,6 +2,7 @@
, aiohttp , aiohttp
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, zigpy , zigpy
@ -27,6 +28,7 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio
pytestCheckHook pytestCheckHook
]; ];

Some files were not shown because too many files have changed in this diff Show More