![Florian Klink](/assets/img/avatar_default.png)
The `[g-]lensfun-update-data` binaries can't really work on NixOS (as the database is immutable), and most other scripts seem to require the lensfun python bindings (which aren't installed either). Let's disable installing the helper scripts for now.
30 lines
787 B
Nix
30 lines
787 B
Nix
{ stdenv, fetchFromGitHub, pkg-config, glib, zlib, libpng, cmake }:
|
|
|
|
let
|
|
version = "0.3.95";
|
|
pname = "lensfun";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lensfun";
|
|
repo = "lensfun";
|
|
rev = "v${version}";
|
|
sha256 = "0isli0arns8bmxqpbr1jnbnqh5wvspixdi51adm671f9ngng7x5r";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ glib zlib libpng ];
|
|
|
|
cmakeFlags = [ "-DINSTALL_HELPER_SCRIPTS=OFF" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ flokli ];
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
description = "An opensource database of photographic lenses and their characteristics";
|
|
homepage = "https://lensfun.github.io";
|
|
};
|
|
}
|