depot/third_party/nixpkgs/pkgs/applications/audio/codecserver/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

41 lines
871 B
Nix

{ stdenv, lib, fetchFromGitHub
, cmake, pkg-config, udev, protobuf
}:
stdenv.mkDerivation rec {
pname = "codecserver";
version = "0.2.0";
src = fetchFromGitHub {
owner = "jketterl";
repo = pname;
rev = version;
sha256 = "sha256-JzaVBFl3JsFNDm4gy1qOKA9uAjUjNeMiI39l5gfH0aE=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
udev
];
propagatedBuildInputs = [ protobuf ];
postFixup = ''
substituteInPlace "$out"/lib/pkgconfig/codecserver.pc \
--replace '=''${prefix}//' '=/' \
--replace '=''${exec_prefix}//' '=/'
'';
meta = with lib; {
homepage = "https://github.com/jketterl/codecserver";
description = "Modular audio codec server";
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = teams.c3d2.members;
mainProgram = "codecserver";
};
}