depot/third_party/nixpkgs/pkgs/by-name/sc/scope-tui/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

42 lines
1 KiB
Nix

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