Unverified Commit 60852fa7 authored by Pratham Patel's avatar Pratham Patel Committed by GitHub
Browse files

cosmic-packages: add passthru.tests

parent c0507c50
Loading
Loading
Loading
Loading
+18 −7
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
  udev,
  xkeyboard_config,
  nix-update-script,
  nixosTests,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -64,7 +65,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
    )
  '';

  passthru.updateScript = nix-update-script {
  passthru = {
    tests = {
      inherit (nixosTests)
        cosmic
        cosmic-autologin
        cosmic-noxwayland
        cosmic-autologin-noxwayland
        ;
    };
    updateScript = nix-update-script {
      extraArgs = [
        "--version"
        "unstable"
@@ -72,6 +82,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
        "epoch-(.*)"
      ];
    };
  };

  meta = {
    homepage = "https://github.com/pop-os/cosmic-applets";
+18 −7
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  libcosmicAppHook,
  just,
  nix-update-script,
  nixosTests,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -43,7 +44,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
    substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)"
  '';

  passthru.updateScript = nix-update-script {
  passthru = {
    tests = {
      inherit (nixosTests)
        cosmic
        cosmic-autologin
        cosmic-noxwayland
        cosmic-autologin-noxwayland
        ;
    };
    updateScript = nix-update-script {
      extraArgs = [
        "--version"
        "unstable"
@@ -51,6 +61,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
        "epoch-(.*)"
      ];
    };
  };

  meta = {
    homepage = "https://github.com/pop-os/cosmic-applibrary";
+18 −7
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  just,
  nasm,
  nix-update-script,
  nixosTests,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -41,7 +42,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
    "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-bg"
  ];

  passthru.updateScript = nix-update-script {
  passthru = {
    tests = {
      inherit (nixosTests)
        cosmic
        cosmic-autologin
        cosmic-noxwayland
        cosmic-autologin-noxwayland
        ;
    };
    updateScript = nix-update-script {
      extraArgs = [
        "--version"
        "unstable"
@@ -49,6 +59,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
        "epoch-(.*)"
      ];
    };
  };

  meta = {
    homepage = "https://github.com/pop-os/cosmic-bg";
+18 −7
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
  udev,
  systemd,
  nix-update-script,
  nixosTests,

  useSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
}:
@@ -57,7 +58,16 @@ rustPlatform.buildRustPackage (finalAttrs: {

  dontCargoInstall = true;

  passthru.updateScript = nix-update-script {
  passthru = {
    tests = {
      inherit (nixosTests)
        cosmic
        cosmic-autologin
        cosmic-noxwayland
        cosmic-autologin-noxwayland
        ;
    };
    updateScript = nix-update-script {
      extraArgs = [
        "--version"
        "unstable"
@@ -65,6 +75,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
        "epoch-(.*)"
      ];
    };
  };

  meta = {
    homepage = "https://github.com/pop-os/cosmic-comp";
+10 −0
Original line number Diff line number Diff line
@@ -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";
Loading