dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wayland
|
|
, wayland-protocols
|
|
, json_c
|
|
, libxkbcommon
|
|
, fontconfig
|
|
, giflib
|
|
, libheif
|
|
, libjpeg
|
|
, libwebp
|
|
, libtiff
|
|
, librsvg
|
|
, libpng
|
|
, libjxl
|
|
, libexif
|
|
, bash-completion
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "swayimg";
|
|
version = "1.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "artemsen";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Iq7T00hvr9Mv50V/GKJBddjoeHdFa2DneVaXyxhMCE0=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
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;
|
|
};
|
|
}
|