depot/third_party/nixpkgs/pkgs/applications/misc/swappy/default.nix
Default email 86f042a55b Project import generated by Copybara.
GitOrigin-RevId: c7d0dbe094c988209edac801eb2a0cc21aa498d8
2021-02-22 21:28:39 +00:00

49 lines
991 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, wayland
, cairo
, pango
, gtk
, pkg-config
, scdoc
, libnotify
, glib
, wrapGAppsHook
, hicolor-icon-theme
}:
stdenv.mkDerivation rec {
pname = "swappy";
version = "1.3.1";
src = fetchFromGitHub {
owner = "jtheoof";
repo = pname;
rev = "v${version}";
sha256 = "12z643c7vzffhjsxaz1lak99i4nwm688pha0hh4pg69jf5wz5xx3";
};
nativeBuildInputs = [ glib meson ninja pkg-config scdoc wrapGAppsHook ];
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";
description = "A Wayland native snapshot editing tool, inspired by Snappy on macOS";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.linux;
};
}