Files
status-app/flake.nix
T
Sale Djenic dde79aac96 feat(keycard): ship self-contained simulator in packages
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.
2026-08-06 13:00:42 +02:00

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;
}
);
};
}