about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/taglib-extras/default.nix
blob: 5ba1a5e2018200aa8737280ba12aeb9045ce2c36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{lib, stdenv, fetchurl, cmake, taglib, zlib}:

stdenv.mkDerivation rec {
  pname = "taglib-extras";
  version = "1.0.1";
  src = fetchurl {
    url = "https://ftp.rz.uni-wuerzburg.de/pub/unix/kde/taglib-extras/${version}/src/${pname}-${version}.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";
    mainProgram = "taglib-extras-config";
    platforms = platforms.unix;
    license = licenses.lgpl2;
  };
}