Skip to content

Commit

Permalink
Merge pull request #115270 from gspia/kitsas
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Apr 12, 2021
2 parents 5995f65 + 8d75eaf commit f1ee447
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -3711,6 +3711,12 @@
githubId = 201997;
name = "Eric Seidel";
};
gspia = {
email = "iahogsp@gmail.com";
github = "gspia";
githubId = 3320792;
name = "gspia";
};
guibert = {
email = "david.guibert@gmail.com";
github = "dguibert";
Expand Down
51 changes: 51 additions & 0 deletions pkgs/applications/office/kitsas/default.nix
@@ -0,0 +1,51 @@
{ lib, mkDerivation, fetchFromGitHub, qmake, qtsvg, qtcreator, poppler, libzip, pkg-config }:

mkDerivation rec {
pname = "kitsas";
version = "2.3";

src = fetchFromGitHub {
owner = "artoh";
repo = "kitupiikki";
rev = "v${version}";
sha256 = "1qac6cxkb45rs5pschsf2rvpa789g27shmrwpshwahqzhw42xvgl";
};

nativeBuildInputs = [ pkg-config ];

buildInputs = [ qmake qtsvg poppler libzip ];

# We use a separate build-dir as otherwise ld seems to get confused between
# directory and executable name on buildPhase.
preConfigure = ''
mkdir build-linux
cd build-linux
'';

qmakeFlags = [
"../kitsas/kitsas.pro"
"-spec"
"linux-g++"
"CONFIG+=release"
];

preFixup = ''
make clean
rm Makefile
'';

installPhase = ''
mkdir -p $out/bin $out/share/applications
cp kitsas $out/bin
cp $src/kitsas.png $out/share/applications
cp $src/kitsas.desktop $out/share/applications
'';

meta = with lib; {
homepage = "https://github.com/artoh/kitupiikki";
description = "An accounting tool suitable for Finnish associations and small business";
maintainers = with maintainers; [ gspia ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -23906,6 +23906,8 @@ in
ffmpeg = ffmpeg_2;
};

kitsas = libsForQt5.callPackage ../applications/office/kitsas { };

kiwix = libsForQt5.callPackage ../applications/misc/kiwix { };

klayout = libsForQt5.callPackage ../applications/misc/klayout { };
Expand Down

0 comments on commit f1ee447

Please sign in to comment.