gomod2nix/flake.nix

21 lines
527 B
Nix
Raw Normal View History

2020-10-29 12:56:41 +00:00
{
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 { };
gomod2nix = final.callPackage ./default.nix { };
2020-10-29 12:56:41 +00:00
};
defaultPackage = pkgs.callPackage ./default.nix { };
});
}