about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/astronomy/siril/default.nix
blob: 7ae3e011973e11a5f0365652faff5ef167b91069 (plain) (blame)
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
{ stdenv, fetchFromGitLab, fetchFromGitHub, pkg-config, meson, ninja,
  git, criterion, wrapGAppsHook, gtk3, libconfig, gnuplot, opencv,
  fftwFloat, cfitsio, gsl, exiv2, curl, librtprocess, ffmpeg,
  libraw, libtiff, libpng, libjpeg, libheif, ffms
}:

stdenv.mkDerivation rec {
  pname = "siril";
  version = "0.99.6";

  src = fetchFromGitLab {
    owner = "free-astro";
    repo = pname;
    rev = version;
    sha256 = "06vh8x45gv0gwlnqjwxglf12jmpdaxkiv5sixkqh20420wabx3ha";
  };

  nativeBuildInputs = [
    meson ninja pkg-config git criterion wrapGAppsHook
  ];

  buildInputs = [
    gtk3 cfitsio gsl exiv2 gnuplot curl opencv fftwFloat librtprocess
    libconfig libraw libtiff libpng libjpeg libheif ffms ffmpeg
  ];

  # Necessary because project uses default build dir for flatpaks/snaps
  dontUseMesonConfigure = true;

  configureScript = ''
    ${meson}/bin/meson --buildtype release nixbld .
  '';

  postConfigure = ''
    cd nixbld
  '';

  meta = with stdenv.lib; {
    homepage = "https://www.siril.org/";
    description = "Astronomical image processing tool";
    license = licenses.gpl3;
    maintainers = with maintainers; [ hjones2199 ];
    platforms = [ "x86_64-linux" ];
  };
}