depot/third_party/nixpkgs/pkgs/by-name/sc/scope-tui/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
856 B
Nix

{ 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 = "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;
};
}