nixpkgs/pkgs/tools/wayland/swayimg/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.2 KiB
Nix
Raw Normal View History

2022-11-03 03:12:48 +01:00
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
2023-04-22 19:22:23 +02:00
, wayland-scanner
2022-11-03 03:12:48 +01:00
, wayland
, wayland-protocols
, json_c
, libxkbcommon
, fontconfig
, giflib
, libheif
, libjpeg
, libwebp
, libtiff
, librsvg
, libpng
, libjxl
, libexif
, bash-completion
}:
stdenv.mkDerivation rec {
pname = "swayimg";
2023-03-22 02:41:41 +01:00
version = "1.11";
2022-11-03 03:12:48 +01:00
src = fetchFromGitHub {
owner = "artemsen";
repo = pname;
rev = "v${version}";
2023-03-22 02:41:41 +01:00
sha256 = "sha256-UwIufR3EwbpNVHD1GypV3qNgiqDRllwtxAM0CZPodn0=";
2022-11-03 03:12:48 +01:00
};
strictDeps = true;
depsBuildBuild = [
pkg-config
];
2023-04-22 19:22:23 +02:00
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
2022-11-03 03:12:48 +01:00
buildInputs = [
bash-completion
wayland
wayland-protocols
json_c
libxkbcommon
fontconfig
giflib
libheif
libjpeg
libwebp
libtiff
librsvg
libpng
libjxl
libexif
];
meta = with lib; {
homepage = "https://github.com/artemsen/swayimg";
description = "Image viewer for Sway/Wayland";
changelog = "https://github.com/artemsen/swayimg/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
platforms = platforms.linux;
2022-11-03 03:12:48 +01:00
};
}