forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ lib, 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 lib; {
|
|
homepage = "https://www.siril.org/";
|
|
description = "Astronomical image processing tool";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|