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
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-CDDJmWnAcXJ4wPfSPvu2DfthaFwZGZk1XXMNTA1g0+c=";
|
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
|
|
|
};
|
|
|
|
}
|