Try using nixpkgs...
This commit is contained in:
parent
91233f71aa
commit
251d405d3a
|
@ -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;
|
||||
};
|
||||
};
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue