initial commit
This commit is contained in:
parent
39c67e77ec
commit
6490b8fef6
16 changed files with 1910 additions and 0 deletions
43
flake.nix
Normal file
43
flake.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
inputs = {
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = inputs:
|
||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
perSystem = {
|
||||
lib,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
_module.args.pkgs = import inputs.nixpkgs {inherit system;};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [just dart oauth2c watchexec];
|
||||
};
|
||||
|
||||
packages.default = pkgs.buildDartApplication {
|
||||
pname = "lasuite-docs-proxy";
|
||||
version = "1.0.0";
|
||||
src = ./.;
|
||||
|
||||
dartConfigHook = "packageRun build_runner build";
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
preInstall = "set -x";
|
||||
|
||||
meta = {
|
||||
homepage = "https://git.federated.nexus/Henry-Hiles/lasuite-docs-proxy";
|
||||
description = "A proxy for lasuite docs s3 to work with caddy. For personal use mainly, probably won't work for you without patching (feel free to PR).";
|
||||
mainProgram = "lasuite-docs-proxy";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = [lib.maintainers.quadradical];
|
||||
};
|
||||
};
|
||||
};
|
||||
flake.nixosModules.default = import ./module.nix inputs.self;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue