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
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libfmvoice";
|
|
version = "0-unstable-2025-02-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vampirefrog";
|
|
repo = "libfmvoice";
|
|
rev = "b45764b1eb939b2927fab74c0de653b968ffb58d";
|
|
hash = "sha256-p0XmG2wWryJuPGq0mtQhymrp9qOvZy7qZI3S/3hcO0U=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"bin"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
buildFlags = [
|
|
"AR=${stdenv.cc.targetPrefix}ar"
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 libfmvoice.a $out/lib/libfmvoice.a
|
|
|
|
for header in *.h; do
|
|
install -Dm644 $header $out/include/$header
|
|
done
|
|
|
|
for prog in $(grep 'PROGS:=' Makefile | cut -d'=' -f2); do
|
|
install -Dm755 $prog $bin/bin/$prog
|
|
done
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater { };
|
|
};
|
|
|
|
meta = {
|
|
description = "C library for loading, saving and converting FM sound chip voice files in various formats";
|
|
homepage = "https://github.com/vampirefrog/libfmvoice";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ OPNA2608 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|