2024-07-16 08:59:22 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
libpulseaudio,
|
|
|
|
alsa-lib,
|
|
|
|
withPulseaudio ? true,
|
2024-03-16 14:46:58 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "scope-tui";
|
2024-07-16 08:59:22 +00:00
|
|
|
version = "0.3.0-unstable-2024-05-06";
|
2024-03-16 14:46:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alemidev";
|
|
|
|
repo = "scope-tui";
|
2024-07-16 08:59:22 +00:00
|
|
|
rev = "c2fe70a69cfc15c4de6ea3f2a51580ec57a5c9e1";
|
|
|
|
hash = "sha256-6UPIZ2UB5wb0IkigaOXdQ/0ux9vHUGC4w5WnrjEd1bg=";
|
2024-03-16 14:46:58 +00:00
|
|
|
};
|
|
|
|
|
2024-07-16 08:59:22 +00:00
|
|
|
cargoHash = "sha256-9e5FOf7X+54591SjikeAq/5gsnqjUOEtVKpr6vWAHMI=";
|
2024-03-16 14:46:58 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-07-16 08:59:22 +00:00
|
|
|
buildInputs = [ alsa-lib ] ++ lib.optionals withPulseaudio [ libpulseaudio ];
|
|
|
|
|
|
|
|
buildFeatures = lib.optionals withPulseaudio [ "pulseaudio" ];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
2024-03-16 14:46:58 +00:00
|
|
|
|
2024-07-16 08:59:22 +00:00
|
|
|
meta = {
|
2024-03-16 14:46:58 +00:00
|
|
|
description = "Simple oscilloscope/vectorscope/spectroscope for your terminal";
|
|
|
|
homepage = "https://github.com/alemidev/scope-tui";
|
2024-07-16 08:59:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-07-16 09:00:40 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
iynaix
|
|
|
|
aleksana
|
|
|
|
];
|
2024-03-16 14:46:58 +00:00
|
|
|
mainProgram = "scope-tui";
|
2024-07-16 08:59:22 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2024-03-16 14:46:58 +00:00
|
|
|
};
|
|
|
|
}
|