mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{ 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
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "siril";
|
|
version = "1.2.4";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "free-astro";
|
|
repo = "siril";
|
|
rev = version;
|
|
hash = "sha256-orNu9qo7sutMUPeIPPhxKETEKbCm4D6nAuo4Hc/8Bdo=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.siril.org/";
|
|
description = "Astrophotographic image processing tool";
|
|
license = licenses.gpl3Plus;
|
|
changelog = "https://gitlab.com/free-astro/siril/-/blob/HEAD/ChangeLog";
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|