2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2022-01-22 01:22:15 +00:00
|
|
|
, extra-cmake-modules
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase
|
|
|
|
, qtquickcontrols2
|
|
|
|
, SDL
|
|
|
|
, python3
|
2024-07-27 06:49:29 +00:00
|
|
|
, catch2_3
|
2022-03-30 09:31:56 +00:00
|
|
|
, callPackage
|
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "sfxr-qt";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.5.1";
|
2022-01-22 01:22:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agateau";
|
|
|
|
repo = "sfxr-qt";
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-JAWDk7mGkPtQ5yaA6UT9hlAy770MHrTBhBP9G8UqFKg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2022-01-22 01:22:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2022-01-22 01:22:15 +00:00
|
|
|
extra-cmake-modules
|
2020-04-24 23:36:52 +00:00
|
|
|
(python3.withPackages (pp: with pp; [ pyyaml jinja2 setuptools ]))
|
|
|
|
];
|
2022-01-22 01:22:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtquickcontrols2
|
|
|
|
SDL
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
checkInputs = [
|
|
|
|
catch2_3
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "USE_SYSTEM_CATCH2" true)
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru.tests = {
|
|
|
|
export-square-wave = callPackage ./test-export-square-wave {};
|
|
|
|
sfxr-qt-starts = nixosTests.sfxr-qt;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/agateau/sfxr-qt";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Sound effect generator, QtQuick port of sfxr";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sfxr-qt";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|