mirror of
https://github.com/status-im/status-app.git
synced 2026-08-27 07:01:14 +00:00
Precompile at package time (JDK in CI image / nix) and bundle the runtime bits into the app, resolved relative to the executable — downloaded builds run the simulator with just a JRE, no checkout.
31 lines
856 B
Nix
31 lines
856 B
Nix
{
|
|
description = "Status Desktop build tools";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
darwinSystems = [ "aarch64-darwin" "x86_64-darwin" ];
|
|
forDarwin = f: nixpkgs.lib.genAttrs darwinSystems f;
|
|
in {
|
|
packages = forDarwin (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
dmgbuild = pkgs.python3Packages.dmgbuild.overrideAttrs (old: rec {
|
|
version = "1.6.7";
|
|
src = pkgs.fetchPypi {
|
|
pname = "dmgbuild";
|
|
inherit version;
|
|
hash = "sha256-Z2sXrNRIiZ9tSoOyGE4GV0gEROy2rJxJIoie+tnl2/s=";
|
|
};
|
|
});
|
|
|
|
# JDK to precompile the keycard simulator when packaging a USE_SIMULATED_KEYCARD build
|
|
jdk = pkgs.jdk;
|
|
}
|
|
);
|
|
};
|
|
}
|