nixpkgs/pkgs/by-name/sw/swayimg/package.nix

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

95 lines
1.6 KiB
Nix
Raw Normal View History

2024-10-13 12:15:09 +01:00
{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
wayland-scanner,
wayland,
wayland-protocols,
json_c,
libxkbcommon,
fontconfig,
giflib,
libheif,
libjpeg,
libwebp,
libtiff,
librsvg,
libpng,
libjxl,
libexif,
libavif,
openexr_3,
bash-completion,
testers,
2024-11-16 15:44:17 +00:00
nix-update-script,
2022-11-03 02:12:48 +00:00
}:
2023-12-09 18:00:00 +00:00
stdenv.mkDerivation (finalAttrs: {
2022-11-03 02:12:48 +00:00
pname = "swayimg";
2024-11-16 15:38:16 +00:00
version = "3.5";
2022-11-03 02:12:48 +00:00
src = fetchFromGitHub {
owner = "artemsen";
2023-12-09 18:00:00 +00:00
repo = "swayimg";
2024-11-16 15:38:16 +00:00
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-qI5M7ZC7GaVtVNh+MWPNdjXukk135IQ1gPHxdefBEyo=";
2022-11-03 02:12:48 +00:00
};
strictDeps = true;
depsBuildBuild = [
pkg-config
];
2024-10-13 12:15:09 +01:00
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
2022-11-03 02:12:48 +00:00
2023-12-09 18:00:00 +00:00
mesonFlags = [
(lib.mesonOption "version" finalAttrs.version)
];
2022-11-03 02:12:48 +00:00
buildInputs = [
bash-completion
wayland
wayland-protocols
json_c
libxkbcommon
fontconfig
giflib
libheif
libjpeg
libwebp
libtiff
librsvg
libpng
libjxl
libexif
2024-01-03 20:07:59 +00:00
libavif
2023-12-09 18:00:00 +00:00
openexr_3
2022-11-03 02:12:48 +00:00
];
2024-11-16 15:44:17 +00:00
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
updateScript = nix-update-script { };
2023-12-09 18:00:00 +00:00
};
2024-11-16 15:46:18 +00:00
meta = {
2022-11-03 02:12:48 +00:00
homepage = "https://github.com/artemsen/swayimg";
description = "Image viewer for Sway/Wayland";
2024-04-20 23:31:52 +01:00
changelog = "https://github.com/artemsen/swayimg/releases/tag/v${finalAttrs.version}";
2024-11-16 15:46:18 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ matthewcroughan ];
platforms = lib.platforms.linux;
2023-11-27 01:17:53 +00:00
mainProgram = "swayimg";
2022-11-03 02:12:48 +00:00
};
2023-12-09 18:00:00 +00:00
})