depot/third_party/nixpkgs/pkgs/by-name/au/audio-sharing/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

81 lines
1.6 KiB
Nix

{
appstream-glib,
cargo,
dbus,
desktop-file-utils,
fetchFromGitLab,
git,
glib,
gst_all_1,
gtk4,
lib,
libadwaita,
meson,
ninja,
nix-update-script,
pkg-config,
python3,
rustPlatform,
rustc,
stdenv,
wrapGAppsHook4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "audio-sharing";
version = "0.2.4";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "AudioSharing";
rev = finalAttrs.version;
hash = "sha256-yUMiy5DaCPfCmBIGCXpqtvSSmQl5wo6vsLdW7Tt/Wfo=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src;
name = "${finalAttrs.pname}-${finalAttrs.version}";
hash = "sha256-ePgEAVYXLOHWQXG92Grb9nmenyGj0JkgVy1UDsQF0xw=";
};
nativeBuildInputs =
[
appstream-glib
cargo
desktop-file-utils
git
meson
ninja
pkg-config
python3
rustc
wrapGAppsHook4
]
++ (with rustPlatform; [
cargoSetupHook
]);
buildInputs = [
glib
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good # pulsesrc
gst_all_1.gst-rtsp-server
gst_all_1.gstreamer
gtk4
libadwaita
dbus
];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/AudioSharing";
description = "Automatically share the current audio playback in the form of an RTSP stream";
mainProgram = "audio-sharing";
maintainers = with maintainers; [ benediktbroich ] ++ lib.teams.gnome-circle.members;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
})