12 stdenvNoCC.mkDerivation rec {
16 # https://www.gov.br/receitafederal/pt-br/centrais-de-conteudo/download/pgd/dirpf
17 # Para outros sistemas operacionais -> Multi
19 year = lib.head (lib.splitVersion version);
21 url = "https://downloadirpf.receita.fazenda.gov.br/irpf/${year}/irpf/arquivos/IRPF${version}.zip";
22 hash = "sha256-x47Ud/aSfPuZYMZSGhJLnNFtNE62I+WjaFFatJPMPYg=";
25 nativeBuildInputs = [ unzip makeWrapper copyDesktopItems ];
32 desktopName = "Imposto de Renda Pessoa Física";
33 comment = "Programa Oficial da Receita para elaboração do IRPF";
34 categories = [ "Office" ];
41 BASEDIR="$out/share/${pname}"
44 cp --no-preserve=mode -r help lib lib-modulos "$BASEDIR"
46 install -Dm644 irpf.jar Leia-me.htm offline.png online.png pgd-updater.jar "$BASEDIR"
48 # make xdg-open overrideable at runtime
49 makeWrapper ${jdk11}/bin/java $out/bin/${pname} \
50 --add-flags "-Dawt.useSystemAAFontSettings=on" \
51 --add-flags "-Dswing.aatext=true" \
52 --add-flags "-jar $BASEDIR/${pname}.jar" \
53 --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \
54 --set _JAVA_AWT_WM_NONREPARENTING 1 \
55 --set AWT_TOOLKIT MToolkit
57 mkdir -p $out/share/pixmaps
58 unzip -j lib/ppgd-icones-4.0.jar icones/rfb64.png -d $out/share/pixmaps
64 description = "Brazillian government application for reporting income tax";
66 Brazillian government application for reporting income tax.
68 IRFP - Imposto de Renda Pessoa Física - Receita Federal do Brasil.
70 homepage = "https://www.gov.br/receitafederal/pt-br";
71 license = licenses.unfree;
72 platforms = platforms.all;
73 sourceProvenance = with sourceTypes; [ binaryBytecode ];
74 maintainers = with maintainers; [ atila ];