diff options
author | ^x3ro <git@x3ro.dev> | 2021-09-15 23:37:45 +0200 |
---|---|---|
committer | ^x3ro <git@x3ro.dev> | 2021-09-15 23:42:35 +0200 |
commit | 5f54cb62e1bcea49e6811e5a6106a8370ba2eec0 (patch) | |
tree | 1f20aed59f08eb9dd8af725e090aa3ec8bb2f54d /pkgs/tools/misc/ksnip | |
parent | 12fff8a567a5f7720c120fd786cafebd0927ca0f (diff) | |
download | nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.tar nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.tar.gz nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.tar.bz2 nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.tar.lz nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.tar.xz nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.tar.zst nixpkgs-5f54cb62e1bcea49e6811e5a6106a8370ba2eec0.zip |
ksnip: init at 1.9.1
Diffstat (limited to 'pkgs/tools/misc/ksnip')
-rw-r--r-- | pkgs/tools/misc/ksnip/default.nix | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ksnip/default.nix b/pkgs/tools/misc/ksnip/default.nix new file mode 100644 index 00000000000..edd1f610019 --- /dev/null +++ b/pkgs/tools/misc/ksnip/default.nix @@ -0,0 +1,81 @@ +{ stdenv +, lib +, autoPatchelfHook +, wrapQtAppsHook +, fetchurl +, dpkg +, qtbase +, qtx11extras +}: + +stdenv.mkDerivation rec { + pname = "ksnip"; + version = "1.9.1"; + + src = fetchurl { + url = "https://github.com/ksnip/ksnip/releases/download/v${version}/ksnip-${version}-continuous.deb"; + sha256 = "0wabyhb6751jlbrr0872ks2klb6570yfjczn6fjb1albavsk8mml"; + }; + + sourceRoot = "."; + unpackCmd = "dpkg-deb -x $src ."; + + dontConfigure = true; + dontBuild = true; + + buildInputs = [ + qtbase + qtx11extras + ]; + + nativeBuildInputs = [ + autoPatchelfHook + wrapQtAppsHook + dpkg + ]; + + installPhase = '' + mkdir -p $out/bin + mv usr $out/ + ln -s $out/usr/bin/ksnip $out/bin/ksnip + ''; + + meta = with lib; { + homepage = "https://github.com/ksnip/ksnip"; + description = "Cross-platform screenshot tool wihth many annotation features"; + longDescription = '' + Features: + + - Supports Linux (X11, Plasma Wayland, GNOME Wayland and xdg-desktop-portal Wayland), Windows and macOS. + - Screenshot of a custom rectangular area that can be drawn with mouse cursor. + - Screenshot of last selected rectangular area without selecting again. + - Screenshot of the screen/monitor where the mouse cursor is currently located. + - Screenshot of full-screen, including all screens/monitors. + - Screenshot of window that currently has focus. + - Screenshot of window under mouse cursor. + - Screenshot with or without mouse cursor. + - Capture mouse cursor as annotation item that can be moved and deleted. + - Customizable capture delay for all capture options. + - Upload screenshots directly to imgur.com in anonymous or user mode. + - Upload screenshots via custom user defined scripts. + - Command-line support, for capturing screenshots and saving to default location, filename and format. + - Filename wildcards for Year ($Y), Month ($M), Day ($D), Time ($T) and Counter (multiple # characters for number with zero-leading padding). + - Print screenshot or save it to PDF/PS. + - Annotate screenshots with pen, marker, rectangles, ellipses, texts and other tools. + - Annotate screenshots with stickers and add custom stickers. + - Obfuscate image regions with blur and pixelate. + - Add effects to image (Drop Shadow, Grayscale, invert color or Border). + - Add watermarks to captured images. + - Global hotkeys for capturing screenshots (currently only for Windows and X11). + - Tabs for screenshots and images. + - Open existing images via dialog, drag-and-drop or paste from clipboard. + - Run as single instance application (secondary instances send cli parameter to primary instance). + - Pin screenshots in frameless windows that stay atop other windows. + - User-defined actions for taking screenshot and post-processing. + - Many configuration options. + ''; + license = licenses.gpl2; + maintainers = with maintainers; [ x3ro ]; + platforms = platforms.linux; + }; +} |