forked from mirrors/gomod2nix
Fix: flake overlay
This commit is contained in:
parent
f8ad3b8024
commit
0333f00e5f
1 changed files with 21 additions and 9 deletions
30
flake.nix
30
flake.nix
|
@ -5,18 +5,30 @@
|
|||
|
||||
inputs.utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
{
|
||||
overlay = final: prev: {
|
||||
buildGoApplication = final.callPackage ./builder { };
|
||||
gomod2nix = final.callPackage ./default.nix { };
|
||||
};
|
||||
|
||||
defaultPackage = pkgs.callPackage ./default.nix { };
|
||||
|
||||
});
|
||||
|
||||
} //
|
||||
(utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
self.overlay
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
defaultPackage = pkgs.callPackage ./default.nix { };
|
||||
devShell = with pkgs; mkShell {
|
||||
buildInputs = [
|
||||
gomod2nix
|
||||
];
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue