nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 libpulseaudio, 7 alsa-lib, 8 withPulseaudio ? true, 9}: 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "scope-tui"; 12 version = "0.3.4"; 13 14 src = fetchFromGitHub { 15 owner = "alemidev"; 16 repo = "scope-tui"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-MU9avQt+qFIQzF7GYNNoGiyfBD7eLOMQaBH6lFhLlOY="; 19 }; 20 21 cargoHash = "sha256-yAy3kk62HYe1/1EXGUhOg++sZua65iN3ZEmPoERcu0I="; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ alsa-lib ] ++ lib.optionals withPulseaudio [ libpulseaudio ]; 26 27 buildFeatures = lib.optionals withPulseaudio [ "pulseaudio" ]; 28 29 doCheck = false; # no tests 30 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 }; 42})