Rewrite to use nixpkgs
This commit is contained in:
parent
bd7b557550
commit
fc9cf546f6
32
flake.nix
32
flake.nix
|
@ -1,13 +1,29 @@
|
||||||
{
|
{
|
||||||
description = "Google Photo Uploader";
|
description = "Google Photo Uploader";
|
||||||
|
|
||||||
inputs = { gomod2nix.url = "github:nix-community/gomod2nix"; };
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||||
outputs = { self, gomod2nix, ... }: {
|
gomod2nix.url = "github:nix-community/gomod2nix";
|
||||||
packages = rec {
|
utils.url = "github:numtide/flake-utils";
|
||||||
default = google-photo-uploader;
|
|
||||||
google-photo-uploader =
|
|
||||||
import ./google-photo-uploader.nix { inherit gomod2nix; };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = { self, gomod2nix, nixpkgs, utils, ... }:
|
||||||
|
utils.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
overlays = [
|
||||||
|
(self: super: {
|
||||||
|
buildGoApplication =
|
||||||
|
gomod2nix.packages."${system}".buildGoApplication;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
packages = rec {
|
||||||
|
default = google-photo-uploader;
|
||||||
|
google-photo-uploader =
|
||||||
|
pkgs.callPackage ./google-photo-uploader.nix { };
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{ gomod2nix }:
|
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let buildGoApplication = gomod2nix.packages."${pkgs.system}".buildGoApplication;
|
pkgs.lib.buildGoApplication rec {
|
||||||
in buildGoApplication rec {
|
|
||||||
pname = "google-photo-uploader";
|
pname = "google-photo-uploader";
|
||||||
version = "1.6.1";
|
version = "1.6.1";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue