Add flake, module
This commit is contained in:
parent
680d7fcd05
commit
f04d073e6b
4 changed files with 886 additions and 9 deletions
17
flake.nix
17
flake.nix
|
@ -4,13 +4,8 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
flake-parts,
|
||||
nixpkgs,
|
||||
self,
|
||||
...
|
||||
} @ inputs:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
outputs = inputs:
|
||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
perSystem = {
|
||||
lib,
|
||||
|
@ -18,7 +13,7 @@
|
|||
system,
|
||||
...
|
||||
}: {
|
||||
_module.args.pkgs = import nixpkgs {inherit system;};
|
||||
_module.args.pkgs = import inputs.nixpkgs {inherit system;};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [just dart oauth2c watchexec];
|
||||
|
@ -30,7 +25,9 @@
|
|||
src = ./.;
|
||||
|
||||
dartConfigHook = "packageRun build_runner build";
|
||||
autoPubspecLock = ./pubspec.lock;
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
preInstall = "set -x";
|
||||
|
||||
meta = {
|
||||
homepage = "https://git.federated.nexus/Henry-Hiles/matrixoidc";
|
||||
|
@ -40,6 +37,8 @@
|
|||
maintainers = [lib.maintainers.quadradical];
|
||||
};
|
||||
};
|
||||
|
||||
flake.nixosModules.default = import ./module.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue