summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/darwin/update.nix
blob: b74cca802fcb1e2dbc1fab93e8ee3950ac2b3b07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Impure functions, for passthru.updateScript runtime only
{ aarch64Url
, x86_64Url
, version
, pkgs ? import ../../../../../default.nix { }
,
}:
let
  inherit (import ./update-utils.nix { inherit (pkgs) lib; })
    getLatestStableVersion
    getSha256;
in
pkgs.mkShell rec {
  buildInputs = [ pkgs.common-updater-scripts ];
  newVersion = getLatestStableVersion;
  newAarch64Sha256 = getSha256 aarch64Url version newVersion;
  newX86_64Sha256 = getSha256 x86_64Url version newVersion;
}