Skip to content

Commit 4a5ad09

Browse files
Merge master into staging-next
2 parents 001fb49 + ac8b46d commit 4a5ad09

File tree

27 files changed

+472
-136
lines changed

27 files changed

+472
-136
lines changed

maintainers/maintainer-list.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18403,6 +18403,18 @@
1840318403
githubId = 1217934;
1840418404
name = "José Romildo Malaquias";
1840518405
};
18406+
romner-set = {
18407+
email = "[email protected]";
18408+
github = "romner-set";
18409+
githubId = 41077433;
18410+
name = "romner-set";
18411+
keys = [
18412+
{
18413+
# uploaded to https://keys.openpgp.org
18414+
fingerprint = "4B75 244B 0279 9598 FF3B C21F 95FC 58F1 8CFD FAB0";
18415+
}
18416+
];
18417+
};
1840618418
ronanmacf = {
1840718419
email = "[email protected]";
1840818420
github = "RonanMacF";

nixos/modules/virtualisation/qemu-vm.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ let
141141
--absolute-names \
142142
--verbatim-files-from \
143143
--transform 'flags=rSh;s|/nix/store/||' \
144+
--transform 'flags=rSh;s|~nix~case~hack~[[:digit:]]\+||g' \
144145
--files-from ${hostPkgs.closureInfo { rootPaths = [ config.system.build.toplevel regInfo ]; }}/store-paths \
145146
| ${hostPkgs.erofs-utils}/bin/mkfs.erofs \
146147
--quiet \

pkgs/applications/editors/vim/plugins/generated.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5534,6 +5534,18 @@ final: prev:
55345534
meta.homepage = "https://github.com/qnighy/lalrpop.vim/";
55355535
};
55365536

5537+
langmapper-nvim = buildVimPlugin {
5538+
pname = "langmapper.nvim";
5539+
version = "2024-09-19";
5540+
src = fetchFromGitHub {
5541+
owner = "Wansmer";
5542+
repo = "langmapper.nvim";
5543+
rev = "ac74a80cb86e8b51e4a13ccb2ee540d544fe1c62";
5544+
sha256 = "1b2sjsi81r7m1pxxkisl4b2w2cag3v2i4andhn89gv6afzakvzka";
5545+
};
5546+
meta.homepage = "https://github.com/Wansmer/langmapper.nvim/";
5547+
};
5548+
55375549
last256 = buildVimPlugin {
55385550
pname = "last256";
55395551
version = "2020-12-09";
@@ -12954,6 +12966,18 @@ final: prev:
1295412966
meta.homepage = "https://github.com/junegunn/vim-after-object/";
1295512967
};
1295612968

12969+
vim-afterglow = buildVimPlugin {
12970+
pname = "vim-afterglow";
12971+
version = "2024-03-31";
12972+
src = fetchFromGitHub {
12973+
owner = "danilo-augusto";
12974+
repo = "vim-afterglow";
12975+
rev = "fe3a0c4d2acf13ed6f7f0f1fede0a2570f13b06e";
12976+
sha256 = "0z61jfdhhajw5k7y8msk8nj5nljwygmw3s6vsqq9qgczaixqh968";
12977+
};
12978+
meta.homepage = "https://github.com/danilo-augusto/vim-afterglow/";
12979+
};
12980+
1295712981
vim-agda = buildVimPlugin {
1295812982
pname = "vim-agda";
1295912983
version = "2024-05-17";

pkgs/applications/editors/vim/plugins/vim-plugin-names

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ https://github.com/b3nj5m1n/kommentary/,,
463463
https://github.com/udalov/kotlin-vim/,,
464464
https://github.com/mistweaverco/kulala.nvim/,HEAD,
465465
https://github.com/qnighy/lalrpop.vim/,,
466+
https://github.com/Wansmer/langmapper.nvim/,HEAD,
466467
https://github.com/sk1418/last256/,,
467468
https://github.com/latex-box-team/latex-box/,,
468469
https://github.com/dundalek/lazy-lsp.nvim/,HEAD,
@@ -1092,6 +1093,7 @@ https://github.com/MarcWeber/vim-addon-syntax-checker/,,
10921093
https://github.com/MarcWeber/vim-addon-toggle-buffer/,,
10931094
https://github.com/MarcWeber/vim-addon-xdebug/,,
10941095
https://github.com/junegunn/vim-after-object/,,
1096+
https://github.com/danilo-augusto/vim-afterglow/,HEAD,
10951097
https://github.com/msuperdock/vim-agda/,HEAD,
10961098
https://github.com/vim-airline/vim-airline/,,
10971099
https://github.com/enricobacis/vim-airline-clock/,,

pkgs/applications/misc/hamster/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ python3Packages.buildPythonApplication rec {
3535
pygobject3
3636
pycairo
3737
pyxdg
38+
setuptools
3839
dbus-python
3940
];
4041

42+
PYTHONDIR = "${placeholder "out"}/${python3Packages.python.sitePackages}";
43+
4144
dontWrapGApps = true;
4245

4346
# Arguments to be passed to `makeWrapper`, only used by buildPython*

pkgs/by-name/cz/czkawka/package.nix

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
testers,
1818
wrapGAppsHook4,
1919
xvfb-run,
20+
versionCheckHook,
2021
}:
2122

2223
let
@@ -26,21 +27,16 @@ let
2627

2728
self = buildRustPackage' {
2829
pname = "czkawka";
29-
version = "7.0.0";
30+
version = "8.0.0";
3031

3132
src = fetchFromGitHub {
3233
owner = "qarmin";
3334
repo = "czkawka";
34-
rev = self.version;
35-
hash = "sha256-SOWtLmehh1F8SoDQ+9d7Fyosgzya5ZztCv8IcJZ4J94=";
35+
rev = "refs/tags/${self.version}";
36+
hash = "sha256-Uxko2TRIjqQvd7n9C+P7oMUrm3YY5j7TVzvijEjDwOM=";
3637
};
3738

38-
cargoPatches = [
39-
# Updates time and time-macros from Cargo.lock
40-
./0000-time.diff
41-
];
42-
43-
cargoHash = "sha256-cQv8C0P3xizsvnJODkTMJQA98P4nYSCHFT75isJE6es=";
39+
cargoHash = "sha256-DR2JU+QcGWliNoRMjSjJns7FsicpNAX5gTariFuQ/dw=";
4440

4541
nativeBuildInputs = [
4642
gobject-introspection
@@ -85,6 +81,13 @@ let
8581
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
8682
'';
8783

84+
nativeInstallCheckInputs = [
85+
versionCheckHook
86+
];
87+
versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli";
88+
versionCheckProgramArg = [ "--version" ];
89+
doInstallCheck = true;
90+
8891
passthru = {
8992
tests.version = testers.testVersion {
9093
package = self;

pkgs/by-name/di/disko/package.nix

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
, nix
77
, nixos-install
88
, coreutils
9+
, testers
910
}:
1011

1112
stdenvNoCC.mkDerivation (finalAttrs: {
1213
pname = "disko";
13-
version = "1.8.0";
14+
version = "1.8.2";
1415
src = fetchFromGitHub {
1516
owner = "nix-community";
1617
repo = "disko";
1718
rev = "v${finalAttrs.version}";
18-
hash = "sha256-5zShvCy9S4tuISFjNSjb+TWpPtORqPbRZ0XwbLbPLho=";
19+
hash = "sha256-O0QVhsj9I/hmcIqJ4qCqFyzvjYL+dtzJP0C5MFd8O/Y=";
1920
};
2021
nativeBuildInputs = [ makeWrapper ];
2122
buildInputs = [ bash ];
@@ -27,7 +28,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
2728
for i in disko disko-install; do
2829
sed -e "s|libexec_dir=\".*\"|libexec_dir=\"$out/share/disko\"|" "$i" > "$out/bin/$i"
2930
chmod 755 "$out/bin/$i"
30-
wrapProgram "$out/bin/$i" --prefix PATH : ${lib.makeBinPath [ nix coreutils nixos-install ]}
31+
wrapProgram "$out/bin/$i" \
32+
--set DISKO_VERSION "${finalAttrs.version}" \
33+
--prefix PATH : ${lib.makeBinPath [ nix coreutils nixos-install ]}
3134
done
3235
runHook postInstall
3336
'';
@@ -38,12 +41,15 @@ stdenvNoCC.mkDerivation (finalAttrs: {
3841
$out/bin/disko-install --help
3942
runHook postInstallCheck
4043
'';
44+
45+
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
46+
4147
meta = {
4248
homepage = "https://github.com/nix-community/disko";
4349
description = "Declarative disk partitioning and formatting using nix";
4450
license = lib.licenses.mit;
4551
mainProgram = "disko";
46-
maintainers = with lib.maintainers; [ mic92 lassulus ];
52+
maintainers = with lib.maintainers; [ mic92 lassulus iFreilicht ];
4753
platforms = lib.platforms.linux;
4854
};
4955
})

pkgs/by-name/me/memorado/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515

1616
stdenv.mkDerivation rec {
1717
pname = "memorado";
18-
version = "0.3";
18+
version = "0.4";
1919

2020
src = fetchFromGitHub {
2121
owner = "wbernard";
2222
repo = "Memorado";
2323
rev = "refs/tags/${version}";
24-
hash = "sha256-bArcYUHSfpjYsySGZco4fmb6bKRFtG6efhzNSqUROX0=";
24+
hash = "sha256-yWu2+VAa5FkpLs/KLI0lcNzFLGN/kiq6frtW8SHN+W4=";
2525
};
2626

2727
nativeBuildInputs = [

pkgs/by-name/vp/vpp/package.nix

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
cmake,
7+
pkg-config,
8+
check,
9+
openssl,
10+
python3,
11+
subunit,
12+
mbedtls_2,
13+
libpcap,
14+
libnl,
15+
libmnl,
16+
libelf,
17+
dpdk,
18+
jansson,
19+
zlib,
20+
rdma-core,
21+
libbpf,
22+
xdp-tools,
23+
enableDpdk ? true,
24+
enableRdma ? true,
25+
# FIXME: broken: af_xdp plugins - no working libbpf found - af_xdp plugin disabled
26+
enableAfXdp ? false,
27+
}:
28+
29+
let
30+
dpdk' = dpdk.overrideAttrs (old: {
31+
mesonFlags = old.mesonFlags ++ [ "-Denable_driver_sdk=true" ];
32+
});
33+
34+
rdma-core' = rdma-core.overrideAttrs (old: {
35+
cmakeFlags = old.cmakeFlags ++ [
36+
"-DENABLE_STATIC=1"
37+
"-DBUILD_SHARED_LIBS:BOOL=false"
38+
];
39+
});
40+
41+
xdp-tools' = xdp-tools.overrideAttrs (old: {
42+
postInstall = "";
43+
dontDisableStatic = true;
44+
});
45+
in
46+
stdenv.mkDerivation rec {
47+
pname = "vpp";
48+
version = "24.06";
49+
50+
src = fetchFromGitHub {
51+
owner = "FDio";
52+
repo = "vpp";
53+
rev = "v${version}";
54+
hash = "sha256-AbdtH3ha/Bzj9tAkp4OhjRcUZilUEt+At0LukWN2LJU=";
55+
};
56+
57+
postPatch = ''
58+
patchShebangs scripts/
59+
substituteInPlace CMakeLists.txt \
60+
--replace "plugins tools/vppapigen tools/g2 tools/perftool cmake pkg" \
61+
"plugins tools/vppapigen tools/g2 tools/perftool cmake"
62+
'';
63+
64+
preConfigure = ''
65+
echo "${version}-nixos" > scripts/.version
66+
scripts/version
67+
'';
68+
69+
postConfigure = ''
70+
patchShebangs ../tools/
71+
patchShebangs ../vpp-api/
72+
'';
73+
74+
sourceRoot = "source/src";
75+
76+
enableParallelBuilding = true;
77+
env.NIX_CFLAGS_COMPILE = "-Wno-error -Wno-array-bounds -Wno-maybe-uninitialized";
78+
79+
cmakeFlags = [
80+
"-DVPP_PLATFORM=default"
81+
"-DVPP_LIBRARY_DIR=lib"
82+
] ++ lib.optional enableDpdk "-DVPP_USE_SYSTEM_DPDK=ON";
83+
84+
nativeBuildInputs = [
85+
cmake
86+
pkg-config
87+
] ++ lib.optional enableDpdk dpdk' ++ lib.optional enableRdma rdma-core'.dev;
88+
89+
buildInputs =
90+
[
91+
check
92+
openssl
93+
(python3.withPackages (ps: [ ps.ply ]))
94+
95+
subunit # vapi tests
96+
mbedtls_2 # tlsmbed plugin
97+
libpcap # bpf_trace_filter plugin
98+
99+
# linux-cp plugin
100+
libnl
101+
libmnl
102+
]
103+
++ lib.optionals enableDpdk [
104+
# dpdk plugin
105+
libelf
106+
jansson
107+
zlib
108+
]
109+
++ lib.optionals enableAfXdp [
110+
# af_xdp plugin
111+
libelf
112+
libbpf
113+
xdp-tools'
114+
];
115+
116+
passthru.updateScript = nix-update-script { };
117+
118+
meta = {
119+
description = "Fast, scalable layer 2-4 multi-platform network stack running in user space";
120+
homepage = "https://s3-docs.fd.io/vpp/${version}/";
121+
license = [ lib.licenses.asl20 ];
122+
maintainers = with lib.maintainers; [ romner-set ];
123+
mainProgram = "vpp";
124+
platforms = lib.platforms.linux;
125+
};
126+
}

pkgs/development/libraries/science/math/faiss/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ stdenv.mkDerivation {
105105
cp faiss/python/dist/*.whl "$dist/"
106106
'';
107107

108+
passthru = {
109+
inherit cudaSupport cudaPackages pythonSupport;
110+
};
111+
108112
meta = {
109113
description = "Library for efficient similarity search and clustering of dense vectors by Facebook Research";
110114
mainProgram = "demo_ivfpq_indexing";

0 commit comments

Comments
 (0)