mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
40 lines
887 B
Nix
40 lines
887 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, rustPlatform
|
|
, pkg-config
|
|
, libxkbcommon
|
|
, makeWrapper
|
|
, slurp
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shotman";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~whynothugo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-u8vnRNxi7wLn0M2VZu9YTZuSAM/0afHRP01vve9tD9c=";
|
|
};
|
|
|
|
cargoHash = "sha256-2HAtkIIJMpYQ+Bk07L8D1w3YlfEuHTcbq14reFja0Kk=";
|
|
|
|
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;
|
|
maintainers = with maintainers; [ zendo ];
|
|
};
|
|
}
|