mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 20:19:08 +00:00
Add buildGoApplication and mkGoEnv parameters to gomod2nix expression
This is so nixpkgs can inject it from another location.
This commit is contained in:
parent
3e9c89c6dc
commit
704aa9566a
1 changed files with 6 additions and 6 deletions
12
generic.nix
12
generic.nix
|
@ -9,13 +9,11 @@
|
|||
, makeWrapper
|
||||
, installShellFiles
|
||||
, fetchFromGitHub
|
||||
, buildGoApplication ? (callPackage ./builder { }).buildGoApplication
|
||||
, mkGoEnv ? (callPackage ./builder { }).buildGoApplication
|
||||
}:
|
||||
|
||||
let
|
||||
builder = callPackage ./builder { };
|
||||
|
||||
in
|
||||
builder.buildGoApplication {
|
||||
buildGoApplication {
|
||||
pname = "gomod2nix";
|
||||
inherit version modules src go;
|
||||
|
||||
|
@ -25,7 +23,9 @@ builder.buildGoApplication {
|
|||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
passthru = builder;
|
||||
passthru = {
|
||||
inherit buildGoApplication mkGoEnv;
|
||||
};
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform == stdenv.targetPlatform) ''
|
||||
$out/bin/gomod2nix completion bash > gomod2nix.bash
|
||||
|
|
Loading…
Reference in a new issue