nixpkgs/pkgs/applications/video/corrscope/default.nix

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

71 lines
1.5 KiB
Nix
Raw Normal View History

2021-03-15 12:50:06 +00:00
{ lib
, mkDerivationWith
, python3Packages
2021-08-05 16:01:26 +00:00
, fetchFromGitHub
2021-03-15 12:50:06 +00:00
, wrapQtAppsHook
, ffmpeg
, qtbase
}:
mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "corrscope";
2022-03-23 07:14:17 +00:00
version = "0.8.0";
2021-11-29 23:34:13 +00:00
format = "pyproject";
2021-03-15 12:50:06 +00:00
2021-08-05 16:01:26 +00:00
src = fetchFromGitHub {
owner = "corrscope";
repo = "corrscope";
rev = version;
2022-03-23 07:14:17 +00:00
sha256 = "1wdla4ryif1ss37aqi61lcvzddvf568wyh5s3xv1lrryh4al9vpd";
2021-03-15 12:50:06 +00:00
};
2021-11-29 23:34:13 +00:00
nativeBuildInputs = [
wrapQtAppsHook
] ++ (with python3Packages; [
poetry-core
]);
2021-03-15 12:50:06 +00:00
2021-11-29 23:34:13 +00:00
buildInputs = [
ffmpeg
qtbase
];
2021-03-15 12:50:06 +00:00
2021-11-29 23:34:13 +00:00
propagatedBuildInputs = with python3Packages; [
appdirs
atomicwrites
attrs
click
matplotlib
numpy
packaging
2022-03-23 07:14:17 +00:00
qtpy
2021-11-29 23:34:13 +00:00
pyqt5
ruamel-yaml
2022-03-23 07:14:17 +00:00
colorspacious
2021-11-29 23:34:13 +00:00
];
2021-03-15 12:50:06 +00:00
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=(
2021-08-07 23:49:08 +00:00
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
2021-03-15 12:50:06 +00:00
"''${qtWrapperArgs[@]}"
)
'';
meta = with lib; {
description = "Render wave files into oscilloscope views, featuring advanced correlation-based triggering algorithm";
longDescription = ''
Corrscope renders oscilloscope views of WAV files recorded from chiptune (game music from
retro sound chips).
Corrscope uses "waveform correlation" to track complex waves (including SNES and Sega
Genesis/FM synthesis) which jump around on other oscilloscope programs.
'';
homepage = "https://github.com/corrscope/corrscope";
license = licenses.bsd2;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
};
}