2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, mbelib
|
|
|
|
, serialdv
|
2022-09-22 12:36:57 +00:00
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-09-22 12:36:57 +00:00
|
|
|
pname = "dsdcc";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.9.5";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "dsdcc";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-DMCk29O2Lmt2tjo6j5e4ZdZeDL3ZFUh66Sm6TGrIaeU=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
mbelib
|
|
|
|
serialdv
|
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_MBELIB=ON"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/lib/pkgconfig/libdsdcc.pc \
|
|
|
|
--replace '=''${exec_prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
2022-09-22 12:36:57 +00:00
|
|
|
description = "Digital Speech Decoder (DSD) rewritten as a C++ library";
|
|
|
|
homepage = "https://github.com/f4exb/dsdcc";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
mainProgram = "dsdccx";
|
|
|
|
maintainers = with lib.maintainers; [ alexwinter ];
|
|
|
|
platforms = lib.platforms.unix;
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|