nixpkgs/pkgs/by-name/fm/fmtoy/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.3 KiB
Nix
Raw Normal View History

{
stdenv,
lib,
fetchFromGitHub,
unstableGitUpdater,
alsa-lib,
cmake,
libjack2,
pkg-config,
zlib,
2022-03-02 22:16:03 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-03-02 22:16:03 +00:00
pname = "fmtoy";
version = "0-unstable-2024-06-11";
2022-03-02 22:16:03 +00:00
src = fetchFromGitHub {
owner = "vampirefrog";
repo = "fmtoy";
rev = "17d69350dcd7e2834e69f65420e5e3a8328b7e18";
fetchSubmodules = true;
hash = "sha256-to842vUWEWGSQkD09Q22whrdtZpbSlwaY5LSS208sP8=";
2022-03-02 22:16:03 +00:00
};
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'pkg-config' "$PKG_CONFIG"
2022-03-02 22:16:03 +00:00
'';
strictDeps = true;
2022-03-02 22:16:03 +00:00
nativeBuildInputs = [
cmake
2022-03-02 22:16:03 +00:00
pkg-config
];
buildInputs = [
alsa-lib
libjack2
zlib
2022-03-02 22:16:03 +00:00
];
dontUseCmakeConfigure = true;
2022-03-02 22:16:03 +00:00
enableParallelBuilding = true;
buildFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
"CXX=${stdenv.cc.targetPrefix}c++"
];
2022-03-02 22:16:03 +00:00
installPhase = ''
runHook preInstall
install -Dm755 fmtoy_jack $out/bin/fmtoy_jack
2022-03-02 22:16:03 +00:00
runHook postInstall
'';
passthru = {
updateScript = unstableGitUpdater { };
2022-03-02 22:16:03 +00:00
};
meta = {
description = "FM synthesiser based on emulated Yamaha YM chips (OPL, OPM and OPN series)";
2022-03-02 22:16:03 +00:00
homepage = "https://github.com/vampirefrog/fmtoy";
license = lib.licenses.gpl3Only;
mainProgram = "fmtoy_jack";
maintainers = with lib.maintainers; [ OPNA2608 ];
platforms = lib.platforms.linux;
2022-03-02 22:16:03 +00:00
};
})