nixpkgs/pkgs/applications/graphics/xpano/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

64 lines
1.0 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, ninja
, opencv
, SDL2
, gtk3
, catch2_3
, spdlog
, exiv2
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "xpano";
version = "0.18.1";
src = fetchFromGitHub {
owner = "krupkat";
repo = pname;
rev = "v${version}";
sha256 = "iPGvCJz2iywpSePBZ3c8OiccKfwaGAToGaJfRhruUPk=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
ninja
pkg-config
wrapGAppsHook
];
buildInputs = [
opencv
SDL2
gtk3
spdlog
exiv2
];
checkInputs = [
catch2_3
];
doCheck = true;
cmakeFlags = [
"-DBUILD_TESTING=ON"
"-DXPANO_INSTALL_DESKTOP_FILES=ON"
];
meta = with lib; {
description = "A panorama stitching tool";
mainProgram = "Xpano";
homepage = "https://krupkat.github.io/xpano/";
changelog = "https://github.com/krupkat/xpano/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ krupkat ];
platforms = platforms.linux;
};
}