forked from mirrors/gomod2nix
19 lines
472 B
Nix
19 lines
472 B
Nix
{
|
|
description = "Convert go.mod/go.sum to Nix packages";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
inputs.utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in {
|
|
overlay = final: prev: {
|
|
buildGoApplication = final.callPackage ./builder { };
|
|
};
|
|
|
|
defaultPackage = pkgs.callPackage ./default.nix { };
|
|
|
|
});
|
|
|
|
}
|