watershot: init at 0.1.2

This commit is contained in:
Lord-Valen 2023-06-19 22:43:47 -04:00
parent eed76b7f25
commit 26e8e6a671
No known key found for this signature in database
GPG key ID: AB585519BBA4A26F
2 changed files with 42 additions and 0 deletions

View 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 ];
};
}

View file

@ -35386,6 +35386,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