@@ -0,0 +1,34 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, boost, flac, id3lib, pkg-config
2+, taglib, zlib }:
3+
4+stdenv.mkDerivation rec {
5+ pname = "dsf2flac";
6+ version = "unstable-2018-01-02";
7+
8+ src = fetchFromGitHub {
9+ owner = "hank";
10+ repo = pname;
11+ rev = "b0cf5aa6ddc60df9bbfeed25548e443c99f5cb16";
12+ sha256 = "15j5f82v7lgs0fkgyyynl82cb1rsxyr9vw3bpzra63nacbi9g8lc";
13+ };
14+
15+ buildInputs = [ boost flac id3lib taglib zlib ];
16+
17+ nativeBuildInputs = [ autoreconfHook pkg-config ];
18+
19+ enableParallelBuilding = true;
20+
21+ preConfigure = ''
22+ export LIBS="$LIBS -lz"
23+ '';
24+
25+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
26+
27+ meta = with stdenv.lib; {
28+ description = "A DSD to FLAC transcoding tool";
29+ homepage = "https://github.com/hank/dsf2flac";
30+ license = licenses.gpl2;
31+ maintainers = with maintainers; [ dmrauh ];
32+ platforms = with platforms; linux;
33+ };
34+}