diff options
author | Janik <80165193+Janik-Haag@users.noreply.github.com> | 2023-08-03 18:44:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 18:44:30 +0200 |
commit | 7e28249263123b2adf7cefdd9cf4e4b45010f091 (patch) | |
tree | 18b8696a40472b66945445e891193506396e9025 /pkgs/applications | |
parent | 2088a1a05a3a8d0f33e940713e0f1e48ded4fb76 (diff) | |
parent | 354c1ef86d11b4aecba141b5292eecad222b3f67 (diff) |
Merge pull request #245578 from donovanglover/hyprdim
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/hyprdim/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/misc/hyprdim/default.nix b/pkgs/applications/misc/hyprdim/default.nix new file mode 100644 index 0000000000000..26915802fac8f --- /dev/null +++ b/pkgs/applications/misc/hyprdim/default.nix @@ -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 ]; + }; +} |