nixpkgs/pkgs/by-name/hy/hyprdim/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

2024-03-15 17:38:33 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
nix-update-script,
2023-07-26 04:42:08 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "hyprdim";
2024-05-05 17:57:15 +00:00
version = "2.2.5";
2023-07-26 04:42:08 +00:00
src = fetchFromGitHub {
owner = "donovanglover";
2023-10-29 22:39:49 +00:00
repo = "hyprdim";
2023-07-26 04:42:08 +00:00
rev = version;
2024-05-05 17:57:15 +00:00
hash = "sha256-EWZnimLLV879FiZUax1YK5ML/Qz4qt29rJWn5uoKtqw=";
2023-07-26 04:42:08 +00:00
};
2024-05-05 17:57:15 +00:00
cargoHash = "sha256-V4Z3PKavxfQm7zSoTyoWtxpc8yuuGPemO4OdadQEVdg=";
2023-07-26 04:42:08 +00:00
2024-03-15 17:38:33 +00:00
nativeBuildInputs = [ installShellFiles ];
2023-07-26 04:42:08 +00:00
postInstall = ''
2023-10-29 22:39:49 +00:00
installManPage target/man/hyprdim.1
2023-07-26 04:42:08 +00:00
installShellCompletion --cmd hyprdim \
2024-03-15 17:38:33 +00:00
--bash target/completions/hyprdim.bash \
--fish target/completions/hyprdim.fish \
--zsh target/completions/_hyprdim
2023-07-26 04:42:08 +00:00
'';
2023-10-29 22:39:49 +00:00
passthru.updateScript = nix-update-script { };
2023-07-26 04:42:08 +00:00
meta = with lib; {
description = "Automatically dim windows in Hyprland when switching between them";
homepage = "https://github.com/donovanglover/hyprdim";
2023-10-29 22:39:49 +00:00
license = licenses.gpl3Plus;
2023-07-26 04:42:08 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ donovanglover ];
2023-08-06 18:13:50 +00:00
mainProgram = "hyprdim";
2023-07-26 04:42:08 +00:00
};
}