14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitea {
19 domain = "codeberg.org";
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-H1s+pLpHTmoDssdudtAq6Ru0jwZZ55/qamEVgtHTGfk=";
38 ] ++ lib.optional stdenv.hostPlatform.isDarwin libinotify-kqueue;
40 postPatch = lib.optionalString (conf != null) ''
41 cp ${(builtins.toFile "config.def.h" conf)} config.def.h
44 env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-linotify";
46 makeFlags = [ "CC:=$(CC)" ];
48 installFlags = [ "PREFIX=$(out)" ];
50 installTargets = [ "install-all" ];
53 homepage = "https://nsxiv.codeberg.page/";
54 description = "New Suckless X Image Viewer";
55 mainProgram = "nsxiv";
57 nsxiv is a fork of now unmaintained sxiv with the purpose of being a
58 drop-in replacement of sxiv, maintaining it and adding simple, sensible
61 - Basic image operations, e.g. zooming, panning, rotating
62 - Customizable key and mouse button mappings (in config.h)
63 - Script-ability via key-handler
64 - Thumbnail mode: grid of selectable previews of all images
65 - Ability to cache thumbnails for fast re-loading
66 - Basic support for animated/multi-frame images (GIF/WebP)
67 - Display image information in status bar
68 - Display image name/path in X title
70 changelog = "https://codeberg.org/nsxiv/nsxiv/src/tag/${finalAttrs.src.rev}/etc/CHANGELOG.md";
71 license = lib.licenses.gpl2Plus;
72 maintainers = with lib.maintainers; [ sikmir ];
73 platforms = lib.platforms.unix;