1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
meson,
ninja,
cmake,
git,
criterion,
gtk3,
libconfig,
gnuplot,
opencv,
json-glib,
fftwFloat,
cfitsio,
gsl,
exiv2,
librtprocess,
wcslib,
ffmpeg,
libraw,
libtiff,
libpng,
libjpeg,
libheif,
ffms,
wrapGAppsHook3,
curl,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "siril";
version = "1.2.6";
src = fetchFromGitLab {
owner = "free-astro";
repo = "siril";
tag = "${finalAttrs.version}";
hash = "sha256-pSJp4Oj8x4pKuwPSaSyGbyGfpnanoWBxAdXtzGTP7uA=";
};
nativeBuildInputs = [
meson
ninja
cmake
pkg-config
git
criterion
wrapGAppsHook3
];
buildInputs = [
gtk3
cfitsio
gsl
exiv2
gnuplot
opencv
fftwFloat
librtprocess
wcslib
libconfig
libraw
libtiff
libpng
libjpeg
libheif
ffms
ffmpeg
json-glib
curl
];
# Necessary because project uses default build dir for flatpaks/snaps
dontUseMesonConfigure = true;
dontUseCmakeConfigure = true;
# Meson fails to find libcurl unless the option is specifically enabled
configureScript = ''
${meson}/bin/meson setup -Denable-libcurl=yes --buildtype release nixbld .
'';
postConfigure = ''
cd nixbld
'';
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
homepage = "https://www.siril.org/";
description = "Astrophotographic image processing tool";
license = lib.licenses.gpl3Plus;
changelog = "https://gitlab.com/free-astro/siril/-/blob/HEAD/ChangeLog";
maintainers = with lib.maintainers; [ hjones2199 ];
platforms = lib.platforms.linux;
};
})
|