From 80f8c652832aef407c85a069c06ccdc3d0bfb931 Mon Sep 17 00:00:00 2001 From: Maximilian Wende Date: Wed, 9 Mar 2022 12:33:10 +0100 Subject: astc-encoder: patch files to use a fixed build year The build year is included in the help output. See the discussion in #162133. --- pkgs/tools/graphics/astc-encoder/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/tools/graphics') diff --git a/pkgs/tools/graphics/astc-encoder/default.nix b/pkgs/tools/graphics/astc-encoder/default.nix index 09b442d59d9..cecc52b9df2 100644 --- a/pkgs/tools/graphics/astc-encoder/default.nix +++ b/pkgs/tools/graphics/astc-encoder/default.nix @@ -46,6 +46,12 @@ gccStdenv.mkDerivation rec { "-DCMAKE_BUILD_TYPE=Release" ]; + # Set a fixed build year to display within help output (otherwise, it would be 1980) + postPatch = '' + substituteInPlace Source/cmake_core.cmake \ + --replace 'string(TIMESTAMP astcencoder_YEAR "%Y")' 'set(astcencoder_YEAR "2022")' + ''; + # Link binaries into environment and provide 'astcenc' link postInstall = '' mv $out/astcenc $out/bin -- cgit 1.4.1