2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-10-07 09:15:18 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wayland
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, gtk
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-10-07 09:15:18 +00:00
|
|
|
, scdoc
|
|
|
|
, libnotify
|
|
|
|
, glib
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2021-02-22 21:28:39 +00:00
|
|
|
, hicolor-icon-theme
|
2020-10-07 09:15:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-19 19:06:45 +00:00
|
|
|
pname = "swappy";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "1.5.1";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtheoof";
|
2021-02-19 19:06:45 +00:00
|
|
|
repo = pname;
|
2020-10-07 09:15:18 +00:00
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-/XPvy98Il4i8cDl9vH6f0/AZmiSqseSXnen7HfMqCDo=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ glib meson ninja pkg-config scdoc wrapGAppsHook3 ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo pango gtk libnotify wayland glib hicolor-icon-theme
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Wayland native snapshot editing tool, inspired by Snappy on macOS";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/jtheoof/swappy";
|
2020-10-07 09:15:18 +00:00
|
|
|
license = licenses.mit;
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "swappy";
|
2020-10-07 09:15:18 +00:00
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|