summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ds/dsf2flac/package.nix
blob: f690db195c8b50dd9c11deeb4b7b233d9a38ff48 (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
50
51
52
53
54
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoreconfHook,
  boost,
  flac,
  id3lib,
  pkg-config,
  taglib,
  zlib,
}:

stdenv.mkDerivation {
  pname = "dsf2flac";
  version = "0-unstable-2025-01-31";

  src = fetchFromGitHub {
    owner = "hank";
    repo = "dsf2flac";
    rev = "39d43901ce27d0cc53b5a4eb277a65082e9906f0";
    hash = "sha256-I8BupNE49+9oExR/GhoZUVbCHhDJEz3hhvQnbi8ZVGs=";
  };

  buildInputs = [
    boost
    flac
    id3lib
    taglib
    zlib
  ];

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  enableParallelBuilding = true;

  preConfigure = ''
    export LIBS="$LIBS -lz -lboost_timer"
  '';

  configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];

  meta = {
    description = "DSD to FLAC transcoding tool";
    homepage = "https://github.com/hank/dsf2flac";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ artemist ];
    platforms = [ "x86_64-linux" ];
    mainProgram = "dsf2flac";
  };
}