mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
appimageTools,
|
|
fetchurl,
|
|
}:
|
|
|
|
let
|
|
version = "1.4.2";
|
|
pname = "quba";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}.AppImage";
|
|
hash = "sha256-3goMWN5GeQaLJimUKbjozJY/zJmqc9Mvy2+6bVSt1p0=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType1 { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType1 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
'';
|
|
|
|
meta = {
|
|
description = "Viewer for electronic invoices";
|
|
homepage = "https://github.com/ZUGFeRD/quba-viewer";
|
|
downloadPage = "https://github.com/ZUGFeRD/quba-viewer/releases";
|
|
license = lib.licenses.asl20;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
maintainers = with lib.maintainers; [ onny ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|