depot/third_party/nixpkgs/pkgs/by-name/sl/slurp/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cairo,
libxkbcommon,
meson,
ninja,
pkg-config,
scdoc,
wayland,
wayland-protocols,
wayland-scanner,
buildDocs ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "slurp";
version = "1.5.0";
src = fetchFromGitHub {
owner = "emersion";
repo = "slurp";
rev = "v${finalAttrs.version}";
hash = "sha256-2M8f3kN6tihwKlUCp2Qowv5xD6Ufb71AURXqwQShlXI=";
};
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
] ++ lib.optional buildDocs scdoc;
buildInputs = [
cairo
libxkbcommon
wayland
wayland-protocols
];
strictDeps = true;
mesonFlags = [ (lib.mesonEnable "man-pages" buildDocs) ];
meta = {
changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
description = "Select a region in a Wayland compositor";
platforms = lib.platforms.linux;
homepage = "https://github.com/emersion/slurp";
license = lib.licenses.mit;
mainProgram = "slurp";
maintainers = with lib.maintainers; [
buffet
nickcao
];
};
})