mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
64 lines
1.0 KiB
Nix
64 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, ninja
|
|
, opencv
|
|
, SDL2
|
|
, gtk3
|
|
, catch2_3
|
|
, spdlog
|
|
, exiv2
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xpano";
|
|
version = "0.19.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krupkat";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-f2qoBpZ5lPBocPas8KMsY5bSYL20gO+ZHLz2R66qSig=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
opencv
|
|
SDL2
|
|
gtk3
|
|
spdlog
|
|
exiv2
|
|
];
|
|
|
|
checkInputs = [
|
|
catch2_3
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_TESTING=ON"
|
|
"-DXPANO_INSTALL_DESKTOP_FILES=ON"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "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;
|
|
};
|
|
}
|