2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, pkg-config, meson, ninja, cmake
|
2021-03-09 03:18:52 +00:00
|
|
|
, git, criterion, gtk3, libconfig, gnuplot, opencv, json-glib
|
|
|
|
, fftwFloat, cfitsio, gsl, exiv2, librtprocess, wcslib, ffmpeg
|
2024-05-15 15:35:15 +00:00
|
|
|
, libraw, libtiff, libpng, libjpeg, libheif, ffms, wrapGAppsHook3
|
|
|
|
, curl
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "siril";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.2.3";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "free-astro";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "siril";
|
2020-12-25 13:55:36 +00:00
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-JUMk2XHMOeocSpeeI+k3s9TsEQCdqz3oigTzuwRHbT4=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
meson ninja cmake pkg-config git criterion wrapGAppsHook3
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
2024-05-15 15:35:15 +00:00
|
|
|
curl
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Necessary because project uses default build dir for flatpaks/snaps
|
|
|
|
dontUseMesonConfigure = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# Meson fails to find libcurl unless the option is specifically enabled
|
2020-12-25 13:55:36 +00:00
|
|
|
configureScript = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
${meson}/bin/meson setup -Denable-libcurl=yes --buildtype release nixbld .
|
2020-12-25 13:55:36 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2021-06-28 23:13:55 +00:00
|
|
|
changelog = "https://gitlab.com/free-astro/siril/-/blob/HEAD/ChangeLog";
|
2020-12-25 13:55:36 +00:00
|
|
|
maintainers = with maintainers; [ hjones2199 ];
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = platforms.linux;
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
}
|