51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{
|
|
description = "actualbudget-report";
|
|
|
|
inputs = {
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
flake.nixosModules = {
|
|
default = ./modules/actualbudget-report;
|
|
};
|
|
perSystem =
|
|
{
|
|
config,
|
|
self',
|
|
inputs',
|
|
pkgs,
|
|
system,
|
|
...
|
|
}:
|
|
{
|
|
packages.default = pkgs.buildGoModule {
|
|
name = "actualbudget-report";
|
|
src = pkgs.fetchFromGitea {
|
|
domain = "git.wanderingcrow.net";
|
|
owner = "TheWanderingCrow";
|
|
repo = "actualbudget-report";
|
|
rev = "v0.1";
|
|
hash = "sha256-Jf/cnYdAYTHOBSY0DmqMFqErxtBJmaUPBriBqALpc2Q=";
|
|
};
|
|
vendorHash = "sha256-NHTKwUSIbNCUco88JbHOo3gt6S37ggee+LWNbHaRGEs=";
|
|
};
|
|
devShells.default = pkgs.mkShell {
|
|
ENVIRONMENT = "dev";
|
|
nativeBuildInputs = with pkgs; [
|
|
go
|
|
mailpit
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|