Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 faad2, 8 fftwFloat, 9 zlib, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "dab_lib"; 14 version = "unstable-2023-03-02"; 15 16 src = fetchFromGitHub { 17 owner = "JvanKatwijk"; 18 repo = "dab-cmdline"; 19 rev = "d615e2ba085f91dc7764cc28dfc4c9df49ee1a93"; 20 hash = "sha256-KSkOg0a5iq+13kClQqj+TaEP/PsLUrm8bMmiJEAZ+C4="; 21 }; 22 23 sourceRoot = "${finalAttrs.src.name}/library"; 24 25 nativeBuildInputs = [ 26 cmake 27 pkg-config 28 ]; 29 buildInputs = [ 30 faad2 31 fftwFloat 32 zlib 33 ]; 34 35 meta = with lib; { 36 description = "DAB/DAB+ decoding library"; 37 homepage = "https://github.com/JvanKatwijk/dab-cmdline"; 38 license = licenses.gpl2; 39 maintainers = with maintainers; [ alexwinter ]; 40 platforms = platforms.unix; 41 }; 42})