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