Merge pull request #85129 from snicket2100/advancecomp-version-number-fix

advancecomp: version number correctly embedded in binaries
This commit is contained in:
Michael Raskin 2020-04-15 10:39:12 +00:00 committed by GitHub
commit 0f2c23301a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
})
];
# autover.sh relies on 'git describe', which obviously doesn't work as we're not cloning
# the full git repo. so we have to put the version number in `.version`, otherwise
# the binaries get built reporting "none" as their version number.
postPatch = ''
echo "${version}" >.version
'';
meta = with stdenv.lib; {
description = ''A set of tools to optimize deflate-compressed files'';
license = licenses.gpl3 ;