Files
status-app/flake.nix
2026-08-27 15:32:28 +03:00

68 lines
1.6 KiB
Nix

{
description = "status-app";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
# qt 6.11.0
# nixos-26.05 branch
nixpkgs.url = "github:NixOS/nixpkgs/705e9929918b43bd7b715dc0a878ac870449bb03";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixgl = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/nixGL";
};
};
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
nixgl,
}: let
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
overlays = [
nixgl.overlay
self.overlays.default
(final: prev: {
unstablePkgs = import nixpkgs-unstable {
inherit (prev.stdenv.hostPlatform) system;
};
})
];
}
);
in {
overlays.default = import ./nix/overlays.nix;
devShells = forAllSystems (system: {
default = pkgsFor.${system}.callPackage ./nix/devshell.nix {};
});
packages = forAllSystems (
system: let
pkgs = pkgsFor.${system};
in
{
inherit (pkgs) jdk; # keycard simulator precompile (USE_SIMULATED_KEYCARD packages)
}
// nixpkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
inherit (pkgs) fileicon;
inherit (pkgs.unstablePkgs.python313Packages) dmgbuild;
}
);
};
}