Try using nixpkgs...

This commit is contained in:
niten 2024-01-27 11:19:33 -08:00
parent 91233f71aa
commit 251d405d3a
2 changed files with 6 additions and 7 deletions

View File

@ -9,14 +9,12 @@
outputs = { self, gomod2nix, nixpkgs, utils, ... }: outputs = { self, gomod2nix, nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system: utils.lib.eachDefaultSystem (system:
let let inherit (gomod2nix.legacyPackages."${system}") buildGoApplication;
inherit (gomod2nix.legacyPackages."${system}") buildGoApplication;
inherit (nixpkgs) lib;
in { in {
packages = rec { packages = rec {
default = google-photo-uploader; default = google-photo-uploader;
google-photo-uploader = import ./google-photo-uploader.nix { google-photo-uploader = import ./google-photo-uploader.nix {
inherit lib buildGoApplication; inherit nixpkgs buildGoApplication;
}; };
}; };
}); });

View File

@ -1,10 +1,11 @@
{ lib, buildGoApplication, ... }: { nixpkgs, buildGoApplication, ... }:
with nixpkgs.lib;
buildGoApplication rec { buildGoApplication rec {
pname = "google-photo-uploader"; pname = "google-photo-uploader";
version = "1.6.1"; version = "1.6.1";
src = lib.fetchFromGitHub { src = nixpkgs.fetchFromGitHub {
owner = "int128"; owner = "int128";
repo = "gpup"; repo = "gpup";
rev = version; rev = version;
@ -13,7 +14,7 @@ buildGoApplication rec {
modules = ./gomod2nix.toml; modules = ./gomod2nix.toml;
meta = with lib; { meta = with nixpkgs.lib; {
description = "Google photos uploader, written in Go."; description = "Google photos uploader, written in Go.";
homepage = "https://github.com/int128/gpup"; homepage = "https://github.com/int128/gpup";
license = licenses.asl20; license = licenses.asl20;