Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 alsa-lib, 6 cmake, 7 doxygen, 8 libX11, 9 libXcursor, 10 libXext, 11 libXft, 12 libXinerama, 13 libXrandr, 14 pkg-config, 15 zlib, 16}: 17 18stdenv.mkDerivation (finalAttrs: { 19 pname = "libopenshot-audio"; 20 version = "0.4.0"; 21 22 src = fetchFromGitHub { 23 owner = "OpenShot"; 24 repo = "libopenshot-audio"; 25 rev = "v${finalAttrs.version}"; 26 hash = "sha256-FTSITx6GoH1cGWeWNWtz1Ih+zozK8aA+u54Y4s0DylQ="; 27 }; 28 29 nativeBuildInputs = [ 30 cmake 31 doxygen 32 pkg-config 33 ]; 34 35 buildInputs = 36 lib.optionals stdenv.hostPlatform.isLinux [ 37 alsa-lib 38 ] 39 ++ ( 40 if stdenv.hostPlatform.isDarwin then 41 [ 42 zlib 43 ] 44 else 45 [ 46 libX11 47 libXcursor 48 libXext 49 libXft 50 libXinerama 51 libXrandr 52 ] 53 ); 54 55 strictDeps = true; 56 57 doCheck = true; 58 59 meta = { 60 homepage = "http://openshot.org/"; 61 description = "High-quality sound editing library"; 62 mainProgram = "openshot-audio-demo"; 63 longDescription = '' 64 OpenShot Audio Library (libopenshot-audio) is a program that allows the 65 high-quality editing and playback of audio, and is based on the amazing 66 JUCE library. 67 ''; 68 license = with lib.licenses; [ gpl3Plus ]; 69 maintainers = with lib.maintainers; [ ]; 70 platforms = lib.platforms.unix; 71 }; 72})