nixpkgs/pkgs/tools/wayland/shotman/default.nix

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

40 lines
894 B
Nix
Raw Normal View History

2022-10-04 11:25:54 +02:00
{ lib
, fetchFromSourcehut
, rustPlatform
, pkg-config
, libxkbcommon
, makeWrapper
, slurp
}:
rustPlatform.buildRustPackage rec {
pname = "shotman";
2023-08-28 04:55:25 +02:00
version = "0.4.5";
2022-10-04 11:25:54 +02:00
src = fetchFromSourcehut {
owner = "~whynothugo";
repo = pname;
rev = "v${version}";
2023-08-28 04:55:25 +02:00
hash = "sha256-SctWNhYCFTAOOnDEcsFZH61+QQAcmup11GVVXA1U5Dw=";
2022-10-04 11:25:54 +02:00
};
2023-08-28 04:55:25 +02:00
cargoHash = "sha256-q5scdgfB5NgtjAgnIy/+c+y/mymF0b9ZZSz2LmM0pfw=";
2022-10-04 11:25:54 +02: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-08-28 04:55:25 +02:00
maintainers = with maintainers; [ zendo fpletz ];
2022-10-04 11:25:54 +02:00
};
}