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:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/applications/office/kmymoney/default.nix
Normal file
71
pkgs/applications/office/kmymoney/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ stdenv, lib, fetchurl, doxygen, extra-cmake-modules, graphviz, kdoctools
|
||||
, wrapQtAppsHook
|
||||
|
||||
, akonadi, alkimia, aqbanking, gmp, gwenhywfar, kactivities, karchive
|
||||
, kcmutils, kcontacts, kdewebkit, kdiagram, kholidays, kidentitymanagement
|
||||
, kitemmodels, libical, libofx, qgpgme
|
||||
|
||||
, sqlcipher
|
||||
|
||||
# Needed for running tests:
|
||||
, qtbase, xvfb-run
|
||||
|
||||
, python2, python3Packages
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kmymoney";
|
||||
version = "5.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/kmymoney/${version}/src/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-33ufeOhZb5nSgpXKc4cI8GVe4Fd4nf2SHHsbq5ZXgpg=";
|
||||
};
|
||||
|
||||
# Hidden dependency that wasn't included in CMakeLists.txt:
|
||||
NIX_CFLAGS_COMPILE = "-I${kitemmodels.dev}/include/KF5";
|
||||
|
||||
nativeBuildInputs = [
|
||||
doxygen extra-cmake-modules graphviz kdoctools python2
|
||||
python3Packages.wrapPython wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
akonadi alkimia aqbanking gmp gwenhywfar kactivities karchive kcmutils
|
||||
kcontacts kdewebkit kdiagram kholidays kidentitymanagement kitemmodels
|
||||
libical libofx qgpgme
|
||||
sqlcipher
|
||||
|
||||
# Put it into buildInputs so that CMake can find it, even though we patch
|
||||
# it into the interface later.
|
||||
python3Packages.weboob
|
||||
];
|
||||
|
||||
weboobPythonPath = [ python3Packages.weboob ];
|
||||
|
||||
postInstall = ''
|
||||
buildPythonPath "$weboobPythonPath"
|
||||
patchPythonScript "$out/share/kmymoney/weboob/kmymoneyweboob.py"
|
||||
|
||||
# Within the embedded Python interpreter, sys.argv is unavailable, so let's
|
||||
# assign it to a dummy value so that the assignment of sys.argv[0] injected
|
||||
# by patchPythonScript doesn't fail:
|
||||
sed -i -e '1i import sys; sys.argv = [""]' \
|
||||
"$out/share/kmymoney/weboob/kmymoneyweboob.py"
|
||||
'';
|
||||
|
||||
doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
installCheckInputs = [ xvfb-run ];
|
||||
installCheckPhase =
|
||||
lib.optionalString doInstallCheck ''
|
||||
xvfb-run -s '-screen 0 1024x768x24' make test \
|
||||
ARGS="-E '(reports-chart-test)'" # Test fails, so exclude it for now.
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Personal finance manager for KDE";
|
||||
homepage = "https://kmymoney.org/";
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue