about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/audio/libopenmpt-modplug/default.nix
blob: 8d5ef86a89671ef5687e0277391ba334582d411b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv
, lib
, fetchurl
, autoreconfHook
, pkg-config
, libopenmpt
}:

stdenv.mkDerivation rec {
  pname = "libopenmpt-modplug";
  version = "0.8.9.0-openmpt1";

  outputs = [ "out" "dev" ];

  src = fetchurl {
    url = "https://lib.openmpt.org/files/libopenmpt-modplug/libopenmpt-modplug-${version}.tar.gz";
    sha256 = "sha256-7M4aDuz9sLWCTKuJwnDc5ZWWKVosF8KwQyFez018T/c=";
  };

  enableParallelBuilding = true;

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    libopenmpt
  ];

  configureFlags = [
    "--enable-libmodplug"
  ];

  meta = with lib; {
    description = "A libmodplug emulation layer based on libopenmpt";
    homepage = "https://lib.openmpt.org/libopenmpt/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ OPNA2608 ];
    platforms = platforms.unix;
  };
}