anchor.diff:      libXft
       libexif
       libwebp
  -  ];
  +  ] ++ lib.optional stdenv.isDarwin libinotify-kqueue;
   
     preBuild = lib.optionalString (conf!=null) ''
       cp ${(builtins.toFile "config.def.h" conf)} config.def.h
     '';
   
  -  makeFlags = [
  -    "PREFIX=${placeholder "out"}"
  -  ];
  +  NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-linotify";
  +
  +  makeFlags = [ "CC:=$(CC)" ];
  +
  +  installFlags = [ "PREFIX=$(out)" ];
  +
  +  installTargets = [ "install-all" ];
   
     meta = with lib; {
  -    homepage = "https://nsxiv.github.io/nsxiv/";
  +    homepage = "https://nsxiv.codeberg.page/";
       description = "New Suckless X Image Viewer";
       longDescription = ''
         nsxiv is a fork of now unmaintained sxiv with the purpose of being a
  
positive.code: { lib
  , stdenv
  , fetchFromGitHub
  , giflib
  , imlib2
  , libXft
  , libexif
  , libwebp
  , conf ? null
  }:
  
  stdenv.mkDerivation rec {
    pname = "nsxiv";
    version = "29";
  
    src = fetchFromGitHub {
      owner = "nsxiv";
      repo = pname;
      rev = "v${version}";
      hash = "sha256-JUF2cF6QeAXk6G76uMu3reaMgxp2RcqHDbamkNufwqE=";
    };
  
    buildInputs = [
      giflib
  
negative.code:       - Display image name/path in X title
      '';
      license = licenses.gpl2Plus;
      maintainers = with maintainers; [ AndersonTorres sikmir ];
      platforms = platforms.unix;
    };
  }
  