11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 hash = "sha256-1TZFw1Q9+FsGHwitErDhwyA941rtb+h9OgJLFLyhV7k=";
36 ++ lib.optional stdenv.hostPlatform.isLinux [
40 # We use a separate build-dir as otherwise ld seems to get confused between
41 # directory and executable name on buildPhase.
43 mkdir build && cd build
46 qmakeFlags = [ "../kitsas/kitsas.pro" ];
49 lib.optionalString stdenv.hostPlatform.isDarwin ''
50 mkdir -p $out/Applications
51 mv kitsas.app $out/Applications
53 + lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
54 install -Dm755 kitsas -t $out/bin
55 install -Dm644 ../kitsas.svg -t $out/share/icons/hicolor/scalable/apps
56 install -Dm644 ../kitsas.png -t $out/share/icons/hicolor/256x256/apps
57 install -Dm644 ../kitsas.desktop -t $out/share/applications
61 homepage = "https://github.com/artoh/kitupiikki";
62 description = "Accounting tool suitable for Finnish associations and small business";
63 mainProgram = "kitsas";
64 maintainers = with maintainers; [ gspia ];
65 license = licenses.gpl3Plus;
66 platforms = platforms.unix;