nixpkgs/pkgs/development/libraries/libmikmod/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

42 lines
1.1 KiB
Nix

{ 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.isLinux alsa-lib
++ optional stdenv.isDarwin CoreAudio;
propagatedBuildInputs =
optional stdenv.isLinux libpulseaudio;
outputs = [ "out" "dev" "man" ];
NIX_LDFLAGS = optionalString stdenv.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.
'';
};
}