Merge pull request #299377 from khaneliman/updateScripts

treewide: add passthru.updatescript
This commit is contained in:
a-n-n-a-l-e-e 2024-04-05 17:35:57 -07:00 committed by GitHub
commit a046804e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 47 additions and 12 deletions

View File

@ -63,6 +63,7 @@
, upowerSupport ? true , upowerSupport ? true
, wireplumberSupport ? true , wireplumberSupport ? true
, withMediaPlayer ? mprisSupport && false , withMediaPlayer ? mprisSupport && false
, nix-update-script
}: }:
let let
@ -189,6 +190,8 @@ stdenv.mkDerivation (finalAttrs: {
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}" --prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
''; '';
passthru.updateScript = nix-update-script { };
meta = { meta = {
homepage = "https://github.com/alexays/waybar"; homepage = "https://github.com/alexays/waybar";
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors"; description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";

View File

@ -3,6 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
, darwin , darwin
, nix-update-script
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -20,6 +21,8 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-HxSyGME95FWR5VwodmrMUX0jPlfE9SJV0WBbICuuTok="; cargoHash = "sha256-HxSyGME95FWR5VwodmrMUX0jPlfE9SJV0WBbICuuTok=";
passthru.updateScript = nix-update-script { };
meta = { meta = {
description = "A simple but detailed weather indicator for Waybar using wttr.in"; description = "A simple but detailed weather indicator for Waybar using wttr.in";
homepage = "https://github.com/bjesus/wttrbar"; homepage = "https://github.com/bjesus/wttrbar";

View File

@ -5,6 +5,7 @@
, overrideSDK , overrideSDK
, darwin , darwin
, testers , testers
, nix-update-script
}: }:
let let
stdenv = overrideSDK pkgs.stdenv "11.0"; stdenv = overrideSDK pkgs.stdenv "11.0";
@ -41,9 +42,13 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall runHook postInstall
''; '';
passthru.tests.version = testers.testVersion { passthru = {
package = finalAttrs.finalPackage; tests.version = testers.testVersion {
version = "borders-v${finalAttrs.version}"; package = finalAttrs.finalPackage;
version = "borders-v${finalAttrs.version}";
};
updateScript = nix-update-script { };
}; };
meta = { meta = {

View File

@ -1,6 +1,7 @@
{ lib { lib
, fetchgit , fetchgit
, buildGoModule , buildGoModule
, unstableGitUpdater
}: }:
buildGoModule { buildGoModule {
@ -20,6 +21,8 @@ buildGoModule {
"-w" "-w"
]; ];
passthru.updateScript = unstableGitUpdater { };
meta = with lib; { meta = with lib; {
description = "A waybar component/utility for displaying and controlling MPRIS2 compliant media players individually"; description = "A waybar component/utility for displaying and controlling MPRIS2 compliant media players individually";
homepage = "https://git.hrfee.pw/hrfee/waybar-mpris"; homepage = "https://git.hrfee.pw/hrfee/waybar-mpris";

View File

@ -1,6 +1,7 @@
{ lib { lib
, stdenvNoCC , stdenvNoCC
, fetchFromGitHub , fetchFromGitHub
, unstableGitUpdater
}: }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
@ -26,6 +27,8 @@ stdenvNoCC.mkDerivation {
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = unstableGitUpdater { };
meta = { meta = {
description = "Soothing pastel theme for SDDM based on corners theme."; description = "Soothing pastel theme for SDDM based on corners theme.";
homepage = "https://github.com/khaneliman/sddm-catppuccin-corners"; homepage = "https://github.com/khaneliman/sddm-catppuccin-corners";

View File

@ -11,6 +11,7 @@
, MediaRemote , MediaRemote
, SkyLight , SkyLight
, testers , testers
, nix-update-script
}: }:
let let
@ -56,9 +57,13 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall runHook postInstall
''; '';
passthru.tests.version = testers.testVersion { passthru = {
package = finalAttrs.finalPackage; tests.version = testers.testVersion {
version = "sketchybar-v${finalAttrs.version}"; package = finalAttrs.finalPackage;
version = "sketchybar-v${finalAttrs.version}";
};
updateScript = nix-update-script { };
}; };
meta = { meta = {

View File

@ -4,6 +4,7 @@
, Carbon , Carbon
, Cocoa , Cocoa
, testers , testers
, nix-update-script
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -34,9 +35,13 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
''; '';
passthru.tests.version = testers.testVersion { passthru = {
package = finalAttrs.finalPackage; tests.version = testers.testVersion {
version = "skhd-v${finalAttrs.version}"; package = finalAttrs.finalPackage;
version = "skhd-v${finalAttrs.version}";
};
updateScript = nix-update-script { };
}; };
meta = { meta = {

View File

@ -14,6 +14,7 @@
, util-linux , util-linux
, wrapQtAppsHook , wrapQtAppsHook
, enableSnapper ? true , enableSnapper ? true
, nix-update-script
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -78,6 +79,8 @@ stdenv.mkDerivation (finalAttrs: {
"--prefix PATH : ${runtimeDeps}" "--prefix PATH : ${runtimeDeps}"
]; ];
passthru.updateScript = nix-update-script { };
meta = { meta = {
description = "A GUI management tool to make managing a Btrfs filesystem easier"; description = "A GUI management tool to make managing a Btrfs filesystem easier";
homepage = "https://gitlab.com/btrfs-assistant/btrfs-assistant"; homepage = "https://gitlab.com/btrfs-assistant/btrfs-assistant";

View File

@ -3,6 +3,7 @@
, dooit , dooit
, python3 , python3
, testers , testers
, nix-update-script
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
@ -39,9 +40,13 @@ python3.pkgs.buildPythonApplication rec {
# No tests available # No tests available
doCheck = false; doCheck = false;
passthru.tests.version = testers.testVersion { passthru = {
package = dooit; tests.version = testers.testVersion {
command = "HOME=$(mktemp -d) dooit --version"; package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
}; };
meta = with lib; { meta = with lib; {