mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
39 lines
858 B
Nix
39 lines
858 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 = "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;
|
||
|
};
|
||
|
}
|