1
0
forked from extern/nix-config

overlays: Update hyprnome to v0.2.0

The new version auto-closes special workspaces by default when
switching workspaces.
This commit is contained in:
Donovan Glover 2023-10-30 20:13:18 -04:00
parent e397e85c30
commit 97e727f5a7
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 32 additions and 0 deletions

View File

@ -2,6 +2,7 @@
imports = [
./alejandra.nix
./fzf.nix
./hyprnome.nix
./zola.nix
];
}

31
overlays/hyprnome.nix Normal file
View File

@ -0,0 +1,31 @@
{
nixpkgs.overlays = [
(final: prev: {
hyprnome = prev.hyprnome.overrideAttrs (oldAttrs: rec {
version = "0.2.0";
src = prev.fetchFromGitHub {
owner = "donovanglover";
repo = "hyprnome";
rev = version;
hash = "sha256-zlXiT2EOIdgIDI4NQuU3C903SSq5bylBAFJXyv7mdJ4=";
};
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (prev.lib.const {
name = "hyprnome-vendor.tar.gz";
inherit src;
outputHash = "sha256-HNKjEwryfado8kDsdt6BRMQU/uPqytRztJANw4Mnw/Y=";
});
postInstall = ''
installManPage target/man/hyprnome.1
installShellCompletion --cmd hyprnome \
--bash <(cat target/completions/hyprnome.bash) \
--fish <(cat target/completions/hyprnome.fish) \
--zsh <(cat target/completions/_hyprnome)
'';
});
})
];
}