2021-02-21 08:04:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-02-26 12:28:13 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wayland
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, gtk
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2020-02-26 12:28:13 +00:00
|
|
|
, scdoc
|
|
|
|
, libnotify
|
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-18 04:07:22 +00:00
|
|
|
pname = "swappy";
|
2021-02-21 08:04:49 +00:00
|
|
|
version = "1.3.1";
|
2020-02-26 12:28:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtheoof";
|
2021-02-18 04:07:22 +00:00
|
|
|
repo = pname;
|
2020-02-26 12:28:13 +00:00
|
|
|
rev = "v${version}";
|
2021-02-21 08:04:49 +00:00
|
|
|
sha256 = "12z643c7vzffhjsxaz1lak99i4nwm688pha0hh4pg69jf5wz5xx3";
|
2020-02-26 12:28:13 +00:00
|
|
|
};
|
|
|
|
|
2021-02-18 04:07:22 +00:00
|
|
|
nativeBuildInputs = [ glib meson ninja pkg-config scdoc ];
|
2020-02-26 12:28:13 +00:00
|
|
|
|
|
|
|
buildInputs = [ cairo pango gtk libnotify wayland glib ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-26 12:28:13 +00:00
|
|
|
homepage = "https://github.com/jtheoof/swappy";
|
2021-02-18 04:07:22 +00:00
|
|
|
description = "A Wayland native snapshot editing tool, inspired by Snappy on macOS";
|
2020-02-26 12:28:13 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|