Merge master into staging-nixos
This commit is contained in:
@@ -26,6 +26,12 @@ in
|
||||
programs.immersed = {
|
||||
enable = lib.mkEnableOption "immersed";
|
||||
|
||||
openPorts = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether to open firewall ports for Immersed";
|
||||
};
|
||||
|
||||
package = lib.mkPackageOption pkgs "immersed" { };
|
||||
};
|
||||
};
|
||||
@@ -43,6 +49,15 @@ in
|
||||
};
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
# https://immersed.helpscoutdocs.com/article/23-connection-troubleshooting-linux
|
||||
networking.firewall = lib.mkIf cfg.openPorts {
|
||||
allowedTCPPorts = [ 21000 ];
|
||||
allowedUDPPorts = [
|
||||
21000
|
||||
21010
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta.maintainers = pkgs.immersed.meta.maintainers;
|
||||
|
||||
+2
-2
@@ -15,9 +15,9 @@ let
|
||||
|
||||
# Usage:
|
||||
# treesit-grammars.with-grammars (p: [ p.tree-sitter-bash p.tree-sitter-c ... ])
|
||||
with-grammars = fn: grammarPackage (fn pkgs.tree-sitter.builtGrammars);
|
||||
with-grammars = fn: grammarPackage (fn pkgs.tree-sitter-grammars.derivations);
|
||||
|
||||
with-all-grammars = grammarPackage pkgs.tree-sitter.allGrammars;
|
||||
with-all-grammars = grammarPackage pkgs.tree-sitter-grammars.allGrammars;
|
||||
in
|
||||
{
|
||||
inherit with-grammars with-all-grammars;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
symlinkJoin,
|
||||
vimUtils,
|
||||
tree-sitter,
|
||||
tree-sitter-grammars,
|
||||
neovim,
|
||||
neovimUtils,
|
||||
runCommand,
|
||||
@@ -127,7 +128,7 @@ let
|
||||
withPlugins =
|
||||
f:
|
||||
let
|
||||
selectedGrammars = f (tree-sitter.builtGrammars // builtGrammars);
|
||||
selectedGrammars = f (tree-sitter-grammars.derivations // builtGrammars);
|
||||
|
||||
grammarPlugins = map grammarToPlugin selectedGrammars;
|
||||
|
||||
|
||||
+397
-397
File diff suppressed because it is too large
Load Diff
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"version": "3.9.8",
|
||||
"version": "3.9.16",
|
||||
"vscodeVersion": "1.105.1",
|
||||
"sources": {
|
||||
"x86_64-linux": {
|
||||
"url": "https://downloads.cursor.com/production/4aa8ff1b7877ed7bd01bcba308698f71a6735380/linux/x64/Cursor-3.9.8-x86_64.AppImage",
|
||||
"hash": "sha256-xcyFowrW5yzIDCwbFGmpDRSNa3OUXsHwpLkbyNcSzqM="
|
||||
"url": "https://downloads.cursor.com/production/042b3c1a4c53f2c3808067f519fbfc67b72cad8b/linux/x64/Cursor-3.9.16-x86_64.AppImage",
|
||||
"hash": "sha256-dG61VYGMHPip57ldzNICEi1yPc4s1dON+MlDGiKadKc="
|
||||
},
|
||||
"aarch64-linux": {
|
||||
"url": "https://downloads.cursor.com/production/4aa8ff1b7877ed7bd01bcba308698f71a6735380/linux/arm64/Cursor-3.9.8-aarch64.AppImage",
|
||||
"hash": "sha256-ZhRMvfJkt8NZT45tYxfO2gBFaVw6hR2nVeRzmrxQfeE="
|
||||
"url": "https://downloads.cursor.com/production/042b3c1a4c53f2c3808067f519fbfc67b72cad8b/linux/arm64/Cursor-3.9.16-aarch64.AppImage",
|
||||
"hash": "sha256-7tkupyy8EFeOpzQqoHQsYxWQlFoW6VBpXkuCJsRIhRw="
|
||||
},
|
||||
"x86_64-darwin": {
|
||||
"url": "https://downloads.cursor.com/production/4aa8ff1b7877ed7bd01bcba308698f71a6735380/darwin/x64/Cursor-darwin-x64.dmg",
|
||||
"hash": "sha256-IOQsZQAncDgZGEnCZWg/LQqD/PquFifBmuk2hnJ1L/s="
|
||||
"url": "https://downloads.cursor.com/production/042b3c1a4c53f2c3808067f519fbfc67b72cad8b/darwin/x64/Cursor-darwin-x64.dmg",
|
||||
"hash": "sha256-5sAj/FiPAs1facGmNKgXiNzs1Kc1ht9eXYU1aZ1VoUA="
|
||||
},
|
||||
"aarch64-darwin": {
|
||||
"url": "https://downloads.cursor.com/production/4aa8ff1b7877ed7bd01bcba308698f71a6735380/darwin/arm64/Cursor-darwin-arm64.dmg",
|
||||
"hash": "sha256-GxpBKyx0Yo3e8AUS9Oxei/hHm1m3JdxMKjX7qAxUGm4="
|
||||
"url": "https://downloads.cursor.com/production/042b3c1a4c53f2c3808067f519fbfc67b72cad8b/darwin/arm64/Cursor-darwin-arm64.dmg",
|
||||
"hash": "sha256-pnSsOvyFiBKJsPUPkfnSY1l+LEzz3g5kbepIco7dDIM="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,32 +4,19 @@
|
||||
linkFarm,
|
||||
makeWrapper,
|
||||
rustPlatform,
|
||||
tree-sitter,
|
||||
tree-sitter-grammars,
|
||||
gitUpdater,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
let
|
||||
# based on https://github.com/NixOS/nixpkgs/blob/aa07b78b9606daf1145a37f6299c6066939df075/pkgs/development/tools/parsing/tree-sitter/default.nix#L85-L104
|
||||
withPlugins =
|
||||
grammarFn:
|
||||
let
|
||||
grammars = grammarFn tree-sitter.builtGrammars;
|
||||
in
|
||||
linkFarm "grammars" (
|
||||
map (
|
||||
drv:
|
||||
let
|
||||
name = lib.strings.getName drv;
|
||||
in
|
||||
{
|
||||
name = "lib" + (lib.strings.removeSuffix "-grammar" name) + ".so";
|
||||
path = "${drv}/parser";
|
||||
}
|
||||
) grammars
|
||||
);
|
||||
grammarToAttrSet = drv: {
|
||||
name = "lib" + (lib.strings.removeSuffix "-grammar" (lib.strings.getName drv)) + ".so";
|
||||
path = "${drv}/parser";
|
||||
};
|
||||
|
||||
libPath = withPlugins (_: tree-sitter.allGrammars);
|
||||
libPath = linkFarm "grammars" (map grammarToAttrSet tree-sitter-grammars.allGrammars);
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "diffsitter";
|
||||
|
||||
@@ -7,18 +7,18 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "diskwatch";
|
||||
version = "0.1.1";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matthart1983";
|
||||
repo = "diskwatch";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-pveHyT3ljQQ9GdOMhZhcY7QD/pMvL3fLrbM6D5fO+h4=";
|
||||
hash = "sha256-8tQXcbY/sguw42vE0p5Q8/psmwfYQihWcSIsApI4OmE=";
|
||||
};
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
cargoHash = "sha256-PufgQqJGsPMBcnNV/QXQnE/wrI4FAJWXLvoHEqLQm5k=";
|
||||
cargoHash = "sha256-kO6g5JJogNN5xqD5Qoj6Ncd6scA7PFAjg6y0AWnNhAM=";
|
||||
|
||||
nativeCheckInputs = [ versionCheckHook ];
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "django-upgrade";
|
||||
version = "1.30.0";
|
||||
version = "1.31.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "adamchainz";
|
||||
repo = "django-upgrade";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-IiGwYq6TTNiNIx1jrzQlLiULWNZlam7onJJGFFJ/hVM=";
|
||||
hash = "sha256-6x1542ieT+G/r3IiCw4aLePY3HLzpycI7FOBqHm1fmE=";
|
||||
};
|
||||
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
helix-unwrapped,
|
||||
removeReferencesTo,
|
||||
pkgs,
|
||||
tree-sitter,
|
||||
tree-sitter-grammars,
|
||||
lockedGrammars ? lib.importJSON ./grammars.json,
|
||||
grammarsOverlay ? (
|
||||
final: prev: {
|
||||
@@ -66,13 +66,9 @@ let
|
||||
}
|
||||
) prev;
|
||||
|
||||
tree-sitter-grammars =
|
||||
helixTreeSitterGrammars =
|
||||
lib.filterAttrs (drvName: _: lib.hasAttr (lib.removePrefix "tree-sitter-" drvName) lockedGrammars)
|
||||
(
|
||||
tree-sitter.grammarsScope.overrideScope (
|
||||
lib.composeExtensions lockedVersionsOverlay grammarsOverlay
|
||||
)
|
||||
);
|
||||
(tree-sitter-grammars.overrideScope (lib.composeExtensions lockedVersionsOverlay grammarsOverlay));
|
||||
|
||||
# Dynamic libraries for the grammars always use the `.so` extension, also on Darwin (should use `.dylib`)
|
||||
# See here: https://github.com/helix-editor/helix/pull/14982
|
||||
@@ -82,7 +78,7 @@ let
|
||||
lib.concatMapAttrsStringSep "\n" (_: grammar: ''
|
||||
install -D ${grammar}/parser $out/${grammar.language}.so
|
||||
${lib.getExe removeReferencesTo} -t ${grammar} $out/${grammar.language}.so
|
||||
'') (lib.filterAttrs (_: lib.isDerivation) tree-sitter-grammars)
|
||||
'') helixTreeSitterGrammars
|
||||
);
|
||||
|
||||
lockedGrammarsCount = lib.length (lib.attrNames lockedGrammars);
|
||||
@@ -113,7 +109,7 @@ symlinkJoin {
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
runtime = runtimeDir;
|
||||
inherit tree-sitter-grammars;
|
||||
tree-sitter-grammars = helixTreeSitterGrammars;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -25,6 +25,13 @@ appimageTools.wrapAppImage {
|
||||
|
||||
extraPkgs =
|
||||
pkgs: with pkgs; [
|
||||
libva
|
||||
# VAAPI backends
|
||||
intel-media-driver
|
||||
intel-vaapi-driver
|
||||
nvidia-vaapi-driver
|
||||
mesa
|
||||
# Other dependencies
|
||||
libgpg-error
|
||||
fontconfig
|
||||
libGL
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
}:
|
||||
buildGo125Module (finalAttrs: {
|
||||
pname = "jjui";
|
||||
version = "0.10.7";
|
||||
version = "0.10.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "idursun";
|
||||
repo = "jjui";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-IcJImxowBuQy9MBsz4QesDJM484qSvfQxPx4ykQ0ttA=";
|
||||
hash = "sha256-ZbmCPCTsSbphLUy+lrTt4/6DVq70edKGI59U0HDbawE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-thGlfZ0SwHpynYydxu6Sg8OUe5kr7jiPKvl6BXS5BWA=";
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
let
|
||||
pname = "mongodb-compass";
|
||||
version = "1.49.9";
|
||||
version = "1.49.10";
|
||||
|
||||
selectSystem =
|
||||
attrs:
|
||||
@@ -67,9 +67,9 @@ let
|
||||
}
|
||||
}";
|
||||
hash = selectSystem {
|
||||
x86_64-linux = "sha256-Fx//NMDHqVaLwthOM7FeSgUXkvLOSbw5EH1qp1dgPcM=";
|
||||
x86_64-darwin = "sha256-l5Jx0BUQR++tkF0cpctxhku6lB2rHEydp7roJy9AGFc=";
|
||||
aarch64-darwin = "sha256-HCKt1rq6P7Uy6NJiFRBBp4YdpAdhwQQjEGT5h7IcyWE=";
|
||||
x86_64-linux = "sha256-faD8sIbnho5urBWE0btcmD7tXT8eQCNyJYzpIyI+bA4=";
|
||||
x86_64-darwin = "sha256-Ddue3jSvQecBjxQlyh/+ujrF9NheZ9PS0Dq7J08SJr8=";
|
||||
aarch64-darwin = "sha256-HGOJPYC4+CgLQQ3BNUTNZUln5oqPkC8ewHft99LCZQ8=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -8,18 +8,18 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "rmux";
|
||||
version = "0.7.0";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Helvesec";
|
||||
repo = "rmux";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-W+H5MBh+EPkppdDaHMTPUVM1ZpPca/MeVOs/GM1x8UQ=";
|
||||
hash = "sha256-73pSH4wowEWYyKQf1htbB0RnCw3qHe0rENr66eyFnM4=";
|
||||
};
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
cargoHash = "sha256-kGZczNoHKHWR4fpAvXRhldpYHVgSkIOgAa/OUSaZVvs=";
|
||||
cargoHash = "sha256-YcCYMEM+u+Vq5mzqlL1rqyJmSYt2VxZNBt6cJ4t0Als=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
||||
@@ -12,13 +12,13 @@ buildGoModule (
|
||||
in
|
||||
{
|
||||
pname = "rqlite";
|
||||
version = "10.2.4";
|
||||
version = "10.2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rqlite";
|
||||
repo = "rqlite";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Ays/H+nlS7Rien+0zutLMDx3cJDdURQNvXZn1XSwzuw=";
|
||||
hash = "sha256-YFEvsEjpJSYoGEqYxVP9Qo6JRTD1peVP9a3Bf1hsdLU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-rWyDyypKbettuwL8tfXmkvKtIg5fm5EzZud2/5RL0kY=";
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "secretspec";
|
||||
version = "0.12.2";
|
||||
version = "0.13.0";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-Oj1CaiL0uGhlyrJK+xfKLH3f9wYDQTIiDTxop3BTnNs=";
|
||||
hash = "sha256-pOlfDWFjhndp+Wq/UzL/bYcgQHkWTrnuUd7w2WiqJog=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-5VKiagAQnUIL1i36hQ+zUgScfBkg0uwKG3FMQdrlIq4=";
|
||||
cargoHash = "sha256-ITv4MGpg11mnp5YbfUd/xd7dLl2ll21ybGCyTO4UAx4=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ dbus ];
|
||||
|
||||
@@ -109,6 +109,59 @@ This includes build-related flags and metadata.
|
||||
}
|
||||
```
|
||||
|
||||
## Overriding the Grammar Set
|
||||
|
||||
Use `pkgs.tree-sitter-grammars.overrideScope` when adding a grammar or replacing a grammar that another package should consume.
|
||||
`pkgs.tree-sitter-grammars` is the scoped package set used for grammar overrides and scoped helpers such as `derivations`, `allGrammars`, and `withPlugins`.
|
||||
|
||||
```nix
|
||||
let
|
||||
grammars = pkgs.tree-sitter-grammars.overrideScope (
|
||||
final: prev: {
|
||||
tree-sitter-foolang = pkgs.tree-sitter.buildGrammar {
|
||||
language = "foolang";
|
||||
version = "0.42.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "example";
|
||||
repo = "tree-sitter-foolang";
|
||||
rev = "v0.42.0";
|
||||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||
};
|
||||
};
|
||||
|
||||
tree-sitter-rust = prev.tree-sitter-rust.overrideAttrs (_: {
|
||||
version = "custom";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "example";
|
||||
repo = "tree-sitter-rust";
|
||||
rev = "custom";
|
||||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||
};
|
||||
});
|
||||
}
|
||||
);
|
||||
in
|
||||
grammars.withPlugins (p: [
|
||||
p.tree-sitter-foolang
|
||||
p.tree-sitter-rust
|
||||
])
|
||||
```
|
||||
|
||||
The scoped `withPlugins` helper receives derivations from the same overridden scope, so added or replaced grammars are visible.
|
||||
|
||||
The set also carries package-set helpers (`callPackage`, `newScope`, `overrideScope`, …) alongside the grammars, so do not iterate it directly.
|
||||
Use one of its grammar-only views instead; each reflects any `overrideScope`:
|
||||
|
||||
- `pkgs.tree-sitter-grammars.derivations` — attrset of every grammar derivation, including grammars marked broken.
|
||||
- `pkgs.tree-sitter-grammars.allGrammars` — list of the non-broken grammar derivations.
|
||||
- `pkgs.tree-sitter-grammars.withPlugins` — build a grammar link farm.
|
||||
|
||||
```nix
|
||||
builtins.attrValues pkgs.tree-sitter-grammars.derivations
|
||||
```
|
||||
|
||||
`pkgs.tree-sitter.builtGrammars` remains the plain attribute set generated directly from [grammar-sources.nix](grammar-sources.nix); use it when you specifically want the stock grammars without any scope overrides.
|
||||
|
||||
## Building WebAssembly Parsers
|
||||
|
||||
`buildGrammar` builds a native `$out/parser`.
|
||||
|
||||
@@ -75,26 +75,12 @@ let
|
||||
*/
|
||||
builtGrammars = lib.mapAttrs (_: lib.makeOverridable buildGrammar) grammars;
|
||||
|
||||
/**
|
||||
# Extensible package set for tree-sitter grammars.
|
||||
# Provides .override and .extend for customization.
|
||||
# Note: Use builtGrammars (not this) when iterating over grammars,
|
||||
# as this includes package set functions alongside derivations
|
||||
*/
|
||||
grammarsScope = lib.makeScope newScope (self: builtGrammars);
|
||||
grammarDerivationsFrom = lib.filterAttrs (
|
||||
name: value: lib.hasPrefix "tree-sitter-" name && lib.isDerivation value
|
||||
);
|
||||
|
||||
# Usage:
|
||||
# pkgs.tree-sitter.withPlugins (p: [ p.tree-sitter-c p.tree-sitter-java ... ])
|
||||
#
|
||||
# or for all grammars:
|
||||
# pkgs.tree-sitter.withPlugins (_: pkgs.tree-sitter.allGrammars)
|
||||
# which is equivalent to
|
||||
# pkgs.tree-sitter.withPlugins (p: builtins.attrValues p)
|
||||
withPlugins =
|
||||
grammarFn:
|
||||
let
|
||||
grammars = grammarFn builtGrammars;
|
||||
in
|
||||
mkGrammarLinkFarm =
|
||||
grammars:
|
||||
linkFarm "grammars" (
|
||||
map (
|
||||
drv:
|
||||
@@ -112,7 +98,32 @@ let
|
||||
) grammars
|
||||
);
|
||||
|
||||
allGrammars = lib.filter (p: !(p.meta.broken or false)) (lib.attrValues builtGrammars);
|
||||
/**
|
||||
Extensible package set of compiled tree-sitter grammars.
|
||||
|
||||
Exposed as `pkgs.tree-sitter-grammars` and `pkgs.tree-sitter.grammarsScope`.
|
||||
Customize with `.overrideScope`; overrides propagate to every consumer that
|
||||
reads the scope, including the grammar-only views below (which the
|
||||
`pkgs.tree-sitter` passthru re-exports so there is a single source of truth):
|
||||
|
||||
`.derivations` attrset of every grammar derivation
|
||||
`.allGrammars` list of non-broken grammar derivations
|
||||
`.withPlugins` build a grammar link farm
|
||||
|
||||
The scope also carries package-set helpers (`callPackage`, `overrideScope`,
|
||||
…) alongside the grammars, so prefer one of the views above when iterating.
|
||||
*/
|
||||
grammarsScope = lib.makeScope newScope (
|
||||
self:
|
||||
builtGrammars
|
||||
// {
|
||||
derivations = grammarDerivationsFrom self;
|
||||
allGrammars = lib.filter (p: !(p.meta.broken or false)) (
|
||||
lib.attrValues (grammarDerivationsFrom self)
|
||||
);
|
||||
withPlugins = grammarFn: mkGrammarLinkFarm (grammarFn (grammarDerivationsFrom self));
|
||||
}
|
||||
);
|
||||
|
||||
isWasi = stdenv.hostPlatform.isWasi;
|
||||
|
||||
@@ -237,14 +248,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
passthru = {
|
||||
inherit
|
||||
grammars
|
||||
buildGrammar
|
||||
builtGrammars
|
||||
grammars
|
||||
grammarsScope
|
||||
withPlugins
|
||||
allGrammars
|
||||
;
|
||||
|
||||
# Keep legacy `pkgs.tree-sitter` views wired to the overridable scope.
|
||||
inherit (grammarsScope) allGrammars withPlugins;
|
||||
|
||||
updateScript = nix-update-script { };
|
||||
|
||||
tests = {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
fetchpatch,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
versionCheckHook,
|
||||
wrapWithXFileSearchPathHook,
|
||||
libx11,
|
||||
libxaw,
|
||||
@@ -19,7 +19,7 @@
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xclock";
|
||||
version = "1.1.1";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
@@ -27,17 +27,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
owner = "app";
|
||||
repo = "xclock";
|
||||
tag = "xclock-${finalAttrs.version}";
|
||||
hash = "sha256-ZgUb+iVO45Az/C+2YJ1TXxcTLk3zQjM1GGv2E69WNfo=";
|
||||
hash = "sha256-sytAl9vXBdxjTM0NnAgRNK34yqn/6zJeCQ/9bH3xaOc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# meson build system patch
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.freedesktop.org/xorg/app/xclock/-/commit/28e10bd26ac7e02fe8a4fb8016bb115f8d664032.patch";
|
||||
hash = "sha256-KdrS7VneJqwVPB+TRJoMmtR03Ju3PvvUMYfXz5tII6k=";
|
||||
})
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -62,6 +54,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
(lib.mesonOption "appdefaultdir" "${placeholder "out"}/share/X11/app-defaults")
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "-version";
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=xclock-(.*)" ]; };
|
||||
|
||||
meta = {
|
||||
@@ -77,7 +73,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mit
|
||||
];
|
||||
mainProgram = "xclock";
|
||||
maintainers = [ ];
|
||||
maintainers = with lib.maintainers; [ booxter ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "nicegui-highcharts";
|
||||
version = "3.2.1";
|
||||
version = "3.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zauberzeug";
|
||||
repo = "nicegui-highcharts";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-/lQ2E2kcFjS3FbuOgixAu1E24dzwR/ppT0DRlRjrp6E=";
|
||||
hash = "sha256-wzpgTDXTI3INQrkio6lgge07r+76wUKd193mt5ugc6g=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [ "docutils" ];
|
||||
|
||||
@@ -37,32 +37,17 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "plotly";
|
||||
version = "6.7.0";
|
||||
version = "6.8.0";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "plotly";
|
||||
repo = "plotly.py";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-gykhl1aBgKCkJVv507UJk4xdYaruV/aU+JLYmvyFYbY=";
|
||||
hash = "sha256-bXMFCRieoWNQZZA9eDTcZqO1vu71CMIk4+TlL0R9+5A=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://numpy.org/devdocs/release/2.4.0-notes.html#removed-numpy-in1d
|
||||
# Upstream PR: https://github.com/plotly/plotly.py/pull/5522
|
||||
./numpy-2.4-in1d.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# `pytest_ignore_collect` takes only `collection_path` starting with
|
||||
# pytest 9. Most of the paths referenced in `plotly/conftest.py`
|
||||
# don't exist anymore and wouldn't be collected anyway, so we can just
|
||||
# remove the file.
|
||||
# https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
|
||||
# Upstream PR: https://github.com/plotly/plotly.py/pull/5521
|
||||
rm plotly/conftest.py
|
||||
'';
|
||||
|
||||
env.SKIP_NPM = true;
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
From 9531e7ff00be577560f2cebf6739343646d3c770 Mon Sep 17 00:00:00 2001
|
||||
From: Tom Hunze <dev@thunze.de>
|
||||
Date: Mon, 23 Feb 2026 19:21:45 +0100
|
||||
Subject: [PATCH] Use `np.isin` instead of `np.in1d` to fix numpy 2.4 test
|
||||
compatibility
|
||||
|
||||
https://numpy.org/devdocs/release/2.4.0-notes.html#removed-numpy-in1d
|
||||
---
|
||||
tests/test_optional/test_px/test_px.py | 2 +-
|
||||
tests/test_optional/test_px/test_px_functions.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/test_optional/test_px/test_px.py b/tests/test_optional/test_px/test_px.py
|
||||
index 6c65925a727..a74c4680540 100644
|
||||
--- a/tests/test_optional/test_px/test_px.py
|
||||
+++ b/tests/test_optional/test_px/test_px.py
|
||||
@@ -36,7 +36,7 @@ def test_custom_data_scatter(backend):
|
||||
)
|
||||
for data in fig.data:
|
||||
assert np.all(
|
||||
- np.in1d(data.customdata[:, 1], iris.get_column("petal_width").to_numpy())
|
||||
+ np.isin(data.customdata[:, 1], iris.get_column("petal_width").to_numpy())
|
||||
)
|
||||
# Hover and custom data, no repeated arguments
|
||||
fig = px.scatter(
|
||||
diff --git a/tests/test_optional/test_px/test_px_functions.py b/tests/test_optional/test_px/test_px_functions.py
|
||||
index 0814898f89d..8220ec7a33a 100644
|
||||
--- a/tests/test_optional/test_px/test_px_functions.py
|
||||
+++ b/tests/test_optional/test_px/test_px_functions.py
|
||||
@@ -307,7 +307,7 @@ def test_sunburst_treemap_with_path_color(constructor):
|
||||
fig = px.sunburst(
|
||||
df.to_native(), path=path, color="sectors", color_discrete_map=cmap
|
||||
)
|
||||
- assert np.all(np.in1d(fig.data[0].marker.colors, list(cmap.values())))
|
||||
+ assert np.all(np.isin(fig.data[0].marker.colors, list(cmap.values())))
|
||||
|
||||
# Numerical column in path
|
||||
df = (
|
||||
@@ -15,14 +15,14 @@ let
|
||||
variants = {
|
||||
# ./update-xanmod.sh lts
|
||||
lts = {
|
||||
version = "6.18.37";
|
||||
hash = "sha256-8H8V9z8fizt/2DCTTCme0DVYOfJ4431SFs0iubUHONE=";
|
||||
version = "6.18.38";
|
||||
hash = "sha256-PJq69EQXiOJKgQnegxsEcJqAaL10G542Joh5dBrZN0I=";
|
||||
isLTS = true;
|
||||
};
|
||||
# ./update-xanmod.sh main
|
||||
main = {
|
||||
version = "7.0.14";
|
||||
hash = "sha256-9vb4ORzAppq5S/ukEhDHohNQBW+jWwGnjhv21HztWdk=";
|
||||
version = "7.1.3";
|
||||
hash = "sha256-EvxKUWDp0KAKhYO4rZKKx22RCGOimzPm5epchME/pJ8=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -5419,7 +5419,7 @@ with pkgs;
|
||||
|
||||
tflint-plugins = recurseIntoAttrs (callPackage ../development/tools/analysis/tflint-plugins { });
|
||||
|
||||
tree-sitter-grammars = recurseIntoAttrs tree-sitter.builtGrammars;
|
||||
tree-sitter-grammars = recurseIntoAttrs tree-sitter.grammarsScope;
|
||||
|
||||
uhdMinimal = uhd.override {
|
||||
enableUtils = false;
|
||||
|
||||
@@ -20330,7 +20330,7 @@ self: super: with self; {
|
||||
"tree-sitter-sshclientconfig"
|
||||
"tree-sitter-templ"
|
||||
])
|
||||
) pkgs.tree-sitter.builtGrammars
|
||||
) pkgs.tree-sitter-grammars.derivations
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user