evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sc / scope-tui / package.nix
blob8b99e3d7c7bb22a798f96d605c348eca0b3333a9
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   libpulseaudio,
7   alsa-lib,
8   withPulseaudio ? true,
9 }:
10 rustPlatform.buildRustPackage {
11   pname = "scope-tui";
12   version = "0.3.0-unstable-2024-05-06";
14   src = fetchFromGitHub {
15     owner = "alemidev";
16     repo = "scope-tui";
17     rev = "c2fe70a69cfc15c4de6ea3f2a51580ec57a5c9e1";
18     hash = "sha256-6UPIZ2UB5wb0IkigaOXdQ/0ux9vHUGC4w5WnrjEd1bg=";
19   };
21   cargoHash = "sha256-9e5FOf7X+54591SjikeAq/5gsnqjUOEtVKpr6vWAHMI=";
23   nativeBuildInputs = [ pkg-config ];
25   buildInputs = [ alsa-lib ] ++ lib.optionals withPulseaudio [ libpulseaudio ];
27   buildFeatures = lib.optionals withPulseaudio [ "pulseaudio" ];
29   doCheck = false; # no tests
31   meta = {
32     description = "Simple oscilloscope/vectorscope/spectroscope for your terminal";
33     homepage = "https://github.com/alemidev/scope-tui";
34     license = lib.licenses.mit;
35     maintainers = with lib.maintainers; [
36       iynaix
37       aleksana
38     ];
39     mainProgram = "scope-tui";
40     platforms = lib.platforms.linux;
41   };