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