2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchCrate, rustPlatform, pkg-config, libXrandr, libX11, python3 }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hacksaw";
|
|
|
|
version = "1.0.4";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config python3 ];
|
|
|
|
|
|
|
|
buildInputs = [ libXrandr libX11 ];
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-HRYTiccXU8DboAwZAr2gfzXUs8igSiFDpOEGtHpI0dA=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1rykc06lq3bkblsrj68rbil63yqdnvxkxlppq1w74wf0d6cwjc08";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Lightweight selection tool for usage in screenshot scripts etc";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/neXromancers/hacksaw";
|
|
|
|
license = with licenses; [ mpl20 ];
|
|
|
|
maintainers = with maintainers; [ TethysSvensson ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "hacksaw";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|