nixpkgs/pkgs/applications/misc/watershot/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
929 B
Nix
Raw Normal View History

2023-06-20 02:43:47 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, wayland
, libxkbcommon
, fontconfig
, makeWrapper
, grim
}:
rustPlatform.buildRustPackage rec {
pname = "watershot";
2023-07-05 17:51:53 +00:00
version = "0.2.0";
2023-06-20 02:43:47 +00:00
src = fetchFromGitHub {
owner = "Kirottu";
repo = "watershot";
rev = "v${version}";
2023-07-05 17:51:53 +00:00
hash = "sha256-QX6BxK26kcrg0yKJA7M+Qlr3WwLaykBquI6UK8wVtX4=";
2023-06-20 02:43:47 +00:00
};
2023-07-05 17:51:53 +00:00
cargoHash = "sha256-481E5/mUeeoaZ0N//tRWCyV8/sRRP6VdB06gB1whgzU=";
2023-06-20 02:43:47 +00:00
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 ];
};
}