blob: 6e3f7eee3c57847600a5ceb20d9c093e8be72fed (
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
|
{ lib, stdenv, fetchurl, texinfo, alsa-lib, libpulseaudio, CoreAudio }:
let
inherit (lib) optional optionalString;
in stdenv.mkDerivation rec {
pname = "libmikmod";
version = "3.3.11.1";
src = fetchurl {
url = "mirror://sourceforge/mikmod/libmikmod-${version}.tar.gz";
sha256 = "06bdnhb0l81srdzg6gn2v2ydhhaazza7rshrcj3q8dpqr3gn97dd";
};
buildInputs = [ texinfo ]
++ optional stdenv.hostPlatform.isLinux alsa-lib
++ optional stdenv.hostPlatform.isDarwin CoreAudio;
propagatedBuildInputs =
optional stdenv.hostPlatform.isLinux libpulseaudio;
outputs = [ "out" "dev" "man" ];
NIX_LDFLAGS = optionalString stdenv.hostPlatform.isLinux "-lasound";
postInstall = ''
moveToOutput bin/libmikmod-config "$dev"
'';
meta = with lib; {
description = "Library for playing tracker music module files";
mainProgram = "libmikmod-config";
homepage = "https://mikmod.shlomifish.org/";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ astsmtl lovek323 ];
platforms = platforms.unix;
longDescription = ''
A library for playing tracker music module files supporting many formats,
including MOD, S3M, IT and XM.
'';
};
}
|