3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/codec2/default.nix

29 lines
768 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake }:
2018-08-12 22:30:53 +01:00
2021-01-03 10:07:52 +00:00
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "codec2";
2021-12-28 22:38:59 +00:00
version = "1.0.3";
2018-08-12 22:30:53 +01:00
src = fetchFromGitHub {
owner = "drowe67";
repo = "codec2";
rev = "v${version}";
2021-12-28 22:38:59 +00:00
hash = "sha256-2/Ef5cEe7Kr3a/D8u4BgvTQM6M6vglXsF+ccstFHDUw=";
2018-08-12 22:30:53 +01:00
};
nativeBuildInputs = [ cmake ];
2021-10-20 15:59:22 +01:00
# Swap keyword order to satisfy SWIG parser
postFixup = ''
sed -r -i 's/(\<_Complex)(\s+)(float|double)/\3\2\1/' $out/include/$pname/freedv_api.h
'';
meta = with lib; {
2018-08-12 22:30:53 +01:00
description = "Speech codec designed for communications quality speech at low data rates";
homepage = "https://www.rowetel.com/codec2.html";
2021-02-01 12:35:18 +00:00
license = licenses.lgpl21Only;
2021-01-03 10:07:52 +00:00
platforms = platforms.unix;
2018-08-12 22:30:53 +01:00
maintainers = with maintainers; [ markuskowa ];
};
}