diff --git a/host-specific/misaki/services.nix b/host-specific/misaki/services.nix index 3d475f2..065e2de 100644 --- a/host-specific/misaki/services.nix +++ b/host-specific/misaki/services.nix @@ -659,10 +659,10 @@ in user = "noah"; package = unstable.plex.override { plexRaw = unstable.plexRaw.overrideAttrs rec { - version = "1.43.3.10793-cd55560bb"; + version = "1.43.3.10828-00f62d37d"; src = unstable.fetchurl { url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; - sha256 = "id3bH6DV2NTX4oJvXTNeh0upBid3GUjAZouQkIojcuo="; + sha256 = "ieU0/7Vlrs2tsR1QhD2Cyk/pia4MfmAugx0Ec6Ook20="; }; }; }; diff --git a/overlays/codex.nix b/overlays/codex.nix index fbc1969..c5f242e 100644 --- a/overlays/codex.nix +++ b/overlays/codex.nix @@ -4,12 +4,12 @@ }: codex.overrideAttrs ( finalAttrs: prevAttrs: { - version = "0.144.3"; + version = "0.144.4"; src = pkgs.fetchFromGitHub { owner = "openai"; repo = "codex"; tag = "rust-v${finalAttrs.version}"; - hash = "sha256-TtOzSLByGf+8K5fs0b92wJ4e9tBZvFbJqfMtvSuGU58="; + hash = "sha256-NmYZxjNFPkRWN4rw+eeka10pJt6/oU3ZoLXBxj3dPRU="; }; cargoDeps = pkgs.rustPlatform.fetchCargoVendor { inherit (finalAttrs) src; diff --git a/overlays/scripts/update-plex-overlay b/overlays/scripts/update-plex similarity index 72% rename from overlays/scripts/update-plex-overlay rename to overlays/scripts/update-plex index 25bf488..d27caf1 100755 --- a/overlays/scripts/update-plex-overlay +++ b/overlays/scripts/update-plex @@ -2,7 +2,7 @@ flag e + -overlay=`{realpath `{dirname $0}^/../plex.nix} +services=`{realpath `{dirname $0}^/../../host-specific/misaki/services.nix} echo Fetching latest Plex version... version=`{curl -fsSL https://plex.tv/api/downloads/5.json | jq -r '.computer.Linux.version'} @@ -21,8 +21,8 @@ sha256=`{nix-prefetch-url --type sha256 $url} hash=`{nix hash to-sri --type sha256 $sha256 | sed 's/^sha256-//'} echo Hash: $hash -current_version=`{grep -oP '(?<=version = ")[^"]+(?=";)' $overlay | head -n1} -current_hash=`{grep -oP '(?<=sha256 = ")[^"]+(?=";)' $overlay | head -n1} +current_version=`{grep -oP '^ version = "\K[^"]+(?=";)' $services} +current_hash=`{grep -oP '^ sha256 = "\K[^"]+(?=";)' $services} if (~ $current_version $version) { echo Already on $version -- nothing to do. @@ -32,6 +32,6 @@ if (~ $current_version $version) { sed -i \ -e 's|version = "'$current_version'";|version = "'$version'";|' \ -e 's|sha256 = "'$current_hash'";|sha256 = "'$hash'";|' \ - $overlay + $services -echo Updated plex overlay: $current_version '->' $version +echo Updated Plex override: $current_version '->' $version