Merge master into staging-next

This commit is contained in:
nixpkgs-ci[bot] 2025-04-13 06:04:51 +00:00 committed by GitHub
commit a3c6281b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 67 additions and 14 deletions

View File

@ -2,9 +2,8 @@
rustPlatform, rustPlatform,
pkg-config, pkg-config,
openssl, openssl,
zlib,
lib, lib,
darwin,
stdenv,
}: }:
let let
fs = lib.fileset; fs = lib.fileset;
@ -26,12 +25,9 @@ rustPlatform.buildRustPackage {
pkg-config pkg-config
]; ];
buildInputs = buildInputs = [
[
openssl openssl
] zlib
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
]; ];
cargoLock = { cargoLock = {

View File

@ -12,8 +12,8 @@ keywords = [
bar = "1.0.0" bar = "1.0.0"
[dependencies.foo] [dependencies.foo]
version = "1.0.0"
features = [ features = [
"cat", "cat",
"meow", "meow",
] ]
version = "1.0.0"

View File

@ -0,0 +1,42 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "sourcepawn-studio";
version = "8.1.2";
src = fetchFromGitHub {
owner = "Sarrus1";
repo = "sourcepawn-studio";
tag = "v${finalAttrs.version}";
hash = "sha256-L/xgzWbhfRTvoRElKApb9JKXNfqJF+nfDk9Xo/qwL00=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-5Zd3Stoi8AqsZE38pnilmjuRMgTPAGB+R8QI2JFZ7s4=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
checkFlags = [
# requires rustup and rustfmt
"--skip tests::sourcegen::generate_node_kinds"
];
passthru.updateScript = nix-update-script { };
meta = {
mainProgram = "sourcepawn-studio";
description = "LSP implementation for the SourcePawn programming language written in Rust";
homepage = "https://sarrus1.github.io/sourcepawn-studio/";
changelog = "https://github.com/Sarrus1/sourcepawn-studio/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.awwpotato ];
};
})

View File

@ -10,6 +10,7 @@
libgbm, libgbm,
pipewire, pipewire,
gst_all_1, gst_all_1,
cosmic-wallpapers,
coreutils, coreutils,
nix-update-script, nix-update-script,
nixosTests, nixosTests,
@ -59,8 +60,22 @@ rustPlatform.buildRustPackage (finalAttrs: {
}) })
]; ];
# Also modifies the functionality by replacing 'false' with 'true' to enable the portal to start properly.
postPatch = '' postPatch = ''
# While the `kate-hazen-COSMIC-desktop-wallpaper.png` image is present
# in the `pop-wallpapers` package, we're using the Orion Nebula image
# from NASA available in the `cosmic-wallpapers` package. Mainly because
# the previous image was used in the GNOME shell extension and the
# Orion Nebula image is widely used in the Rust-based COSMIC DE's
# marketing materials. Another reason to use the Orion Nebula image
# is that it's actually the default wallpaper as configured by the
# `cosmic-bg` package's configuration in upstream [1] [2].
#
# [1]: https://github.com/pop-os/cosmic-bg/blob/epoch-1.0.0-alpha.6/config/src/lib.rs#L142
# [2]: https://github.com/pop-os/cosmic-bg/blob/epoch-1.0.0-alpha.6/data/v1/all#L3
substituteInPlace src/screenshot.rs src/widget/screenshot.rs \
--replace-fail '/usr/share/backgrounds/pop/kate-hazen-COSMIC-desktop-wallpaper.png' '${cosmic-wallpapers}/share/backgrounds/cosmic/orion_nebula_nasa_heic0601a.jpg'
# Also modifies the functionality by replacing 'false' with 'true' to enable the portal to start properly.
substituteInPlace data/org.freedesktop.impl.portal.desktop.cosmic.service \ substituteInPlace data/org.freedesktop.impl.portal.desktop.cosmic.service \
--replace-fail 'Exec=/bin/false' 'Exec=${lib.getExe' coreutils "true"}' --replace-fail 'Exec=/bin/false' 'Exec=${lib.getExe' coreutils "true"}'
''; '';

View File

@ -5,13 +5,13 @@
}: }:
mkYaziPlugin { mkYaziPlugin {
pname = "ouch.yazi"; pname = "ouch.yazi";
version = "0-unstable-2025-04-09"; version = "0-unstable-2025-04-12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ndtoan96"; owner = "ndtoan96";
repo = "ouch.yazi"; repo = "ouch.yazi";
rev = "73b7842bbccb12f15e1af54b8b06fc88f5efe82d"; rev = "2496cd9ac2d1fb52597b22ae84f3af06c826a86d";
hash = "sha256-pdnQB9NSqCndqbeJLeSg2og2vBDg5zKx8EKWKVixqTM="; hash = "sha256-OsNfR7rtnq+ceBTiFjbz+NFMSV/6cQ1THxEFzI4oPJk=";
}; };
meta = { meta = {