Skip to content

Commit a3c6281

Browse files
Merge master into staging-next
2 parents 83a5e12 + 10189ac commit a3c6281

File tree

5 files changed

+67
-14
lines changed

5 files changed

+67
-14
lines changed

pkgs/build-support/rust/test/import-cargo-lock/git-dependency-rev-non-workspace-nested-crate/default.nix

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
rustPlatform,
33
pkg-config,
44
openssl,
5+
zlib,
56
lib,
6-
darwin,
7-
stdenv,
87
}:
98
let
109
fs = lib.fileset;
@@ -26,13 +25,10 @@ rustPlatform.buildRustPackage {
2625
pkg-config
2726
];
2827

29-
buildInputs =
30-
[
31-
openssl
32-
]
33-
++ lib.optionals stdenv.hostPlatform.isDarwin [
34-
darwin.apple_sdk.frameworks.Security
35-
];
28+
buildInputs = [
29+
openssl
30+
zlib
31+
];
3632

3733
cargoLock = {
3834
lockFile = ./Cargo.lock;

pkgs/build-support/rust/test/import-cargo-lock/git-dependency-workspace-inheritance/want.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ keywords = [
1212
bar = "1.0.0"
1313

1414
[dependencies.foo]
15+
version = "1.0.0"
1516
features = [
1617
"cat",
1718
"meow",
1819
]
19-
version = "1.0.0"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
rustPlatform,
5+
pkg-config,
6+
openssl,
7+
nix-update-script,
8+
}:
9+
rustPlatform.buildRustPackage (finalAttrs: {
10+
pname = "sourcepawn-studio";
11+
version = "8.1.2";
12+
13+
src = fetchFromGitHub {
14+
owner = "Sarrus1";
15+
repo = "sourcepawn-studio";
16+
tag = "v${finalAttrs.version}";
17+
hash = "sha256-L/xgzWbhfRTvoRElKApb9JKXNfqJF+nfDk9Xo/qwL00=";
18+
};
19+
20+
useFetchCargoVendor = true;
21+
cargoHash = "sha256-5Zd3Stoi8AqsZE38pnilmjuRMgTPAGB+R8QI2JFZ7s4=";
22+
23+
nativeBuildInputs = [ pkg-config ];
24+
25+
buildInputs = [ openssl ];
26+
27+
checkFlags = [
28+
# requires rustup and rustfmt
29+
"--skip tests::sourcegen::generate_node_kinds"
30+
];
31+
32+
passthru.updateScript = nix-update-script { };
33+
34+
meta = {
35+
mainProgram = "sourcepawn-studio";
36+
description = "LSP implementation for the SourcePawn programming language written in Rust";
37+
homepage = "https://sarrus1.github.io/sourcepawn-studio/";
38+
changelog = "https://github.com/Sarrus1/sourcepawn-studio/releases/tag/v${finalAttrs.version}";
39+
license = lib.licenses.mit;
40+
maintainers = [ lib.maintainers.awwpotato ];
41+
};
42+
})

pkgs/by-name/xd/xdg-desktop-portal-cosmic/package.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
libgbm,
1111
pipewire,
1212
gst_all_1,
13+
cosmic-wallpapers,
1314
coreutils,
1415
nix-update-script,
1516
nixosTests,
@@ -59,8 +60,22 @@ rustPlatform.buildRustPackage (finalAttrs: {
5960
})
6061
];
6162

62-
# Also modifies the functionality by replacing 'false' with 'true' to enable the portal to start properly.
6363
postPatch = ''
64+
# While the `kate-hazen-COSMIC-desktop-wallpaper.png` image is present
65+
# in the `pop-wallpapers` package, we're using the Orion Nebula image
66+
# from NASA available in the `cosmic-wallpapers` package. Mainly because
67+
# the previous image was used in the GNOME shell extension and the
68+
# Orion Nebula image is widely used in the Rust-based COSMIC DE's
69+
# marketing materials. Another reason to use the Orion Nebula image
70+
# is that it's actually the default wallpaper as configured by the
71+
# `cosmic-bg` package's configuration in upstream [1] [2].
72+
#
73+
# [1]: https://github.com/pop-os/cosmic-bg/blob/epoch-1.0.0-alpha.6/config/src/lib.rs#L142
74+
# [2]: https://github.com/pop-os/cosmic-bg/blob/epoch-1.0.0-alpha.6/data/v1/all#L3
75+
substituteInPlace src/screenshot.rs src/widget/screenshot.rs \
76+
--replace-fail '/usr/share/backgrounds/pop/kate-hazen-COSMIC-desktop-wallpaper.png' '${cosmic-wallpapers}/share/backgrounds/cosmic/orion_nebula_nasa_heic0601a.jpg'
77+
78+
# Also modifies the functionality by replacing 'false' with 'true' to enable the portal to start properly.
6479
substituteInPlace data/org.freedesktop.impl.portal.desktop.cosmic.service \
6580
--replace-fail 'Exec=/bin/false' 'Exec=${lib.getExe' coreutils "true"}'
6681
'';

pkgs/by-name/ya/yazi/plugins/ouch/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
}:
66
mkYaziPlugin {
77
pname = "ouch.yazi";
8-
version = "0-unstable-2025-04-09";
8+
version = "0-unstable-2025-04-12";
99

1010
src = fetchFromGitHub {
1111
owner = "ndtoan96";
1212
repo = "ouch.yazi";
13-
rev = "73b7842bbccb12f15e1af54b8b06fc88f5efe82d";
14-
hash = "sha256-pdnQB9NSqCndqbeJLeSg2og2vBDg5zKx8EKWKVixqTM=";
13+
rev = "2496cd9ac2d1fb52597b22ae84f3af06c826a86d";
14+
hash = "sha256-OsNfR7rtnq+ceBTiFjbz+NFMSV/6cQ1THxEFzI4oPJk=";
1515
};
1616

1717
meta = {

0 commit comments

Comments
 (0)