From 6977084aa998457e275f5f9f77ec8a40efac3d53 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 13 Feb 2025 16:20:13 +0100 Subject: [PATCH 1/2] x264: 0-unstable-2023-10-01 -> 0-unstable-2025-01-03 --- pkgs/by-name/x2/x264/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/x2/x264/package.nix b/pkgs/by-name/x2/x264/package.nix index de4a3d8d7843..6b8d8ccd7bd1 100644 --- a/pkgs/by-name/x2/x264/package.nix +++ b/pkgs/by-name/x2/x264/package.nix @@ -7,14 +7,14 @@ stdenv.mkDerivation rec { pname = "x264"; - version = "0-unstable-2023-10-01"; + version = "0-unstable-2025-01-03"; src = fetchFromGitLab { domain = "code.videolan.org"; owner = "videolan"; repo = pname; - rev = "31e19f92f00c7003fa115047ce50978bc98c3a0d"; - hash = "sha256-7/FaaDFmoVhg82BIhP3RbFq4iKGNnhviOPxl3/8PWCM="; + rev = "373697b467f7cd0af88f1e9e32d4f10540df4687"; + hash = "sha256-WWtS/UfKA4i1yakHErUnyT/3/+Wy2H5F0U0CmxW4ick="; }; patches = [ From 0d91765b9e122fed0bc5c96571a4b581f4cf87e0 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 13 Feb 2025 16:20:01 +0100 Subject: [PATCH 2/2] x264: reformat --- pkgs/by-name/x2/x264/package.nix | 38 ++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/x2/x264/package.nix b/pkgs/by-name/x2/x264/package.nix index 6b8d8ccd7bd1..11239d2cb2fe 100644 --- a/pkgs/by-name/x2/x264/package.nix +++ b/pkgs/by-name/x2/x264/package.nix @@ -1,8 +1,9 @@ -{ stdenv -, lib -, fetchFromGitLab -, nasm -, enableShared ? !stdenv.hostPlatform.isStatic +{ + stdenv, + lib, + fetchFromGitLab, + nasm, + enableShared ? !stdenv.hostPlatform.isStatic, }: stdenv.mkDerivation rec { @@ -29,18 +30,27 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - outputs = [ "out" "lib" "dev" ]; + outputs = [ + "out" + "lib" + "dev" + ]; - preConfigure = lib.optionalString stdenv.hostPlatform.isx86 '' - # `AS' is set to the binutils assembler, but we need nasm - unset AS - '' + lib.optionalString stdenv.hostPlatform.isAarch '' - export AS=$CC - ''; + preConfigure = + lib.optionalString stdenv.hostPlatform.isx86 '' + # `AS' is set to the binutils assembler, but we need nasm + unset AS + '' + + lib.optionalString stdenv.hostPlatform.isAarch '' + export AS=$CC + ''; - configureFlags = lib.optional enableShared "--enable-shared" + configureFlags = + lib.optional enableShared "--enable-shared" ++ lib.optional (!stdenv.hostPlatform.isi686) "--enable-pic" - ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--cross-prefix=${stdenv.cc.targetPrefix}"; + ++ lib.optional ( + stdenv.buildPlatform != stdenv.hostPlatform + ) "--cross-prefix=${stdenv.cc.targetPrefix}"; makeFlags = [ "BASHCOMPLETIONSDIR=$(out)/share/bash-completion/completions"