159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
39 lines
890 B
Nix
39 lines
890 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, rustPlatform
|
|
, pkg-config
|
|
, libxkbcommon
|
|
, makeWrapper
|
|
, slurp
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shotman";
|
|
version = "0.4.7";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~whynothugo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-kf/qloCaptxPzPEgd8fkzTfgqsI/PC3KJfHpBQWadjQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-a70zJdhPncagah/gCvkHtSvnYhnYMTINCd5ZyBeDwAE=";
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
|
|
|
buildInputs = [ libxkbcommon ];
|
|
|
|
preFixup = ''
|
|
wrapProgram $out/bin/shotman \
|
|
--prefix PATH ":" "${lib.makeBinPath [ slurp ]}";
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Uncompromising screenshot GUI for Wayland compositors";
|
|
homepage = "https://git.sr.ht/~whynothugo/shotman";
|
|
license = licenses.isc;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ zendo fpletz ];
|
|
};
|
|
}
|