about summary refs log tree commit diff
path: root/pkgs/by-name/sc/scope-tui/package.nix
blob: 850036fd89adcecb121379056c29446c40c6f200 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libpulseaudio
}:
rustPlatform.buildRustPackage {
  pname = "scope-tui";
  version = "0-unstable-2024-03-16";

  src = fetchFromGitHub {
    owner = "alemidev";
    repo = "scope-tui";
    rev = "299efd70129eb945f8ce63ff853decb41ef5e7ef";
    hash = "sha256-ELcNSjie/AGrPFT06VXR5mNxiBPwYGVzeC8I9ybN8Bc=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  postPatch = ''
    cp ${./Cargo.lock} Cargo.lock
  '';

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ libpulseaudio ];

  meta = with lib; {
    description = "A simple oscilloscope/vectorscope/spectroscope for your terminal";
    homepage = "https://github.com/alemidev/scope-tui";
    license = licenses.mit;
    maintainers = with maintainers; [ iynaix ];
    mainProgram = "scope-tui";
    platforms = platforms.linux;
  };
}