1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "libopenaptx"; 5 version = "0.2.1"; 6 7 src = fetchFromGitHub { 8 owner = "pali"; 9 repo = "libopenaptx"; 10 rev = version; 11 sha256 = "sha256-4FYKxw1U+efCfzKOPSDJH8a/dG0KV+anJDgxjqzD80k="; 12 }; 13 14 makeFlags = [ 15 "PREFIX=${placeholder "out"}" 16 # disable static builds 17 "ANAME=" 18 "AOBJECTS=" 19 "STATIC_UTILITIES=" 20 ]; 21 22 enableParallelBuilding = true; 23 24 meta = with lib; { 25 description = "Audio Processing Technology codec (aptX)"; 26 license = licenses.gpl3Plus; 27 homepage = "https://github.com/pali/libopenaptx"; 28 platforms = platforms.linux; 29 maintainers = with maintainers; [ orivej ]; 30 }; 31}