mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
43 lines
994 B
Nix
43 lines
994 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, pipewire
|
|
, pkg-config
|
|
, rustPlatform
|
|
, wayland
|
|
, wayland-protocols
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wayland-pipewire-idle-inhibit";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rafaelrc7";
|
|
repo = "wayland-pipewire-idle-inhibit";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-2akYbnQnJ0wb51S3bwrm3/EiZydxbwkfuSfsiTvtNz8=";
|
|
};
|
|
|
|
cargoHash = "sha256-C4cispJN2OQRBQiW+H36B8ETNn1oukgdELRVk7V7BQU=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = [
|
|
pipewire
|
|
wayland
|
|
wayland-protocols
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Suspends automatic idling of Wayland compositors when media is being played through Pipewire";
|
|
homepage = "https://github.com/rafaelrc7/wayland-pipewire-idle-inhibit/";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ rafameou ];
|
|
mainProgram = "wayland-pipewire-idle-inhibit";
|
|
};
|
|
}
|
|
|