nixpkgs/pkgs/development/libraries/codec2/default.nix

29 lines
776 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake }:
2018-08-12 23:30:53 +02:00
2021-01-03 11:07:52 +01:00
stdenv.mkDerivation rec {
2019-08-13 23:52:01 +02:00
pname = "codec2";
2021-10-20 16:59:22 +02:00
version = "1.0.1";
2018-08-12 23:30:53 +02:00
src = fetchFromGitHub {
owner = "drowe67";
repo = "codec2";
rev = "v${version}";
2021-10-20 16:59:22 +02:00
sha256 = "05xjsb67dzwncl2rnhg6fqih8krf38b7vmvzlsb7y9g6d1b085wg";
2018-08-12 23:30:53 +02:00
};
nativeBuildInputs = [ cmake ];
2021-10-20 16:59:22 +02: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 23:30:53 +02:00
description = "Speech codec designed for communications quality speech at low data rates";
homepage = "http://www.rowetel.com/blog/?page_id=452";
2021-02-01 13:35:18 +01:00
license = licenses.lgpl21Only;
2021-01-03 11:07:52 +01:00
platforms = platforms.unix;
2018-08-12 23:30:53 +02:00
maintainers = with maintainers; [ markuskowa ];
};
}