2022-04-17 13:27:49 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, mbelib, serialdv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsdcc";
|
2023-05-06 08:37:10 +02:00
|
|
|
version = "1.9.4";
|
2022-04-17 13:27:49 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "dsdcc";
|
|
|
|
rev = "v${version}";
|
2023-05-06 08:37:10 +02:00
|
|
|
sha256 = "sha256-EsjmU0LQOXnOoTFrnn63hAbvqbE6NVlSQTngot5Zuf4=";
|
2022-04-17 13:27:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2023-03-12 21:21:49 +01:00
|
|
|
platforms = platforms.unix;
|
2022-04-17 13:27:49 +02:00
|
|
|
};
|
|
|
|
}
|