Skip to content

Commit

Permalink
advancecomp: version number correctly embedded in binaries
Browse files Browse the repository at this point in the history
without this fix, binaries report their version number as "vnone"
which for example stops `image_optim` from using `advpng` (refuses
to use it not being able to tell what version number it has)
  • Loading branch information
snicket2100 committed Apr 13, 2020
1 parent 87d598e commit b1c14fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/tools/compression/advancecomp/default.nix
Expand Up @@ -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 ;
Expand Down

0 comments on commit b1c14fb

Please sign in to comment.