1a0302a145
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ 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;
|
|
};
|
|
}
|