2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, boost, flac, id3lib, pkg-config
|
2019-12-02 17:45:42 +00:00
|
|
|
, taglib, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsf2flac";
|
2022-05-09 15:47:53 +00:00
|
|
|
version = "unstable-2021-07-31";
|
2019-12-02 17:45:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hank";
|
|
|
|
repo = pname;
|
2022-05-09 15:47:53 +00:00
|
|
|
rev = "6b109cd276ec7c7901f96455c77cf2d2ebfbb181";
|
|
|
|
sha256 = "sha256-VlXfywgYhI2QuGQvpD33BspTTgT0jOKUV3gENq4HiBU=";
|
2019-12-02 17:45:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ boost flac id3lib taglib zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LIBS="$LIBS -lz"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-02 17:45:42 +00:00
|
|
|
description = "A DSD to FLAC transcoding tool";
|
|
|
|
homepage = "https://github.com/hank/dsf2flac";
|
|
|
|
license = licenses.gpl2;
|
2022-05-09 15:47:53 +00:00
|
|
|
maintainers = with maintainers; [ artemist ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-12-02 17:45:42 +00:00
|
|
|
};
|
|
|
|
}
|