toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / qu / quba / package.nix
blob1be9b1a481a7b2cd619b25821917c2a3fb4239ce
2   lib,
3   appimageTools,
4   fetchurl,
5 }:
7 let
8   version = "1.4.2";
9   pname = "quba";
11   src = fetchurl {
12     url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}.AppImage";
13     hash = "sha256-3goMWN5GeQaLJimUKbjozJY/zJmqc9Mvy2+6bVSt1p0=";
14   };
16   appimageContents = appimageTools.extractType1 { inherit pname version src; };
18 appimageTools.wrapType1 {
19   inherit pname version src;
21   extraInstallCommands = ''
22     install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
23     substituteInPlace $out/share/applications/${pname}.desktop \
24       --replace-fail 'Exec=AppRun' 'Exec=${pname}'
25     cp -r ${appimageContents}/usr/share/icons $out/share
26   '';
28   meta = {
29     description = "Viewer for electronic invoices";
30     homepage = "https://github.com/ZUGFeRD/quba-viewer";
31     downloadPage = "https://github.com/ZUGFeRD/quba-viewer/releases";
32     license = lib.licenses.asl20;
33     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
34     maintainers = with lib.maintainers; [ onny ];
35     platforms = [ "x86_64-linux" ];
36   };