hyprdim: init at 2.0.1
This commit is contained in:
parent
9ca785644d
commit
354c1ef86d
2 changed files with 42 additions and 0 deletions
40
pkgs/applications/misc/hyprdim/default.nix
Normal file
40
pkgs/applications/misc/hyprdim/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "hyprdim";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "donovanglover";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-0FSviEaKANTHBZa12NbNKnOfcbXQLQzJBGMDruq71+g=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-eNtieSj4tr5CeH4BDclkp41QGQLkjYgLXil7sXQcfdU=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installManPage man/hyprdim.1
|
||||
|
||||
installShellCompletion --cmd hyprdim \
|
||||
--bash <(cat completions/hyprdim.bash) \
|
||||
--fish <(cat completions/hyprdim.fish) \
|
||||
--zsh <(cat completions/_hyprdim)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Automatically dim windows in Hyprland when switching between them";
|
||||
homepage = "https://github.com/donovanglover/hyprdim";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ donovanglover ];
|
||||
};
|
||||
}
|
|
@ -5440,6 +5440,8 @@ with pkgs;
|
|||
hypr = callPackage ../applications/window-managers/hyprwm/hypr {
|
||||
cairo = cairo.override { xcbSupport = true; }; };
|
||||
|
||||
hyprdim = callPackage ../applications/misc/hyprdim { };
|
||||
|
||||
hyprland = callPackage ../applications/window-managers/hyprwm/hyprland {
|
||||
wlroots = pkgs.callPackage ../applications/window-managers/hyprwm/hyprland/wlroots.nix { };
|
||||
udis86 = pkgs.callPackage ../applications/window-managers/hyprwm/hyprland/udis86.nix { };
|
||||
|
|
Loading…
Reference in a new issue