mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
02ffdfc685
builds happily on darwin for me
31 lines
753 B
Nix
31 lines
753 B
Nix
{ lib, mkDerivation, fetchFromGitHub, cmake,
|
|
qtbase, cfitsio, gsl, wcslib, withTester ? false }:
|
|
|
|
mkDerivation rec {
|
|
pname = "stellarsolver";
|
|
version = "1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rlancaste";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-PiRXNiemJ+UjVhmd2KPcTKJoDW9K9QBf62nkP1LlOfw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ qtbase cfitsio gsl wcslib ];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_TESTER=${if withTester then "on" else "off"}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/rlancaste/stellarsolver";
|
|
description = "Astrometric plate solving library";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|