actualbudget-report/flake.nix
TheWanderingCrow abce9344cb wip
2025-12-22 17:54:43 -05:00

59 lines
1.5 KiB
Nix

{
description = "actualbudget-report";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
inputs@{
self,
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
flake.nixosModules.default =
{ lib, pkgs, ... }:
{
imports = [ ./modules/actualbudget-report ];
options.services.actualbudget-report.package = lib.mkPackageOption pkgs "actualbudget-report" {
default = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
};
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-1Z3+Efx0MCsZhfz49nKsdaWgyVt9+7kekwgfQyaYUxQ=";
};
vendorHash = "sha256-NHTKwUSIbNCUco88JbHOo3gt6S37ggee+LWNbHaRGEs=";
};
devShells.default = pkgs.mkShell {
ENVIRONMENT = "dev";
nativeBuildInputs = with pkgs; [
devenv
];
};
};
};
}