Files
nixpkgs/pkgs/by-name/fe/feh/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
xorg,
imlib2Full,
libjpeg,
libpng,
curl,
libexif,
jpegexiforient,
perl,
enableAutoreload ? !stdenv.hostPlatform.isDarwin,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "feh";
version = "3.11.2";
src = fetchFromGitHub {
owner = "derf";
repo = "feh";
rev = finalAttrs.version;
hash = "sha256-bwp/hzkuwQTgPakE0zkNtBWrNUkVWt9btTD8MVx+Xq4=";
};
outputs = [
"out"
"man"
"doc"
];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
xorg.libXt
xorg.libX11
xorg.libXinerama
imlib2Full
libjpeg
libpng
curl
libexif
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"exif=1"
]
++ lib.optional stdenv.hostPlatform.isDarwin "verscmp=0"
++ lib.optional enableAutoreload "inotify=1";
installTargets = [ "install" ];
postInstall = ''
wrapProgram "$out/bin/feh" --prefix PATH : "${
lib.makeBinPath [
libjpeg
jpegexiforient
]
}" \
--add-flags '--theme=feh'
'';
nativeCheckInputs = lib.singleton (perl.withPackages (p: [ p.TestCommand ]));
doCheck = true;
meta = with lib; {
description = "Light-weight image viewer";
homepage = "https://feh.finalrewind.org/";
# released under a variant of the MIT license
# https://spdx.org/licenses/MIT-feh.html
license = licenses.mit-feh;
maintainers = with maintainers; [
gepbird
globin
];
platforms = platforms.unix;
mainProgram = "feh";
};
})