Files
nixpkgs/pkgs/by-name/vp/vpv/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

70 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
libGL,
libpng,
libtiff,
libjpeg,
libX11,
SDL2,
gdal,
octave,
rustPlatform,
cargo,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vpv";
version = "0.9.0";
src = fetchFromGitHub {
owner = "kidanger";
repo = "vpv";
rev = "v${finalAttrs.version}";
sha256 = "sha256-eyfRMoocKEt0VezDRm5Tq7CjpEyfrcEb6WcUSO5M1Og=";
};
cargoRoot = "src/fuzzy-finder";
cargoDeps = rustPlatform.fetchCargoVendor {
src = finalAttrs.src;
sourceRoot = "${finalAttrs.src.name}/src/fuzzy-finder";
hash = "sha256-4XxhKzrfTulAnLvlzRCrxSxuR+Nl/ANqcUem0YqCQ0Y=";
};
nativeBuildInputs = [
cmake
pkg-config
rustPlatform.cargoSetupHook
cargo
];
buildInputs = [
libGL
libpng
libtiff
libjpeg
libX11
SDL2
gdal
octave
];
cmakeFlags = [
"-DUSE_GDAL=ON"
"-DUSE_OCTAVE=ON"
"-DVPV_VERSION=v${finalAttrs.version}"
"-DBUILD_TESTING=ON"
];
meta = {
homepage = "https://github.com/kidanger/vpv";
description = "Image viewer for image processing experts";
maintainers = [ lib.maintainers.kidanger ];
license = lib.licenses.gpl3;
broken = stdenv.hostPlatform.isDarwin; # the CMake expects the SDL2::SDL2main target for darwin
mainProgram = "vpv";
};
})