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, ... }:
|
2024-01-27 11:15:36 -08:00
|
|
|
utils.lib.eachDefaultSystem (system:
|
2024-01-27 11:25:11 -08:00
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
inherit (gomod2nix.legacyPackages."${system}") buildGoApplication;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2024-01-27 10:19:46 -08:00
|
|
|
in {
|
|
|
|
packages = rec {
|
|
|
|
default = google-photo-uploader;
|
2024-01-27 11:25:11 -08:00
|
|
|
google-photo-uploader =
|
|
|
|
pkgs.callPackage ./google-photo-uploader.nix { };
|
2024-01-27 10:19:46 -08:00
|
|
|
};
|
|
|
|
});
|
2024-01-27 09:53:47 -08:00
|
|
|
}
|