From 8f3f47dd5f2bc0f50983eb02fc5b52944b3fd28a Mon Sep 17 00:00:00 2001 From: Clara Rostock Date: Fri, 19 Jun 2026 00:48:34 +0200 Subject: [PATCH 1/4] svt-av1-hdr: init at 4.1.0 --- pkgs/by-name/sv/svt-av1-hdr/package.nix | 82 +++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 pkgs/by-name/sv/svt-av1-hdr/package.nix diff --git a/pkgs/by-name/sv/svt-av1-hdr/package.nix b/pkgs/by-name/sv/svt-av1-hdr/package.nix new file mode 100644 index 000000000000..a644b96da539 --- /dev/null +++ b/pkgs/by-name/sv/svt-av1-hdr/package.nix @@ -0,0 +1,82 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + yasm, + cpuinfo, + libdovi, + hdr10plus, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "svt-av1-hdr"; + version = "4.1.0"; + + src = fetchFromGitHub { + owner = "juliobbv-p"; + repo = "svt-av1-hdr"; + tag = "v${finalAttrs.version}"; + hash = "sha256-n66RPDTfBsPCR/4y8dpU3Au1WZHpkpln899e2+LKxto="; + }; + + cmakeBuildType = "Release"; + + cmakeFlags = + lib.mapAttrsToList + ( + n: v: + lib.cmakeOptionType (builtins.typeOf v) n ( + if builtins.isBool v then lib.boolToString v else toString v + ) + ) + { + LIBDOVI_FOUND = true; + LIBHDR10PLUS_RS_FOUND = true; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ] + ++ lib.optionals stdenv.hostPlatform.isx86_64 [ + yasm + ]; + + buildInputs = [ + libdovi + hdr10plus + ] + ++ lib.optionals stdenv.hostPlatform.isx86_64 [ + cpuinfo + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://github.com/juliobbv-p/svt-av1-hdr"; + description = "Scalable Video Technology AV1 Encoder and Decoder"; + + longDescription = '' + SVT-AV1-HDR is the Scalable Video Technology for AV1 (SVT-AV1 Encoder) + with perceptual enhancements for psychovisually optimal SDR and HDR AV1 encoding. + The goal is to create the best encoding implementation for perceptual quality with AV1, + with additional optimizations for HDR encoding and content with film grain. + ''; + + license = with lib.licenses; [ + aom + bsd3 + ]; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ + claraphyll + ]; + mainProgram = "SvtAv1EncApp"; + }; + + strictDeps = true; + __structuredAttrs = true; +}) From a6eb38554d7952c2d2dbf7f6442f09494817ed6a Mon Sep 17 00:00:00 2001 From: Clara Rostock Date: Fri, 19 Jun 2026 02:00:08 +0200 Subject: [PATCH 2/4] svt-av1-hdr: add ccicnce113424 as maintainer --- pkgs/by-name/sv/svt-av1-hdr/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/sv/svt-av1-hdr/package.nix b/pkgs/by-name/sv/svt-av1-hdr/package.nix index a644b96da539..52542ea93341 100644 --- a/pkgs/by-name/sv/svt-av1-hdr/package.nix +++ b/pkgs/by-name/sv/svt-av1-hdr/package.nix @@ -72,6 +72,7 @@ stdenv.mkDerivation (finalAttrs: { ]; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ + ccicnce113424 claraphyll ]; mainProgram = "SvtAv1EncApp"; From f7130d185e7a500d987c2212c8d5129036e2d623 Mon Sep 17 00:00:00 2001 From: Clara Rostock Date: Tue, 23 Jun 2026 17:06:25 +0200 Subject: [PATCH 3/4] svt-av1-hdr: refactor --- pkgs/by-name/sv/svt-av1-hdr/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sv/svt-av1-hdr/package.nix b/pkgs/by-name/sv/svt-av1-hdr/package.nix index 52542ea93341..0357e71cd080 100644 --- a/pkgs/by-name/sv/svt-av1-hdr/package.nix +++ b/pkgs/by-name/sv/svt-av1-hdr/package.nix @@ -22,6 +22,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-n66RPDTfBsPCR/4y8dpU3Au1WZHpkpln899e2+LKxto="; }; + strictDeps = true; + __structuredAttrs = true; + cmakeBuildType = "Release"; cmakeFlags = @@ -77,7 +80,4 @@ stdenv.mkDerivation (finalAttrs: { ]; mainProgram = "SvtAv1EncApp"; }; - - strictDeps = true; - __structuredAttrs = true; }) From 42c8948227547c6a5d0fcfabfe7ab87f2f004247 Mon Sep 17 00:00:00 2001 From: Clara Rostock Date: Tue, 23 Jun 2026 17:10:58 +0200 Subject: [PATCH 4/4] svt-av1-psyex: remove --- pkgs/by-name/sv/svt-av1-psyex/package.nix | 77 ----------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 pkgs/by-name/sv/svt-av1-psyex/package.nix diff --git a/pkgs/by-name/sv/svt-av1-psyex/package.nix b/pkgs/by-name/sv/svt-av1-psyex/package.nix deleted file mode 100644 index ebfb5017611b..000000000000 --- a/pkgs/by-name/sv/svt-av1-psyex/package.nix +++ /dev/null @@ -1,77 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - cmake, - yasm, - cpuinfo, - libdovi, - hdr10plus, - nix-update-script, -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "svt-av1-psyex"; - version = "3.0.2-B"; - - src = fetchFromGitHub { - owner = "BlueSwordM"; - repo = "svt-av1-psyex"; - tag = "v${finalAttrs.version}"; - hash = "sha256-klfrbow8UtpIPwIgt8tK7FP7Jp6In9nxfOZrdi1PsHo="; - }; - - cmakeBuildType = "Release"; - - cmakeFlags = - lib.mapAttrsToList - ( - n: v: - lib.cmakeOptionType (builtins.typeOf v) n ( - if builtins.isBool v then lib.boolToString v else toString v - ) - ) - { - LIBDOVI_FOUND = true; - LIBHDR10PLUS_RS_FOUND = true; - }; - - nativeBuildInputs = [ - cmake - ] - ++ lib.optionals stdenv.hostPlatform.isx86_64 [ - yasm - ]; - - buildInputs = [ - libdovi - hdr10plus - ] - ++ lib.optionals stdenv.hostPlatform.isx86_64 [ - cpuinfo - ]; - - passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; }; - - meta = { - homepage = "https://github.com/BlueSwordM/svt-av1-psyex"; - description = "Scalable Video Technology AV1 Encoder and Decoder"; - - longDescription = '' - SVT-AV1-PSYEX is the Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) - with perceptual enhancements for psychovisually optimal AV1 encoding. - The goal is to create the best encoding implementation for perceptual quality with AV1. - ''; - - license = with lib.licenses; [ - aom - bsd3 - ]; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ - johnrtitor - ccicnce113424 - ]; - mainProgram = "SvtAv1EncApp"; - }; -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 6845ce9ff612..e05bc268b4d8 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2128,6 +2128,7 @@ mapAliases { svnfs = throw "'svnfs' has been removed as it was unmaintained upstream"; # Added 2026-06-01 svox = warnAlias "'svox' has been renamed to/replaced by 'picotts'" picotts; # Added 2026-03-04 svt-av1-psy = warnAlias "'svt-av1-psy' has been replaced by 'svt-av1-psyex'" svt-av1-psyex; # Added 2026-01-10 + svt-av1-psyex = throw "'svt-av1-psyex' has been removed. Upstream suggests 'svt-av1-hdr' instead"; # Converted to throw 2026-06-23 swagger-cli = throw "'swagger-cli' has been removed as it is broken and unmaintained. Upstream suggests using 'redocly' instead"; # Added 2026-04-23 swig4 = throw "'swig4' has been renamed to/replaced by 'swig'"; # Converted to throw 2025-10-27 swiProlog = throw "'swiProlog' has been renamed to/replaced by 'swi-prolog'"; # Converted to throw 2025-10-27