3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/astronomy/siril/default.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2021-02-24 20:20:13 +00:00
{ lib, stdenv, fetchFromGitLab, pkg-config, meson, ninja, wrapGAppsHook
, git, criterion, gtk3, libconfig, gnuplot, opencv, json-glib
, fftwFloat, cfitsio, gsl, exiv2, librtprocess, wcslib, ffmpeg
, libraw, libtiff, libpng, libjpeg, libheif, ffms
2020-11-10 19:46:33 +00:00
}:
stdenv.mkDerivation rec {
pname = "siril";
2021-02-24 20:20:13 +00:00
version = "0.99.8.1";
2020-11-10 19:46:33 +00:00
src = fetchFromGitLab {
owner = "free-astro";
repo = pname;
rev = version;
2021-02-24 20:20:13 +00:00
sha256 = "0h3slgpj6zdc0rwmyr9zb0vgf53283hpwb7h26skdswmggsk90i5";
2020-11-10 19:46:33 +00:00
};
nativeBuildInputs = [
meson ninja pkg-config git criterion wrapGAppsHook
];
buildInputs = [
2021-02-24 20:20:13 +00:00
gtk3 cfitsio gsl exiv2 gnuplot opencv fftwFloat librtprocess wcslib
libconfig libraw libtiff libpng libjpeg libheif ffms ffmpeg json-glib
2020-11-10 19:46:33 +00:00
];
# Necessary because project uses default build dir for flatpaks/snaps
dontUseMesonConfigure = true;
configureScript = ''
${meson}/bin/meson --buildtype release nixbld .
'';
postConfigure = ''
cd nixbld
'';
meta = with lib; {
2020-11-10 19:46:33 +00:00
homepage = "https://www.siril.org/";
2021-02-24 20:20:13 +00:00
description = "Astrophotographic image processing tool";
license = licenses.gpl3Plus;
2020-11-10 19:46:33 +00:00
maintainers = with maintainers; [ hjones2199 ];
platforms = [ "x86_64-linux" ];
};
}