2022-09-22 12:36:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, mbelib, serialdv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsdcc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.9.4";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "dsdcc";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-EsjmU0LQOXnOoTFrnn63hAbvqbE6NVlSQTngot5Zuf4=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ mbelib serialdv ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_MBELIB=ON"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/libdsdcc.pc \
|
|
|
|
--replace '=''${exec_prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2022-09-22 12:36:57 +00: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-24 00:07:29 +00:00
|
|
|
platforms = platforms.unix;
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
}
|