nixpkgs/pkgs/development/libraries/taglib-extras/default.nix
Emmanuel Rosa 281c5413df taglib-extras: add missing dependency zlib
This change adds zlib as a dependency to address the error:

```
/nix/store/5xyjd2qiily84lcv2w2grmwsb8r1hqpr-binutils-2.35.1/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[2]: *** [taglib-extras/CMakeFiles/tag-extras.dir/build.make:208:
taglib-extras/libtag-extras.so.1.0.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:154:
taglib-extras/CMakeFiles/tag-extras.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
builder for
'/nix/store/w1ac3b6v5yfblbnqzyxa6y4738frlmvr-taglib-extras-1.0.1.drv'
failed with exit code 2
```

ZHF: #122042
2021-05-15 14:15:09 +07:00

23 lines
673 B
Nix

{lib, stdenv, fetchurl, cmake, taglib, zlib}:
stdenv.mkDerivation rec {
name = "taglib-extras-1.0.1";
src = fetchurl {
url = "http://ftp.rz.uni-wuerzburg.de/pub/unix/kde/taglib-extras/1.0.1/src/${name}.tar.gz";
sha256 = "0cln49ws9svvvals5fzxjxlzqm0fzjfymn7yfp4jfcjz655nnm7y";
};
buildInputs = [ taglib ];
nativeBuildInputs = [ cmake zlib ];
# Workaround for upstream bug https://bugs.kde.org/show_bug.cgi?id=357181
preConfigure = ''
sed -i -e 's/STRLESS/VERSION_LESS/g' cmake/modules/FindTaglib.cmake
'';
meta = with lib; {
description = "Additional taglib plugins";
platforms = platforms.unix;
license = licenses.lgpl2;
};
}