Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 57 lines 1.0 kB view raw
1{ 2 alsa-lib, 3 dbus, 4 fetchFromGitHub, 5 glib, 6 gst_all_1, 7 lib, 8 mpv-unwrapped, 9 openssl, 10 pkg-config, 11 protobuf, 12 rustPlatform, 13 sqlite, 14 stdenv, 15}: 16 17rustPlatform.buildRustPackage rec { 18 pname = "termusic"; 19 version = "0.11.0"; 20 21 src = fetchFromGitHub { 22 owner = "tramhao"; 23 repo = "termusic"; 24 rev = "v${version}"; 25 hash = "sha256-89eqOeSq9uI4re3Oq0/ORMzMjYA4pLw7ZYyfGPXWtfg="; 26 }; 27 28 cargoHash = "sha256-yzmZC1JwTHefAE2X/D1yfVZN4wGxnH+FkXGqKMuaVeM="; 29 30 useNextest = true; 31 32 nativeBuildInputs = [ 33 pkg-config 34 protobuf 35 rustPlatform.bindgenHook 36 ]; 37 38 buildInputs = [ 39 dbus 40 glib 41 gst_all_1.gstreamer 42 mpv-unwrapped 43 openssl 44 sqlite 45 ] 46 ++ lib.optionals stdenv.hostPlatform.isLinux [ 47 alsa-lib 48 ]; 49 50 meta = { 51 description = "Terminal Music Player TUI written in Rust"; 52 homepage = "https://github.com/tramhao/termusic"; 53 license = with lib.licenses; [ gpl3Only ]; 54 maintainers = with lib.maintainers; [ devhell ]; 55 mainProgram = "termusic"; 56 }; 57}