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