Skip to content

Instantly share code, notes, and snippets.

@linguisticmind
Last active November 18, 2025 13:36
Show Gist options
  • Select an option

  • Save linguisticmind/2c70a1acea2c8a1917953e9c456e723e to your computer and use it in GitHub Desktop.

Select an option

Save linguisticmind/2c70a1acea2c8a1917953e9c456e723e to your computer and use it in GitHub Desktop.
compile_nsxiv.md | "Compiling and customizing nsxiv on Debian (Neo Simple X Image Viewer)" (https://youtu.be/bHiheB8PLvA) | Mindful Technology

Compile nsxiv on Debian

Video tutorial:

Video tutorial

Links

1. Clone nsxiv repo

git clone https://codeberg.org/nsxiv/nsxiv.git
cd nsxiv/

2. Install dependencies

sudo apt install make libimlib2-dev libghc-hinotify-dev libxft-dev libexif-dev

3. Compile

make

The compiled binary can be found in the current working directory (the root of nsxiv repository).

4. Install (optional)

To install to /usr/local (the default PREFIX):

sudo make install

You can install to a custom PREFIX like this:

make PREFIX="$HOME"/local install

sudo may or may not be required depending on the PREFIX's location.

The following files are installed:

PREFIX
├── bin
│   └── nsxiv
└── share
    ├── doc
    │   └── nsxiv
    │       └── examples
    │           ├── image-info
    │           ├── key-handler
    │           ├── thumb-info
    │           └── win-title
    └── man
        └── man1
            └── nsxiv.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment