Files
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

70 lines
1.2 KiB
Nix

{
lib,
mkDerivation,
fetchFromGitHub,
cmake,
extra-cmake-modules,
qtbase,
qtquickcontrols2,
SDL,
python3,
catch2_3,
callPackage,
nixosTests,
}:
mkDerivation rec {
pname = "sfxr-qt";
version = "1.5.1";
src = fetchFromGitHub {
owner = "agateau";
repo = "sfxr-qt";
rev = version;
hash = "sha256-JAWDk7mGkPtQ5yaA6UT9hlAy770MHrTBhBP9G8UqFKg=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
extra-cmake-modules
(python3.withPackages (
pp: with pp; [
pyyaml
jinja2
setuptools
]
))
];
buildInputs = [
qtbase
qtquickcontrols2
SDL
];
checkInputs = [
catch2_3
];
cmakeFlags = [
(lib.cmakeBool "USE_SYSTEM_CATCH2" true)
];
doCheck = true;
passthru.tests = {
export-square-wave = callPackage ./test-export-square-wave { };
sfxr-qt-starts = nixosTests.sfxr-qt;
};
meta = with lib; {
homepage = "https://github.com/agateau/sfxr-qt";
description = "Sound effect generator, QtQuick port of sfxr";
mainProgram = "sfxr-qt";
license = licenses.gpl2;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.linux;
};
}