3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/corrscope/default.nix

63 lines
1.7 KiB
Nix
Raw Normal View History

2021-03-15 12:50:06 +00:00
{ lib
, mkDerivationWith
, python3Packages
2021-08-05 17:01:26 +01:00
, fetchFromGitHub
, fetchpatch
2021-03-15 12:50:06 +00:00
, wrapQtAppsHook
, ffmpeg
, qtbase
}:
mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "corrscope";
2021-08-05 17:01:26 +01:00
version = "0.7.1";
2021-03-15 12:50:06 +00:00
2021-08-05 17:01:26 +01:00
src = fetchFromGitHub {
owner = "corrscope";
repo = "corrscope";
rev = version;
sha256 = "0c9kmrw6pcda68li04b5j2kmsgdw1q463qlc32wn96zn9hl82v6m";
2021-03-15 12:50:06 +00:00
};
2021-08-05 17:01:26 +01:00
format = "pyproject";
patches = [
# Remove when bumping past 0.7.1
(fetchpatch {
name = "0001-Use-poetry-core.patch";
url = "https://github.com/corrscope/corrscope/commit/d40d1846dd54b8bccd7b8055d6aece48aacbb943.patch";
sha256 = "0xxsbmxdbh3agfm6ww3rpa7ab0ysppan490w0gaqwmwzrxmmdljv";
})
];
2021-03-15 12:50:06 +00:00
2021-08-08 00:49:08 +01:00
nativeBuildInputs = [ wrapQtAppsHook ] ++ (with python3Packages; [ poetry-core ]);
2021-03-15 12:50:06 +00:00
buildInputs = [ ffmpeg qtbase ];
2021-08-08 00:49:08 +01:00
propagatedBuildInputs = with python3Packages; [ appdirs atomicwrites attrs click matplotlib numpy pyqt5 ruamel_yaml ];
2021-03-15 12:50:06 +00:00
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=(
2021-08-08 00:49:08 +01: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;
};
}