mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
3507aba925
Diff: https://github.com/emersion/slurp/compare/v1.4.0...v1.5.0 Changelog: https://github.com/emersion/slurp/releases/tag/v1.5.0
59 lines
1.1 KiB
Nix
59 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 = with lib; {
|
|
changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
|
|
description = "Select a region in a Wayland compositor";
|
|
inherit (wayland.meta) platforms;
|
|
homepage = "https://github.com/emersion/slurp";
|
|
license = licenses.mit;
|
|
mainProgram = "slurp";
|
|
maintainers = with maintainers; [ buffet nickcao ];
|
|
};
|
|
})
|