1{ stdenv, lib, fetchFromGitHub
2, cmake, pkg-config, udev, protobuf
3}:
4
5stdenv.mkDerivation rec {
6 pname = "codecserver";
7 version = "0.2.0";
8
9 src = fetchFromGitHub {
10 owner = "jketterl";
11 repo = pname;
12 rev = version;
13 sha256 = "sha256-JzaVBFl3JsFNDm4gy1qOKA9uAjUjNeMiI39l5gfH0aE=";
14 };
15
16 nativeBuildInputs = [
17 cmake
18 pkg-config
19 ];
20
21 buildInputs = [
22 udev
23 ];
24
25 propagatedBuildInputs = [ protobuf ];
26
27 postFixup = ''
28 substituteInPlace "$out"/lib/pkgconfig/codecserver.pc \
29 --replace '=''${prefix}//' '=/' \
30 --replace '=''${exec_prefix}//' '=/'
31 '';
32
33 meta = with lib; {
34 homepage = "https://github.com/jketterl/codecserver";
35 description = "Modular audio codec server";
36 license = licenses.gpl3Only;
37 platforms = platforms.unix;
38 maintainers = teams.c3d2.members;
39 mainProgram = "codecserver";
40 };
41}