2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, libxkbcommon
|
|
|
|
, makeWrapper
|
|
|
|
, slurp
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shotman";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.4.6";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~whynothugo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-OmYCeB2szWmFJQ+MXWmVI7IzeXgbix9ZK4/4kgR5S6A=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-Kq2uq171B+4WzEJauH19/nzkm2irM4ggoFfxlARfyEg=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ zendo fpletz ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|