summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-13 08:32:42 +0000
committerGitHub <noreply@github.com>2023-01-13 08:32:42 +0000
commit1b0941f6462cbffd045afcaebf0b2cb1926224c4 (patch)
tree8e1f252a0de2004be0660002384bb65d86c20bab
parent2ec6e40b0cff0fc528703512c642589426a3a43d (diff)
parent754a44d85bc1c1e78b791a71b42cb8e45bd8c4e1 (diff)
Merge pull request #208961 from paperdigits/darktable42
darktable: 4.0.0 -> 4.2.0 & lensfun: 0.3.95 -> 0.3.3
-rw-r--r--pkgs/applications/graphics/darktable/default.nix6
-rw-r--r--pkgs/development/libraries/lensfun/default.nix26
2 files changed, 22 insertions, 10 deletions
diff --git a/pkgs/applications/graphics/darktable/default.nix b/pkgs/applications/graphics/darktable/default.nix
index c9d5afce614c..cc727a9a8509 100644
--- a/pkgs/applications/graphics/darktable/default.nix
+++ b/pkgs/applications/graphics/darktable/default.nix
@@ -27,6 +27,7 @@
, libpng
, librsvg
, libtiff
+, libjxl
, openexr_3
, osm-gps-map
, pkg-config
@@ -57,12 +58,12 @@
}:
stdenv.mkDerivation rec {
- version = "4.0.0";
+ version = "4.2.0";
pname = "darktable";
src = fetchurl {
url = "https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz";
- sha256 = "0bfcag6bj5vcmg4z4xjirs43iafcx89al6jl41i5mrhpjzszh5hl";
+ sha256 = "18b0917fdfe9b09f66c279a681cc3bd52894a566852bbf04b2e179ecfdb11af9";
};
nativeBuildInputs = [ cmake ninja llvm_13 pkg-config intltool perl desktop-file-utils wrapGAppsHook ];
@@ -83,6 +84,7 @@ stdenv.mkDerivation rec {
libpng
librsvg
libtiff
+ libjxl
openexr_3
sqlite
libxslt
diff --git a/pkgs/development/libraries/lensfun/default.nix b/pkgs/development/libraries/lensfun/default.nix
index a889e5358a50..2f0e2148dfeb 100644
--- a/pkgs/development/libraries/lensfun/default.nix
+++ b/pkgs/development/libraries/lensfun/default.nix
@@ -1,7 +1,7 @@
-{ lib, stdenv, fetchFromGitHub, pkg-config, glib, zlib, libpng, cmake }:
+{ lib, stdenv, fetchFromGitHub, pkg-config, glib, zlib, libpng, cmake, libxml2, python3 }:
let
- version = "0.3.95";
+ version = "0.3.3";
pname = "lensfun";
# Fetch a more recent version of the repo containing a more recent lens
@@ -9,8 +9,8 @@ let
lensfunDatabase = fetchFromGitHub {
owner = "lensfun";
repo = "lensfun";
- rev = "4672d765a17bfef7bc994ca7008cb717c61045d5";
- sha256 = "00x35xhpn55j7f8qzakb6wl1ccbljg1gqjb93jl9w3mha2bzsr41";
+ rev = "ec9412d27d5fa8f377848a59c768b12c243cb80d";
+ sha256 = "sha256-/u/3oQzac/dQrgFaiYvzT5uQ108XarkXnA2DByA5sic=";
};
in
@@ -21,16 +21,26 @@ stdenv.mkDerivation {
owner = "lensfun";
repo = "lensfun";
rev = "v${version}";
- sha256 = "0isli0arns8bmxqpbr1jnbnqh5wvspixdi51adm671f9ngng7x5r";
+ sha256 = "0ixf0f7qv0mc7zrw9w1sb60w833g4rqrfj8cjxwzv2vimqcksccz";
};
# replace database with a more recent snapshot
+ # the mastr branch uses version 2 profiles, while 0.3.3 requires version 1 profiles,
+ # so we run the conversion tool the project provides,
+ # then untar the verson 1 profiles into the source dir before we build
prePatch = ''
- rm -R ./data/db
- cp -R ${lensfunDatabase}/data/db ./data
+ rm -R data/db
+ python3 ${lensfunDatabase}/tools/lensfun_convert_db_v2_to_v1.py $TMPDIR ${lensfunDatabase}/data/db
+ mkdir -p data/db
+ tar xvf $TMPDIR/db/version_1.tar -C data/db
+ date +%s > data/db/timestamp.txt
'';
- nativeBuildInputs = [ cmake pkg-config ];
+ nativeBuildInputs = [
+ cmake pkg-config
+ python3 python3.pkgs.lxml # For the db converison
+ ];
+
buildInputs = [ glib zlib libpng ];
cmakeFlags = [ "-DINSTALL_HELPER_SCRIPTS=OFF" ];