diff --git a/flake.nix b/flake.nix index 7d4701a..671905e 100644 --- a/flake.nix +++ b/flake.nix @@ -9,14 +9,12 @@ outputs = { self, gomod2nix, nixpkgs, utils, ... }: utils.lib.eachDefaultSystem (system: - let - inherit (gomod2nix.legacyPackages."${system}") buildGoApplication; - inherit (nixpkgs) lib; + let inherit (gomod2nix.legacyPackages."${system}") buildGoApplication; in { packages = rec { default = google-photo-uploader; google-photo-uploader = import ./google-photo-uploader.nix { - inherit lib buildGoApplication; + inherit nixpkgs buildGoApplication; }; }; }); diff --git a/google-photo-uploader.nix b/google-photo-uploader.nix index 265b882..06f8e40 100644 --- a/google-photo-uploader.nix +++ b/google-photo-uploader.nix @@ -1,10 +1,11 @@ -{ lib, buildGoApplication, ... }: +{ nixpkgs, buildGoApplication, ... }: +with nixpkgs.lib; buildGoApplication rec { pname = "google-photo-uploader"; version = "1.6.1"; - src = lib.fetchFromGitHub { + src = nixpkgs.fetchFromGitHub { owner = "int128"; repo = "gpup"; rev = version; @@ -13,7 +14,7 @@ buildGoApplication rec { modules = ./gomod2nix.toml; - meta = with lib; { + meta = with nixpkgs.lib; { description = "Google photos uploader, written in Go."; homepage = "https://github.com/int128/gpup"; license = licenses.asl20;