Files
nixpkgs/pkgs/applications/audio/codecserver/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
863 B
Nix

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