swayimg: 3.4 -> 3.5; add nix-update-script; avoid with lib; (#356503)

This commit is contained in:
Colin
2024-11-18 21:04:18 +00:00
committed by GitHub
+14 -9
View File
@@ -24,16 +24,17 @@
openexr_3,
bash-completion,
testers,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "swayimg";
version = "3.4";
version = "3.5";
src = fetchFromGitHub {
owner = "artemsen";
repo = "swayimg";
rev = "v${finalAttrs.version}";
hash = "sha256-bUU4s7nlN48rYMX4SleUDAOCVz2fowGctEfP6KhMdoA=";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-qI5M7ZC7GaVtVNh+MWPNdjXukk135IQ1gPHxdefBEyo=";
};
strictDeps = true;
@@ -73,17 +74,21 @@ stdenv.mkDerivation (finalAttrs: {
openexr_3
];
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
updateScript = nix-update-script { };
};
meta = with lib; {
meta = {
homepage = "https://github.com/artemsen/swayimg";
description = "Image viewer for Sway/Wayland";
changelog = "https://github.com/artemsen/swayimg/releases/tag/v${finalAttrs.version}";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
platforms = platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ matthewcroughan ];
platforms = lib.platforms.linux;
mainProgram = "swayimg";
};
})