Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config 2, mbelib, serialdv 3}: 4 5stdenv.mkDerivation rec { 6 pname = "dsdcc"; 7 version = "1.9.4"; 8 9 src = fetchFromGitHub { 10 owner = "f4exb"; 11 repo = "dsdcc"; 12 rev = "v${version}"; 13 sha256 = "sha256-EsjmU0LQOXnOoTFrnn63hAbvqbE6NVlSQTngot5Zuf4="; 14 }; 15 16 nativeBuildInputs = [ cmake pkg-config ]; 17 buildInputs = [ mbelib serialdv ]; 18 19 cmakeFlags = [ 20 "-DUSE_MBELIB=ON" 21 ]; 22 23 postFixup = '' 24 substituteInPlace "$out"/lib/pkgconfig/libdsdcc.pc \ 25 --replace '=''${exec_prefix}//' '=/' 26 ''; 27 28 meta = with lib; { 29 description = "Digital Speech Decoder (DSD) rewritten as a C++ library"; 30 homepage = "https://github.com/f4exb/dsdcc"; 31 license = licenses.gpl3; 32 maintainers = with maintainers; [ alexwinter ]; 33 platforms = platforms.unix; 34 }; 35}