vgo2nix: init at unstable-2018-10-14
This commit is contained in:
parent
5cd6c65054
commit
5f33fbbc7b
41
pkgs/development/tools/vgo2nix/default.nix
Normal file
41
pkgs/development/tools/vgo2nix/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildGoPackage
|
||||
, go
|
||||
, makeWrapper
|
||||
, nix-prefetch-git
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "vgo2nix-${version}";
|
||||
version = "unstable-2018-10-14";
|
||||
goPackagePath = "github.com/adisbladis/vgo2nix";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "adisbladis";
|
||||
repo = "vgo2nix";
|
||||
rev = "a36137a2b9675f5e9b7e0a7840bc9fe9f2414d4e";
|
||||
sha256 = "1658hr1535v8w3s41q0bcgk8hmisjn8gcw7i3n2d2igszn1dp0q4";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
allowGoReference = true;
|
||||
|
||||
postInstall = with stdenv; let
|
||||
binPath = lib.makeBinPath [ nix-prefetch-git go ];
|
||||
in ''
|
||||
wrapProgram $bin/bin/vgo2nix --prefix PATH : ${binPath}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert go.mod files to nixpkgs buildGoPackage compatible deps.nix files";
|
||||
homepage = https://github.com/adisbladis/vgo2nix;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ adisbladis ];
|
||||
};
|
||||
|
||||
}
|
12
pkgs/development/tools/vgo2nix/deps.nix
generated
Normal file
12
pkgs/development/tools/vgo2nix/deps.nix
generated
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
|
||||
{
|
||||
goPackagePath = "golang.org/x/tools";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/tools";
|
||||
rev = "ded554d0681e";
|
||||
sha256 = "04rlq9hc3ccww9sbsrl48fl6wbjprb136rqxyr7dmgfj444aml56";
|
||||
};
|
||||
}
|
||||
]
|
@ -12907,6 +12907,8 @@ with pkgs;
|
||||
|
||||
leaps = callPackage ../development/tools/leaps { };
|
||||
|
||||
vgo2nix = callPackage ../development/tools/vgo2nix { };
|
||||
|
||||
ws = callPackage ../development/tools/ws { };
|
||||
|
||||
### DEVELOPMENT / JAVA MODULES
|
||||
@ -18597,7 +18599,7 @@ with pkgs;
|
||||
rclone = callPackage ../applications/networking/sync/rclone { };
|
||||
|
||||
rclone-browser = libsForQt5.callPackage ../applications/networking/sync/rclone/browser.nix { };
|
||||
|
||||
|
||||
rcs = callPackage ../applications/version-management/rcs { };
|
||||
|
||||
rdesktop = callPackage ../applications/networking/remote/rdesktop { };
|
||||
|
Loading…
Reference in New Issue
Block a user