From d517f1465dfe3549ba7f32302eea5432923f308f Mon Sep 17 00:00:00 2001 From: arthsmn Date: Fri, 24 Nov 2023 13:39:51 -0300 Subject: [PATCH] irpf: 1.3 -> 1.5 Make cp not preserve the permissions, avoiding having a lot of executable files. --- pkgs/applications/finance/irpf/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/finance/irpf/default.nix b/pkgs/applications/finance/irpf/default.nix index 9cf86f825629..2d280a41c5df 100644 --- a/pkgs/applications/finance/irpf/default.nix +++ b/pkgs/applications/finance/irpf/default.nix @@ -11,7 +11,7 @@ stdenvNoCC.mkDerivation rec { pname = "irpf"; - version = "2023-1.3"; + version = "2023-1.5"; # https://www.gov.br/receitafederal/pt-br/centrais-de-conteudo/download/pgd/dirpf # Para outros sistemas operacionais -> Multi @@ -19,13 +19,13 @@ stdenvNoCC.mkDerivation rec { year = lib.head (lib.splitVersion version); in fetchzip { url = "https://downloadirpf.receita.fazenda.gov.br/irpf/${year}/irpf/arquivos/IRPF${version}.zip"; - sha256 = "sha256-W9n9YlOg9BYsESuU5NOn+Ff+I+7vlBpFuKzHsGVJwAA="; + hash = "sha256-L1X+xysQSJ43TO8NSdO+T4aalampd4REL+5Uv33kYUI="; }; nativeBuildInputs = [ unzip makeWrapper copyDesktopItems ]; desktopItems = [ - (makeDesktopItem rec { + (makeDesktopItem { name = pname; exec = pname; icon = "rfb64"; @@ -41,10 +41,9 @@ stdenvNoCC.mkDerivation rec { BASEDIR="$out/share/${pname}" mkdir -p "$BASEDIR" - cp -r help lib lib-modulos "$BASEDIR" + cp --no-preserve=mode -r help lib lib-modulos "$BASEDIR" - install -Dm755 irpf.jar "$BASEDIR/${pname}.jar" - install -Dm644 Leia-me.htm offline.png online.png pgd-updater.jar "$BASEDIR" + install -Dm644 irpf.jar Leia-me.htm offline.png online.png pgd-updater.jar "$BASEDIR" # make xdg-open overrideable at runtime makeWrapper ${jdk11}/bin/java $out/bin/${pname} \