mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
commit
83a4b986b9
2 changed files with 41 additions and 0 deletions
39
pkgs/tools/wayland/shotman/default.nix
Normal file
39
pkgs/tools/wayland/shotman/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, fetchFromSourcehut
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, libxkbcommon
|
||||
, makeWrapper
|
||||
, slurp
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "shotman";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~whynothugo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-QNRQInFZcB1nqzESTAqYWwqJ0oiJa6UMCpjY3aHBiyA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-BfH1HhBbgdCA1IqKNdl4/FEzZxHgJmoSKNVMJUrSHCA=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
|
||||
buildInputs = [ libxkbcommon ];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/shotman \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ slurp ]}";
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The uncompromising screenshot GUI for Wayland compositors";
|
||||
homepage = "https://git.sr.ht/~whynothugo/shotman";
|
||||
license = licenses.isc;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ zendo ];
|
||||
};
|
||||
}
|
|
@ -3458,6 +3458,8 @@ with pkgs;
|
|||
|
||||
oguri = callPackage ../tools/wayland/oguri { };
|
||||
|
||||
shotman = callPackage ../tools/wayland/shotman { };
|
||||
|
||||
slurp = callPackage ../tools/wayland/slurp { };
|
||||
|
||||
sov = callPackage ../tools/wayland/sov { };
|
||||
|
|
Loading…
Reference in a new issue