a71eb02b76
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
49 lines
990 B
Nix
49 lines
990 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.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jtheoof";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/XPvy98Il4i8cDl9vH6f0/AZmiSqseSXnen7HfMqCDo=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|