3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/swappy/default.nix

50 lines
990 B
Nix
Raw Normal View History

2021-02-21 08:04:49 +00:00
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, wayland
, cairo
, pango
, gtk
, pkg-config
, scdoc
, libnotify
, glib
2021-02-03 22:49:26 +00:00
, wrapGAppsHook
, hicolor-icon-theme
}:
stdenv.mkDerivation rec {
2021-02-18 04:07:22 +00:00
pname = "swappy";
2021-09-14 00:10:17 +01:00
version = "1.4.0";
src = fetchFromGitHub {
owner = "jtheoof";
2021-02-18 04:07:22 +00:00
repo = pname;
rev = "v${version}";
2021-09-14 00:10:17 +01:00
sha256 = "sha256-sINX7pJ0msis7diGFTCgD4Mamd3yGGJew1uD8de4VOg=";
};
2021-02-03 22:49:26 +00:00
nativeBuildInputs = [ glib meson ninja pkg-config scdoc wrapGAppsHook ];
2021-02-03 22:49:26 +00:00
buildInputs = [
cairo pango gtk libnotify wayland glib hicolor-icon-theme
];
strictDeps = true;
mesonFlags = [
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
];
meta = with lib; {
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";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.linux;
};
}