depot/third_party/nixpkgs/pkgs/applications/science/astronomy/siril/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

45 lines
1.2 KiB
Nix

{ 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
}:
stdenv.mkDerivation rec {
pname = "siril";
version = "0.99.8.1";
src = fetchFromGitLab {
owner = "free-astro";
repo = pname;
rev = version;
sha256 = "0h3slgpj6zdc0rwmyr9zb0vgf53283hpwb7h26skdswmggsk90i5";
};
nativeBuildInputs = [
meson ninja pkg-config git criterion wrapGAppsHook
];
buildInputs = [
gtk3 cfitsio gsl exiv2 gnuplot opencv fftwFloat librtprocess wcslib
libconfig libraw libtiff libpng libjpeg libheif ffms ffmpeg json-glib
];
# 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; {
homepage = "https://www.siril.org/";
description = "Astrophotographic image processing tool";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hjones2199 ];
platforms = [ "x86_64-linux" ];
};
}