cosmic-packages: add passthru.tests

This commit is contained in:
Pratham Patel 2025-04-09 02:29:30 +05:30 committed by GitHub
commit 60852fa717
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 365 additions and 118 deletions

View file

@ -14,6 +14,7 @@
udev,
xkeyboard_config,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -64,13 +65,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
)
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -6,6 +6,7 @@
libcosmicAppHook,
just,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -43,13 +44,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)"
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -7,6 +7,7 @@
just,
nasm,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -41,13 +42,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-bg"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -13,6 +13,7 @@
udev,
systemd,
nix-update-script,
nixosTests,
useSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
}:
@ -57,13 +58,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
dontCargoInstall = true;
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -16,6 +16,7 @@
wayland,
xorg,
vulkan-loader,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -84,6 +85,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
--suffix XDG_DATA_DIRS : "${cosmic-icons}/share"
'';
passthru.tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
meta = with lib; {
homepage = "https://github.com/pop-os/cosmic-edit";
description = "Text Editor for the COSMIC Desktop Environment";

View file

@ -7,6 +7,7 @@
libcosmicAppHook,
glib,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -80,13 +81,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
runHook postCheck
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -12,6 +12,7 @@
coreutils,
xkeyboard_config,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -69,13 +70,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
)
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -11,6 +11,7 @@
just,
bash,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -48,13 +49,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
substituteInPlace src/main.rs --replace-fail '"/bin/sh"' '"${lib.getExe' bash "sh"}"'
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -6,6 +6,7 @@
just,
libcosmicAppHook,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -41,13 +42,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
env."CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_RUSTFLAGS" = "--cfg tokio_unstable";
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -12,6 +12,7 @@
appstream-glib,
desktop-file-utils,
intltool,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -62,6 +63,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ wayland ]}"
'';
passthru.tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
meta = with lib; {
homepage = "https://github.com/pop-os/cosmic-notifications";
description = "Notifications for the COSMIC Desktop Environment";

View file

@ -6,6 +6,7 @@
pulseaudio,
udev,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -31,13 +32,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
env.POLKIT_AGENT_HELPER_1 = "/run/wrappers/bin/polkit-agent-helper-1";
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -6,6 +6,7 @@
libcosmicAppHook,
just,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -39,13 +40,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-panel"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -13,6 +13,7 @@
libglvnd,
libgbm,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -71,13 +72,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
libcosmicAppWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -4,6 +4,7 @@
fetchFromGitHub,
wayland-scanner,
nix-update-script,
nixosTests,
}:
stdenv.mkDerivation {
@ -20,11 +21,21 @@ stdenv.mkDerivation {
makeFlags = [ "PREFIX=${placeholder "out"}" ];
nativeBuildInputs = [ wayland-scanner ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"branch=HEAD"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"branch=HEAD"
];
};
};
meta = {

View file

@ -7,6 +7,7 @@
pkg-config,
wayland,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -42,13 +43,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-randr"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -5,6 +5,7 @@
rustPlatform,
just,
pkg-config,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -37,6 +38,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-screenshot"
];
passthru.tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
meta = with lib; {
homepage = "https://github.com/pop-os/cosmic-screenshot";
description = "Screenshot tool for the COSMIC Desktop Environment";

View file

@ -7,6 +7,7 @@
dbus,
stdenv,
xdg-desktop-portal-cosmic,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -62,7 +63,17 @@ rustPlatform.buildRustPackage (finalAttrs: {
fi
'';
passthru.providedSessions = [ "cosmic" ];
passthru = {
providedSessions = [ "cosmic" ];
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
};
meta = {
homepage = "https://github.com/pop-os/cosmic-session";

View file

@ -7,6 +7,7 @@
geoclue2-with-demo-agent,
libinput,
udev,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -38,6 +39,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
dontCargoInstall = true;
passthru.tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
meta = with lib; {
homepage = "https://github.com/pop-os/cosmic-settings-daemon";
description = "Settings Daemon for the COSMIC Desktop Environment";

View file

@ -18,6 +18,7 @@
cosmic-randr,
xkeyboard_config,
nix-update-script,
nixosTests,
}:
let
libcosmicAppHook' = (libcosmicAppHook.__spliced.buildHost or libcosmicAppHook).override {
@ -77,13 +78,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
)
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -10,6 +10,7 @@
flatpak,
openssl,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -51,6 +52,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"

View file

@ -10,6 +10,7 @@
freetype,
libinput,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -57,13 +58,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-term"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -9,6 +9,7 @@
libgbm,
udev,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -45,13 +46,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
"CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {

View file

@ -12,6 +12,7 @@
gst_all_1,
coreutils,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -71,13 +72,23 @@ rustPlatform.buildRustPackage (finalAttrs: {
"CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
passthru = {
tests = {
inherit (nixosTests)
cosmic
cosmic-autologin
cosmic-noxwayland
cosmic-autologin-noxwayland
;
};
updateScript = nix-update-script {
extraArgs = [
"--version"
"unstable"
"--version-regex"
"epoch-(.*)"
];
};
};
meta = {