blob: 906bc00dce527d277100d79ffd7757560c247d23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "hyprnome";
version = "0.1.0";
src = fetchFromGitHub {
owner = "donovanglover";
repo = "hyprnome";
rev = version;
hash = "sha256-jb21hnPSzrCTuW7Yhs6jFzS2WUVQjkn6nCCi6LvoTGA=";
};
cargoHash = "sha256-QM5v2hKP3E9W3Aek6kFyFFNAp9s0oTFb4CEtxEHyny0=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage man/hyprnome.1
installShellCompletion --cmd hyprnome \
--bash <(cat completions/hyprnome.bash) \
--fish <(cat completions/hyprnome.fish) \
--zsh <(cat completions/_hyprnome)
'';
meta = with lib; {
description = "GNOME-like workspace switching in Hyprland";
homepage = "https://github.com/donovanglover/hyprnome";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ donovanglover ];
mainProgram = "hyprnome";
};
}
|