mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #238680 from Lord-Valen/watershot
watershot: init at 0.1.2
This commit is contained in:
commit
5db8360846
40
pkgs/applications/misc/watershot/default.nix
Normal file
40
pkgs/applications/misc/watershot/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, wayland
|
||||
, libxkbcommon
|
||||
, fontconfig
|
||||
, makeWrapper
|
||||
, grim
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "watershot";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Kirottu";
|
||||
repo = "watershot";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-8GqO7Y0d+AoYr3Us3FEfNobrQNSw7XyGwmZz5HkVvDg=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-yJD7c/I3rwzczcrxbD8sinzP7bjMzhWWAVcCFCsTdeo=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config wayland makeWrapper ];
|
||||
|
||||
buildInputs = [ wayland fontconfig libxkbcommon ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/watershot \
|
||||
--prefix PATH : ${lib.makeBinPath [ grim ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
platforms = with platforms; linux;
|
||||
description = "A simple wayland native screenshot tool";
|
||||
homepage = "https://github.com/Kirottu/watershot";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ lord-valen ];
|
||||
};
|
||||
}
|
@ -35412,6 +35412,8 @@ with pkgs;
|
||||
|
||||
warpd = callPackage ../applications/misc/warpd { };
|
||||
|
||||
watershot = callPackage ../applications/misc/watershot { };
|
||||
|
||||
w3m = callPackage ../applications/networking/browsers/w3m { };
|
||||
|
||||
# Should always be the version with the most features
|
||||
|
Loading…
Reference in New Issue
Block a user