2021-01-11 00:14:34 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkg-config, glib, zlib, libpng, cmake }:
|
2010-05-03 04:45:52 +01:00
|
|
|
|
2021-01-11 00:14:34 +00:00
|
|
|
let
|
2018-07-18 19:33:13 +01:00
|
|
|
version = "0.3.95";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lensfun";
|
2021-01-11 00:14:34 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
2010-05-03 04:45:52 +01:00
|
|
|
|
2021-01-11 00:14:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lensfun";
|
|
|
|
repo = "lensfun";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0isli0arns8bmxqpbr1jnbnqh5wvspixdi51adm671f9ngng7x5r";
|
2010-05-03 04:45:52 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 00:14:34 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-03-22 15:55:27 +00:00
|
|
|
buildInputs = [ glib zlib libpng ];
|
2010-05-03 04:45:52 +01:00
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "-v" ];
|
2010-08-18 16:56:40 +01:00
|
|
|
|
2010-05-03 04:45:52 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-01 10:04:22 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2021-01-06 06:06:03 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
2010-08-18 16:56:40 +01:00
|
|
|
description = "An opensource database of photographic lenses and their characteristics";
|
2021-01-11 00:14:05 +00:00
|
|
|
homepage = "https://lensfun.github.io";
|
2010-05-03 04:45:52 +01:00
|
|
|
};
|
|
|
|
}
|