2018-01-09 20:54:37 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, doxygen, extra-cmake-modules, wrapGAppsHook, fetchpatch
|
2017-02-18 18:55:57 +01:00
|
|
|
|
|
|
|
# For `digitaglinktree`
|
|
|
|
, perl, sqlite
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qtsvg
|
|
|
|
, qtwebkit
|
|
|
|
|
digikam: 5.4.0 -> 5.7.0
The build for the version 5.4.0 of digiKam has been broken at the time
prior to this commit, which is the main reason for this update as I
don't think it makes sense to fix the build for 5.4.0 when we're going
to update it anyway.
A lot has changed upstream between version 5.4.0 and 5.7.0 and it's too
much to be summarized here, so here are the URLs to the upstream
announcements:
* https://www.digikam.org/news/2017-03-14_digiKam_5.5.0_is_released/
* https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/
* https://www.digikam.org/news/2017-09-11-5.7.0_release_announcement/
On the packaging side, we now no longer have the patch that disables
-fno-operator-names because the build runs fine without that patch
(which didn't even apply but I didn't check why) and IMO it doesn't make
sense to rebase that patch for no reason.
Additionally, there were build time dependencies lurking around in
propagatedBuildInputs, which is kinda pointless and the application just
runs fine if those dependencies are listed in buildInputs.
While looking for clues about why that might be necessary I haven't
found any comment about it in the source nor a clarification within the
message of the commit where this has been introduced.
The commit in question is be7b7d908f82e8ab16c43ffd0e240addd6f4018a.
Apart from these changes, the rest is just adding a few dependencies
(kcalcore, libksane, mesa and pcre) to get less errors during
cmakeConfigurePhase.
I've tested digiKam by playing around within a VM using photos I
netcat'ed into it and it works so far. The VM was built using:
nix-build nixos --arg configuration '{ pkgs, ... }: {
imports = [ ./nixos/tests/common/user-account.nix ];
environment.systemPackages = [ pkgs.digikam ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.default = "plasma5";
virtualisation.memorySize = 1024;
}' -A vm
What I didn't test however was whether importing from a camera would
work (as I don't have one), but aside from that, the application seems
to run fine compared to the fact that it didn't even build until now :-)
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @the-kenny, @urkud, @viric, @cillianderoiste, @ttuegel
Cc: @jraygauthier, @fkz, @sh01, @lsix
2017-10-19 03:04:45 +02:00
|
|
|
, kcalcore
|
2017-02-18 18:55:57 +01:00
|
|
|
, kconfigwidgets
|
|
|
|
, kcoreaddons
|
|
|
|
, kdoctools
|
|
|
|
, kfilemetadata
|
|
|
|
, knotifications
|
|
|
|
, knotifyconfig
|
|
|
|
, ktextwidgets
|
|
|
|
, kwidgetsaddons
|
|
|
|
, kxmlgui
|
|
|
|
|
|
|
|
, bison
|
|
|
|
, boost
|
|
|
|
, eigen
|
|
|
|
, exiv2
|
|
|
|
, flex
|
|
|
|
, jasper
|
2015-10-04 02:07:00 +02:00
|
|
|
, lcms2
|
2017-02-18 18:55:57 +01:00
|
|
|
, lensfun
|
|
|
|
, libgphoto2
|
|
|
|
, libkipi
|
digikam: 5.4.0 -> 5.7.0
The build for the version 5.4.0 of digiKam has been broken at the time
prior to this commit, which is the main reason for this update as I
don't think it makes sense to fix the build for 5.4.0 when we're going
to update it anyway.
A lot has changed upstream between version 5.4.0 and 5.7.0 and it's too
much to be summarized here, so here are the URLs to the upstream
announcements:
* https://www.digikam.org/news/2017-03-14_digiKam_5.5.0_is_released/
* https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/
* https://www.digikam.org/news/2017-09-11-5.7.0_release_announcement/
On the packaging side, we now no longer have the patch that disables
-fno-operator-names because the build runs fine without that patch
(which didn't even apply but I didn't check why) and IMO it doesn't make
sense to rebase that patch for no reason.
Additionally, there were build time dependencies lurking around in
propagatedBuildInputs, which is kinda pointless and the application just
runs fine if those dependencies are listed in buildInputs.
While looking for clues about why that might be necessary I haven't
found any comment about it in the source nor a clarification within the
message of the commit where this has been introduced.
The commit in question is be7b7d908f82e8ab16c43ffd0e240addd6f4018a.
Apart from these changes, the rest is just adding a few dependencies
(kcalcore, libksane, mesa and pcre) to get less errors during
cmakeConfigurePhase.
I've tested digiKam by playing around within a VM using photos I
netcat'ed into it and it works so far. The VM was built using:
nix-build nixos --arg configuration '{ pkgs, ... }: {
imports = [ ./nixos/tests/common/user-account.nix ];
environment.systemPackages = [ pkgs.digikam ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.default = "plasma5";
virtualisation.memorySize = 1024;
}' -A vm
What I didn't test however was whether importing from a camera would
work (as I don't have one), but aside from that, the application seems
to run fine compared to the fact that it didn't even build until now :-)
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @the-kenny, @urkud, @viric, @cillianderoiste, @ttuegel
Cc: @jraygauthier, @fkz, @sh01, @lsix
2017-10-19 03:04:45 +02:00
|
|
|
, libksane
|
2017-02-18 18:55:57 +01:00
|
|
|
, liblqr1
|
2017-04-17 22:28:20 +02:00
|
|
|
, libqtav
|
2017-02-18 18:55:57 +01:00
|
|
|
, libusb1
|
|
|
|
, marble
|
2018-02-24 14:12:44 +01:00
|
|
|
, libGLU_combined
|
2017-02-18 18:55:57 +01:00
|
|
|
, mysql
|
digikam: 5.4.0 -> 5.7.0
The build for the version 5.4.0 of digiKam has been broken at the time
prior to this commit, which is the main reason for this update as I
don't think it makes sense to fix the build for 5.4.0 when we're going
to update it anyway.
A lot has changed upstream between version 5.4.0 and 5.7.0 and it's too
much to be summarized here, so here are the URLs to the upstream
announcements:
* https://www.digikam.org/news/2017-03-14_digiKam_5.5.0_is_released/
* https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/
* https://www.digikam.org/news/2017-09-11-5.7.0_release_announcement/
On the packaging side, we now no longer have the patch that disables
-fno-operator-names because the build runs fine without that patch
(which didn't even apply but I didn't check why) and IMO it doesn't make
sense to rebase that patch for no reason.
Additionally, there were build time dependencies lurking around in
propagatedBuildInputs, which is kinda pointless and the application just
runs fine if those dependencies are listed in buildInputs.
While looking for clues about why that might be necessary I haven't
found any comment about it in the source nor a clarification within the
message of the commit where this has been introduced.
The commit in question is be7b7d908f82e8ab16c43ffd0e240addd6f4018a.
Apart from these changes, the rest is just adding a few dependencies
(kcalcore, libksane, mesa and pcre) to get less errors during
cmakeConfigurePhase.
I've tested digiKam by playing around within a VM using photos I
netcat'ed into it and it works so far. The VM was built using:
nix-build nixos --arg configuration '{ pkgs, ... }: {
imports = [ ./nixos/tests/common/user-account.nix ];
environment.systemPackages = [ pkgs.digikam ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.default = "plasma5";
virtualisation.memorySize = 1024;
}' -A vm
What I didn't test however was whether importing from a camera would
work (as I don't have one), but aside from that, the application seems
to run fine compared to the fact that it didn't even build until now :-)
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @the-kenny, @urkud, @viric, @cillianderoiste, @ttuegel
Cc: @jraygauthier, @fkz, @sh01, @lsix
2017-10-19 03:04:45 +02:00
|
|
|
, opencv3
|
|
|
|
, pcre
|
2017-02-18 18:55:57 +01:00
|
|
|
, threadweaver
|
|
|
|
|
|
|
|
# For panorama and focus stacking
|
|
|
|
, enblend-enfuse
|
|
|
|
, hugin
|
|
|
|
, gnumake
|
|
|
|
|
|
|
|
, oxygen
|
2015-03-15 14:55:32 +01:00
|
|
|
}:
|
2010-02-10 16:06:50 +01:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation rec {
|
2017-02-18 18:55:57 +01:00
|
|
|
name = "digikam-${version}";
|
2018-01-09 20:54:37 +01:00
|
|
|
version = "5.8.0";
|
2010-02-10 16:06:50 +01:00
|
|
|
|
2018-01-09 20:54:37 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KDE";
|
|
|
|
repo = "digikam";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1bvidg0fn92xvw5brhb34lm7m4iy4jb5xpvnhbgh8vik2m4n41w1";
|
2017-02-18 18:55:57 +01:00
|
|
|
};
|
2010-10-05 19:44:05 +02:00
|
|
|
|
2017-10-21 08:42:00 +02:00
|
|
|
nativeBuildInputs = [ cmake doxygen extra-cmake-modules kdoctools wrapGAppsHook ];
|
2017-02-18 18:55:57 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bison
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
exiv2
|
|
|
|
flex
|
|
|
|
jasper
|
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libgphoto2
|
|
|
|
libkipi
|
digikam: 5.4.0 -> 5.7.0
The build for the version 5.4.0 of digiKam has been broken at the time
prior to this commit, which is the main reason for this update as I
don't think it makes sense to fix the build for 5.4.0 when we're going
to update it anyway.
A lot has changed upstream between version 5.4.0 and 5.7.0 and it's too
much to be summarized here, so here are the URLs to the upstream
announcements:
* https://www.digikam.org/news/2017-03-14_digiKam_5.5.0_is_released/
* https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/
* https://www.digikam.org/news/2017-09-11-5.7.0_release_announcement/
On the packaging side, we now no longer have the patch that disables
-fno-operator-names because the build runs fine without that patch
(which didn't even apply but I didn't check why) and IMO it doesn't make
sense to rebase that patch for no reason.
Additionally, there were build time dependencies lurking around in
propagatedBuildInputs, which is kinda pointless and the application just
runs fine if those dependencies are listed in buildInputs.
While looking for clues about why that might be necessary I haven't
found any comment about it in the source nor a clarification within the
message of the commit where this has been introduced.
The commit in question is be7b7d908f82e8ab16c43ffd0e240addd6f4018a.
Apart from these changes, the rest is just adding a few dependencies
(kcalcore, libksane, mesa and pcre) to get less errors during
cmakeConfigurePhase.
I've tested digiKam by playing around within a VM using photos I
netcat'ed into it and it works so far. The VM was built using:
nix-build nixos --arg configuration '{ pkgs, ... }: {
imports = [ ./nixos/tests/common/user-account.nix ];
environment.systemPackages = [ pkgs.digikam ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.default = "plasma5";
virtualisation.memorySize = 1024;
}' -A vm
What I didn't test however was whether importing from a camera would
work (as I don't have one), but aside from that, the application seems
to run fine compared to the fact that it didn't even build until now :-)
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @the-kenny, @urkud, @viric, @cillianderoiste, @ttuegel
Cc: @jraygauthier, @fkz, @sh01, @lsix
2017-10-19 03:04:45 +02:00
|
|
|
libksane
|
2017-02-18 18:55:57 +01:00
|
|
|
liblqr1
|
2017-04-17 22:28:20 +02:00
|
|
|
libqtav
|
2017-02-18 18:55:57 +01:00
|
|
|
libusb1
|
2018-02-24 14:12:44 +01:00
|
|
|
libGLU_combined
|
digikam: 5.4.0 -> 5.7.0
The build for the version 5.4.0 of digiKam has been broken at the time
prior to this commit, which is the main reason for this update as I
don't think it makes sense to fix the build for 5.4.0 when we're going
to update it anyway.
A lot has changed upstream between version 5.4.0 and 5.7.0 and it's too
much to be summarized here, so here are the URLs to the upstream
announcements:
* https://www.digikam.org/news/2017-03-14_digiKam_5.5.0_is_released/
* https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/
* https://www.digikam.org/news/2017-09-11-5.7.0_release_announcement/
On the packaging side, we now no longer have the patch that disables
-fno-operator-names because the build runs fine without that patch
(which didn't even apply but I didn't check why) and IMO it doesn't make
sense to rebase that patch for no reason.
Additionally, there were build time dependencies lurking around in
propagatedBuildInputs, which is kinda pointless and the application just
runs fine if those dependencies are listed in buildInputs.
While looking for clues about why that might be necessary I haven't
found any comment about it in the source nor a clarification within the
message of the commit where this has been introduced.
The commit in question is be7b7d908f82e8ab16c43ffd0e240addd6f4018a.
Apart from these changes, the rest is just adding a few dependencies
(kcalcore, libksane, mesa and pcre) to get less errors during
cmakeConfigurePhase.
I've tested digiKam by playing around within a VM using photos I
netcat'ed into it and it works so far. The VM was built using:
nix-build nixos --arg configuration '{ pkgs, ... }: {
imports = [ ./nixos/tests/common/user-account.nix ];
environment.systemPackages = [ pkgs.digikam ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.default = "plasma5";
virtualisation.memorySize = 1024;
}' -A vm
What I didn't test however was whether importing from a camera would
work (as I don't have one), but aside from that, the application seems
to run fine compared to the fact that it didn't even build until now :-)
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @the-kenny, @urkud, @viric, @cillianderoiste, @ttuegel
Cc: @jraygauthier, @fkz, @sh01, @lsix
2017-10-19 03:04:45 +02:00
|
|
|
opencv3
|
|
|
|
pcre
|
2017-02-18 18:55:57 +01:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
qtbase
|
|
|
|
qtxmlpatterns
|
|
|
|
qtsvg
|
|
|
|
qtwebkit
|
|
|
|
|
2018-01-09 20:54:37 +01:00
|
|
|
kcalcore
|
2017-05-16 17:56:41 +02:00
|
|
|
kconfigwidgets
|
|
|
|
kcoreaddons
|
|
|
|
kfilemetadata
|
|
|
|
knotifications
|
|
|
|
knotifyconfig
|
|
|
|
ktextwidgets
|
|
|
|
kwidgetsaddons
|
|
|
|
kxmlgui
|
|
|
|
|
|
|
|
marble
|
2017-02-18 18:55:57 +01:00
|
|
|
oxygen
|
2017-05-16 17:56:41 +02:00
|
|
|
threadweaver
|
2015-03-15 14:55:32 +01:00
|
|
|
];
|
2010-10-12 09:49:24 +02:00
|
|
|
|
2017-02-18 18:55:57 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_MYSQLSUPPORT=1"
|
|
|
|
"-DENABLE_INTERNALMYSQL=1"
|
2017-04-17 22:28:20 +02:00
|
|
|
"-DENABLE_MEDIAPLAYER=1"
|
2017-02-18 18:55:57 +01:00
|
|
|
];
|
2015-10-04 02:07:00 +02:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnumake hugin enblend-enfuse ]})
|
2017-02-18 18:55:57 +01:00
|
|
|
substituteInPlace $out/bin/digitaglinktree \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl" \
|
|
|
|
--replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3"
|
2015-10-04 02:07:00 +02:00
|
|
|
'';
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
meta = with lib; {
|
2010-02-10 16:06:50 +01:00
|
|
|
description = "Photo Management Program";
|
2017-05-16 17:56:41 +02:00
|
|
|
license = licenses.gpl2;
|
2010-02-11 00:38:02 +01:00
|
|
|
homepage = http://www.digikam.org;
|
2017-05-16 17:56:41 +02:00
|
|
|
maintainers = with maintainers; [ the-kenny ];
|
|
|
|
platforms = platforms.linux;
|
2010-02-10 16:06:50 +01:00
|
|
|
};
|
2017-02-18 18:55:57 +01:00
|
|
|
}
|