Merge pull request #251072 from LudovicoPiero/wleave-init

wleave: init at 0.3.0

authored by

OTABI Tomoya and committed by
GitHub
834af2fd d405639f

+62
+60
pkgs/tools/wayland/wleave/default.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , rustPlatform 4 + , at-spi2-atk 5 + , pkg-config 6 + , glib 7 + , gtk3 8 + , gtk-layer-shell 9 + , installShellFiles 10 + , scdoc 11 + }: 12 + 13 + rustPlatform.buildRustPackage rec { 14 + pname = "wleave"; 15 + version = "0.3.0"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "AMNatty"; 19 + repo = "wleave"; 20 + rev = version; 21 + hash = "sha256-qo9HnaWYsNZH1J8lAyKSwAOyvlCvIsh9maioatjtGkg="; 22 + }; 23 + 24 + cargoHash = "sha256-6Gppf1upWoMi+gcRSeQ1txSglAaBbpOXKs2LoJhslPQ="; 25 + 26 + nativeBuildInputs = [ 27 + pkg-config 28 + installShellFiles 29 + scdoc 30 + ]; 31 + 32 + buildInputs = [ 33 + at-spi2-atk 34 + gtk3 35 + gtk-layer-shell 36 + glib 37 + ]; 38 + 39 + postInstall = '' 40 + for f in man/*.scd; do 41 + local page="man/$(basename "$f" .scd)" 42 + scdoc < "$f" > "$page" 43 + installManPage "$page" 44 + done 45 + 46 + installShellCompletion --cmd wleave \ 47 + --bash <(cat completions/wleave.bash) \ 48 + --fish <(cat completions/wleave.fish) \ 49 + --zsh <(cat completions/_wleave) 50 + ''; 51 + 52 + meta = with lib; { 53 + description = "A Wayland-native logout script written in GTK3"; 54 + homepage = "https://github.com/AMNatty/wleave"; 55 + license = licenses.mit; 56 + mainProgram = "wleave"; 57 + maintainers = with maintainers; [ ludovicopiero ]; 58 + platforms = platforms.linux; 59 + }; 60 + }
+2
pkgs/top-level/all-packages.nix
··· 4798 4798 4799 4799 wl-screenrec = callPackage ../tools/wayland/wl-screenrec { }; 4800 4800 4801 + wleave = callPackage ../tools/wayland/wleave { }; 4802 + 4801 4803 wlogout = callPackage ../tools/wayland/wlogout { }; 4802 4804 4803 4805 wlopm = callPackage ../tools/wayland/wlopm { };