Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
wayland,
|
|
cairo,
|
|
pango,
|
|
gtk3,
|
|
pkg-config,
|
|
scdoc,
|
|
libnotify,
|
|
glib,
|
|
wrapGAppsHook3,
|
|
hicolor-icon-theme,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "swappy";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jtheoof";
|
|
repo = "swappy";
|
|
rev = "v${version}";
|
|
hash = "sha256-rPe567ajk/umfZ2HHm+pRxpbMOTyUmqd+22kwDSFMTc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
glib
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
scdoc
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
pango
|
|
gtk3
|
|
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; {
|
|
description = "Wayland native snapshot editing tool, inspired by Snappy on macOS";
|
|
homepage = "https://github.com/jtheoof/swappy";
|
|
license = licenses.mit;
|
|
mainProgram = "swappy";
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|