Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 855 B view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 autoreconfHook, 6 pkg-config, 7 libopenmpt, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "libopenmpt-modplug"; 12 version = "0.8.9.0-openmpt1"; 13 14 outputs = [ 15 "out" 16 "dev" 17 ]; 18 19 src = fetchurl { 20 url = "https://lib.openmpt.org/files/libopenmpt-modplug/libopenmpt-modplug-${version}.tar.gz"; 21 sha256 = "sha256-7M4aDuz9sLWCTKuJwnDc5ZWWKVosF8KwQyFez018T/c="; 22 }; 23 24 enableParallelBuilding = true; 25 26 nativeBuildInputs = [ 27 autoreconfHook 28 pkg-config 29 ]; 30 31 buildInputs = [ 32 libopenmpt 33 ]; 34 35 configureFlags = [ 36 "--enable-libmodplug" 37 ]; 38 39 meta = with lib; { 40 description = "Libmodplug emulation layer based on libopenmpt"; 41 homepage = "https://lib.openmpt.org/libopenmpt/"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ OPNA2608 ]; 44 platforms = platforms.unix; 45 }; 46}