Merge pull request #163436 from dasisdormax/astc-encoder-3.4
astc-encoder: 3.3 -> 3.4
This commit is contained in:
commit
d8cbebf2e9
1 changed files with 8 additions and 2 deletions
|
@ -31,13 +31,13 @@ with rec {
|
|||
|
||||
gccStdenv.mkDerivation rec {
|
||||
pname = "astc-encoder";
|
||||
version = "3.3";
|
||||
version = "3.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ARM-software";
|
||||
repo = "astc-encoder";
|
||||
rev = version;
|
||||
sha256 = "sha256-5E26QzphF5HwVTH+92S4rT3IUAp9ravT/wxsmaH9IAM=";
|
||||
sha256 = "sha256-blOfc/H64UErjPjkdZQNp2H/Hw57RbQRFBcUo/C2b0Q=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue