2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, fetchpatch, pkg-config, meson, ninja
|
2021-03-09 03:18:52 +00:00
|
|
|
, git, criterion, gtk3, libconfig, gnuplot, opencv, json-glib
|
|
|
|
, fftwFloat, cfitsio, gsl, exiv2, librtprocess, wcslib, ffmpeg
|
2021-05-20 23:08:51 +00:00
|
|
|
, libraw, libtiff, libpng, libjpeg, libheif, ffms, wrapGAppsHook
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "siril";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "0.99.8.1";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "free-astro";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "0h3slgpj6zdc0rwmyr9zb0vgf53283hpwb7h26skdswmggsk90i5";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
patches = [
|
|
|
|
# Backport fix for broken build on glib-2.68
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/free-astro/siril/-/commit/d319fceca5b00f156e1c5e3512d3ac1f41beb16a.diff";
|
|
|
|
sha256 = "00lq9wq8z48ly3hmkgzfqbdjaxr0hzyl2qwbj45bdnxfwqragh5m";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkg-config git criterion wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
gtk3 cfitsio gsl exiv2 gnuplot opencv fftwFloat librtprocess wcslib
|
|
|
|
libconfig libraw libtiff libpng libjpeg libheif ffms ffmpeg json-glib
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Necessary because project uses default build dir for flatpaks/snaps
|
|
|
|
dontUseMesonConfigure = true;
|
|
|
|
|
|
|
|
configureScript = ''
|
|
|
|
${meson}/bin/meson --buildtype release nixbld .
|
|
|
|
'';
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
cd nixbld
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://www.siril.org/";
|
2021-03-09 03:18:52 +00:00
|
|
|
description = "Astrophotographic image processing tool";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-12-25 13:55:36 +00:00
|
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|