Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
930 B
Nix
47 lines
930 B
Nix
{
|
|
lib,
|
|
fetchFromSourcehut,
|
|
rustPlatform,
|
|
pkg-config,
|
|
libxkbcommon,
|
|
makeWrapper,
|
|
slurp,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shotman";
|
|
version = "0.4.10";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~whynothugo";
|
|
repo = "shotman";
|
|
rev = "v${version}";
|
|
hash = "sha256-j9HNqRJnGiy720uS0zC6Tt1WjF4b6+XqPEMTqTEOD6w=";
|
|
};
|
|
|
|
cargoHash = "sha256-+PpNf79yz5e5Mr6HAqE9Wg/0S8JO4rWrMT7JtQYAWPs=";
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|