2021-01-11 07:54:33 +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
|
|
|
, cmake
|
|
|
|
, scdoc
|
|
|
|
, libnotify
|
|
|
|
, gio-sharp
|
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "swappy-${version}";
|
|
|
|
version = "1.2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtheoof";
|
|
|
|
repo = "swappy";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14ac2jmnak7avcz0jhqjm30vk7pv3gq5aq5rdyh84k8c613kkicf";
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ glib meson ninja pkg-config cmake 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";
|
|
|
|
description = "A Wayland native snapshot editing tool, inspired by Snappy on macOS ";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|