2022-04-17 13:27:49 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, mbelib, serialdv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsdcc";
|
|
|
|
version = "1.9.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "dsdcc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-8lO2c4fkQCaVO8IM05+Rdpo6oMxoEIObBm0y08i+/0k=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ mbelib serialdv ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_MBELIB=ON"
|
|
|
|
];
|
|
|
|
|
2022-09-28 17:40:10 +02:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/libdsdcc.pc \
|
|
|
|
--replace '=''${exec_prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2022-04-17 13:27:49 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Digital Speech Decoder (DSD) rewritten as a C++ library";
|
|
|
|
homepage = "https://github.com/f4exb/dsdcc";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ alexwinter ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|