Files
nixpkgs/pkgs/by-name/li/libmikmod/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
texinfo,
alsa-lib,
libpulseaudio,
}:
let
inherit (lib) optional optionalString;
in
stdenv.mkDerivation rec {
pname = "libmikmod";
version = "3.3.13";
src = fetchurl {
url = "mirror://sourceforge/mikmod/libmikmod-${version}.tar.gz";
sha256 = "sha256-n8F5n36mqVx8WILemL6F/H0gugpKb8rK4RyMazgrsgc=";
};
buildInputs = [ texinfo ] ++ optional stdenv.hostPlatform.isLinux alsa-lib;
propagatedBuildInputs = optional stdenv.hostPlatform.isLinux libpulseaudio;
outputs = [
"out"
"dev"
"man"
];
NIX_LDFLAGS = optionalString stdenv.hostPlatform.isLinux "-lasound";
enableParallelBuilding = true;
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; [
lovek323
];
platforms = platforms.unix;
longDescription = ''
A library for playing tracker music module files supporting many formats,
including MOD, S3M, IT and XM.
'';
};
}