chore: flatten repository history
This commit is contained in:
commit
3a03fab876
30 changed files with 7223 additions and 0 deletions
27
flake.nix
Normal file
27
flake.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
description = "gsmol: browser client for Smol Mail — bridge package and NixOS module";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
packages = forEachSystem (pkgs: {
|
||||
default = pkgs.callPackage ./nix/bridge.nix { };
|
||||
});
|
||||
|
||||
apps = forEachSystem (pkgs: {
|
||||
default = {
|
||||
type = "app";
|
||||
program = pkgs.lib.getExe self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
};
|
||||
});
|
||||
|
||||
# Curried on `self` so the module's default package is drawn from the
|
||||
# `packages` output above rather than a second, driftable copy.
|
||||
nixosModules.default = import ./nix/module.nix self;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue