nixpkgs/pkgs/by-name/sa/satty/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.3 KiB
Nix
Raw Normal View History

2023-11-22 09:18:37 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, wrapGAppsHook4
, gdk-pixbuf
, glib
, gtk4
, libadwaita
2024-03-08 07:15:09 +00:00
, libepoxy
, libGL
2023-11-22 09:18:37 +00:00
, copyDesktopItems
2023-12-29 16:26:12 +00:00
, installShellFiles
2023-11-22 09:18:37 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "satty";
2024-07-29 05:52:30 +00:00
version = "0.14.0";
2023-11-22 09:18:37 +00:00
src = fetchFromGitHub {
owner = "gabm";
repo = "Satty";
rev = "v${version}";
2024-07-29 05:52:30 +00:00
hash = "sha256-+NIRWciQISbR8+agDJBH/aHFJ+yCkC6nNFtv+HprrRs=";
2023-11-22 09:18:37 +00:00
};
2024-07-29 05:52:30 +00:00
cargoHash = "sha256-1N45CNeawwcJ1jkkAViElqyCKD4VE7RZJWPQ9EnleGw=";
2023-11-22 09:18:37 +00:00
nativeBuildInputs = [
copyDesktopItems
pkg-config
wrapGAppsHook4
2023-12-29 16:26:12 +00:00
installShellFiles
2023-11-22 09:18:37 +00:00
];
buildInputs = [
gdk-pixbuf
glib
gtk4
libadwaita
2024-03-08 07:15:09 +00:00
libepoxy
libGL
2023-11-22 09:18:37 +00:00
];
postInstall = ''
install -Dt $out/share/icons/hicolor/scalable/apps/ assets/satty.svg
2023-12-29 16:26:12 +00:00
installShellCompletion --cmd satty \
--bash completions/satty.bash \
--fish completions/satty.fish \
--zsh completions/_satty
2023-11-22 09:18:37 +00:00
'';
desktopItems = [ "satty.desktop" ];
meta = with lib; {
description = "Screenshot annotation tool inspired by Swappy and Flameshot";
homepage = "https://github.com/gabm/Satty";
license = licenses.mpl20;
2023-12-29 16:57:45 +00:00
maintainers = with maintainers; [ pinpox donovanglover ];
2023-11-22 09:18:37 +00:00
mainProgram = "satty";
platforms = lib.platforms.linux;
};
}