Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 921 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 scons, 7 rubberband, 8 boost, 9 libjack2, 10 liblo, 11 libsamplerate, 12 libsndfile, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "klick"; 17 version = "0.14.2"; 18 19 src = fetchFromGitHub { 20 owner = "Allfifthstuning"; 21 repo = "klick"; 22 rev = version; 23 hash = "sha256-jHyeVCmyy9ipbVaF7GSW19DOVpU9EQJoLcGq9uos+eY="; 24 }; 25 26 nativeBuildInputs = [ 27 pkg-config 28 scons 29 ]; 30 buildInputs = [ 31 rubberband 32 libsamplerate 33 libsndfile 34 liblo 35 libjack2 36 boost 37 ]; 38 39 preBuild = '' 40 substituteInPlace SConstruct \ 41 --replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config" 42 ''; 43 44 prefixKey = "PREFIX="; 45 46 meta = { 47 homepage = "https://das.nasophon.de/klick/"; 48 description = "Advanced command-line metronome for JACK"; 49 license = lib.licenses.gpl2Plus; 50 platforms = lib.platforms.linux; 51 mainProgram = "klick"; 52 }; 53}