google-photo-uploader/flake.nix

24 lines
641 B
Nix
Raw Normal View History

2024-01-27 09:53:47 -08:00
{
description = "Google Photo Uploader";
2024-01-27 10:19:46 -08:00
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
gomod2nix.url = "github:nix-community/gomod2nix";
utils.url = "github:numtide/flake-utils";
2024-01-27 09:53:47 -08:00
};
2024-01-27 10:19:46 -08:00
outputs = { self, gomod2nix, nixpkgs, utils, ... }:
utils.eachDefaultSystem (system:
let
2024-01-27 10:52:05 -08:00
inherit (gomod2nix.legacyPackages."${system}") buildGoApplication;
inherit (nixpkgs) lib;
2024-01-27 10:19:46 -08:00
in {
packages = rec {
default = google-photo-uploader;
2024-01-27 10:52:05 -08:00
google-photo-uploader = import ./google-photo-uploader.nix {
inherit lib buildGoApplication;
};
2024-01-27 10:19:46 -08:00
};
});
2024-01-27 09:53:47 -08:00
}