2020-12-03 15:00:17 +00:00
|
|
|
{ buildGoApplication, lib, makeWrapper, nix-prefetch-git }:
|
2020-07-23 09:34:26 +00:00
|
|
|
|
2020-12-03 15:00:17 +00:00
|
|
|
buildGoApplication {
|
2020-07-23 09:34:26 +00:00
|
|
|
pname = "gomod2nix";
|
|
|
|
version = "0.1";
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
modules = ./gomod2nix.toml;
|
2020-07-24 09:37:14 +00:00
|
|
|
|
2020-12-03 15:00:17 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-07-24 09:37:14 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-12-03 15:00:17 +00:00
|
|
|
wrapProgram $out/bin/gomod2nix --prefix PATH : ${lib.makeBinPath [ nix-prefetch-git ]}
|
2020-07-24 09:37:14 +00:00
|
|
|
rm -f $out/bin/builder
|
|
|
|
'';
|
2020-07-23 09:34:26 +00:00
|
|
|
}
|