uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948
this can do it nicely.

Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,13 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9b48beea..078ba20d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -603,7 +603,7 @@ ENDIF(APPLE)
#
# photoflow executable
#
-add_executable(photoflow main.cc ${RESOURCE_OBJECT})
+add_executable(photoflow main.cc version.cc ${RESOURCE_OBJECT})
IF(APPLE)
set_target_properties(photoflow PROPERTIES LINK_FLAGS " -framework ApplicationServices ")
ENDIF(APPLE)

View file

@ -0,0 +1,94 @@
{ automake
, cmake
, exiv2
, expat
, fetchFromGitHub
, fftw
, fftwFloat
, gettext
, glib
, gobject-introspection
, gtkmm2
, lcms2
, lensfun
, libexif
, libiptcdata
, libjpeg
, libraw
, libtiff
, libxml2
, ninja
, openexr
, pcre
, pkg-config
, pugixml
, lib, stdenv
, swig
, vips
}:
stdenv.mkDerivation rec {
pname = "photoflow";
version = "2020-08-28";
src = fetchFromGitHub {
owner = "aferrero2707";
repo = pname;
rev = "8472024fb91175791e0eb23c434c5b58ecd250eb";
sha256 = "1bq4733hbh15nwpixpyhqfn3bwkg38amdj2xc0my0pii8l9ln793";
};
patches = [ ./CMakeLists.patch ];
nativeBuildInputs = [
automake
cmake
gettext
glib
gobject-introspection
libxml2
ninja
pkg-config
swig
];
buildInputs = [
exiv2
expat
fftw
fftwFloat
gtkmm2 # Could be build with gtk3 but proper UI theme is missing and therefore not very usable with gtk3
# See: https://discuss.pixls.us/t/help-needed-for-gtk3-theme/5803
lcms2
lensfun
libexif
libiptcdata
libjpeg
libraw
libtiff
openexr
pcre
pugixml
vips
];
cmakeFlags = [
"-DBUNDLED_EXIV2=OFF"
"-DBUNDLED_LENSFUN=OFF"
"-DBUNDLED_GEXIV2=OFF"
];
meta = with lib; {
description = "A fully non-destructive photo retouching program providing a complete RAW image editing workflow";
homepage = "https://aferrero2707.github.io/PhotoFlow/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.MtP ];
platforms = platforms.linux;
# sse3 is not supported on aarch64
badPlatforms = [ "aarch64-linux" ];
# added 2021-09-30
# upstream seems pretty dead
#/build/source/src/operations/denoise.cc:30:10: fatal error: vips/cimg_funcs.h: No such file or directory
broken = true;
};
}