Files
nixpkgs/pkgs/by-name/qi/qiv/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

47 lines
851 B
Nix

{
lib,
stdenv,
fetchFromGitea,
pkg-config,
gtk3,
file,
lcms2,
libexif,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "qiv";
version = "3.0.2";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "ciberandy";
repo = "qiv";
tag = "v${finalAttrs.version}";
hash = "sha256-U++ZyJ0cVa5x/1Me7Em1W33jAYe3Q/TfMZgPj71ZaFA=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
gtk3
file
lcms2
libexif
];
preBuild = ''
substituteInPlace Makefile \
--replace-fail /usr/local "$out" \
--replace-fail /man/ /share/man/ \
--replace-fail /share/share/ /share/
'';
meta = {
description = "Quick image viewer";
homepage = "http://spiegl.de/qiv/";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
mainProgram = "qiv";
};
})