summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libid3tag/package.nix
blob: 51cae4dba3e01b783e6ddcc8127343995ae8585d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  stdenv,
  fetchFromCodeberg,
  cmake,
  gperf,
  zlib,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libid3tag";
  version = "0.16.4";

  outputs = [
    "out"
    "dev"
  ];

  src = fetchFromCodeberg {
    owner = "tenacityteam";
    repo = "libid3tag";
    rev = finalAttrs.version;
    hash = "sha256-v3tvZmQE6G8Xsk+eluVtlou0Nyhyaisv0UclivQBi28=";
  };

  postPatch = ''
    substituteInPlace packaging/id3tag.pc.in \
      --replace-fail "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "@CMAKE_INSTALL_FULL_LIBDIR@"
  '';

  strictDeps = true;

  nativeBuildInputs = [
    cmake
    gperf
  ];

  buildInputs = [
    zlib
  ];

  meta = {
    description = "ID3 tag manipulation library";
    homepage = "https://codeberg.org/tenacityteam/libid3tag";
    license = lib.licenses.gpl2Plus;
    maintainers = [ ];
    platforms = lib.platforms.unix;
  };
})