Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 875 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 udev, 8 protobuf, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "codecserver"; 13 version = "0.2.0"; 14 15 src = fetchFromGitHub { 16 owner = "jketterl"; 17 repo = pname; 18 rev = version; 19 sha256 = "sha256-JzaVBFl3JsFNDm4gy1qOKA9uAjUjNeMiI39l5gfH0aE="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 udev 29 ]; 30 31 propagatedBuildInputs = [ protobuf ]; 32 33 postFixup = '' 34 substituteInPlace "$out"/lib/pkgconfig/codecserver.pc \ 35 --replace '=''${prefix}//' '=/' \ 36 --replace '=''${exec_prefix}//' '=/' 37 ''; 38 39 meta = with lib; { 40 homepage = "https://github.com/jketterl/codecserver"; 41 description = "Modular audio codec server"; 42 license = licenses.gpl3Only; 43 platforms = platforms.unix; 44 teams = [ teams.c3d2 ]; 45 mainProgram = "codecserver"; 46 }; 47}