![Emmanuel Rosa](/assets/img/avatar_default.png)
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
23 lines
673 B
Nix
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;
|
|
};
|
|
}
|