nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, meson
5, ninja
6, wayland
7, cairo
8, pango
9, gtk
10, pkg-config
11, scdoc
12, libnotify
13, glib
14, wrapGAppsHook
15, hicolor-icon-theme
16}:
17
18stdenv.mkDerivation rec {
19 pname = "swappy";
20 version = "1.5.1";
21
22 src = fetchFromGitHub {
23 owner = "jtheoof";
24 repo = pname;
25 rev = "v${version}";
26 sha256 = "sha256-/XPvy98Il4i8cDl9vH6f0/AZmiSqseSXnen7HfMqCDo=";
27 };
28
29 nativeBuildInputs = [ glib meson ninja pkg-config scdoc wrapGAppsHook ];
30
31 buildInputs = [
32 cairo pango gtk libnotify wayland glib hicolor-icon-theme
33 ];
34
35 strictDeps = true;
36
37 mesonFlags = [
38 # TODO: https://github.com/NixOS/nixpkgs/issues/36468
39 "-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
40 ];
41
42 meta = with lib; {
43 homepage = "https://github.com/jtheoof/swappy";
44 description = "A Wayland native snapshot editing tool, inspired by Snappy on macOS";
45 license = licenses.mit;
46 maintainers = [ maintainers.matthiasbeyer ];
47 platforms = platforms.linux;
48 };
49}