Skip to content

Commit

Permalink
Added git and mercurial as dependencies (for git and hg commands need…
Browse files Browse the repository at this point in the history
…ed by godep)

Updated installation and usage instructions
  • Loading branch information
CrushedPixel committed Sep 9, 2018
1 parent 2dfae9e commit 383275f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ In other words: For go projects using [golang dep](https://github.com/golang/dep
git clone https://github.com/nixcloud/dep2nix
cd dep2nix
nix-env -f default.nix -i dep2nix
nix-env -i nix-prefetch-git (this step might not be needed anymore soon)

## Using dep2nix

cd yourproject (contains the Gopkg.lock)

dep2nix
Found 14 libraries to process:
github.com/Masterminds/semver github.com/Masterminds/vcs github.com/armon/go-radix github.com/boltdb/bolt github.com/golang/dep github.com/golang/protobuf github.com/jmank88/nuts github.com/nightlyone/lockfile github.com/pelletier/go-toml github.com/pkg/errors github.com/sdboyer/constext golang.org/x/net golang.org/x/sync golang.org/x/sys

dep2nix [-i Gopkg.lock] [-o deps.nix]
Found 14 projects to process.
* Processing: "github.com/Masterminds/semver"
* Processing: "github.com/Masterminds/vcs"
* Processing: "github.com/armon/go-radix"
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildGoPackage rec {
src = ./.;

buildInputs = [ makeWrapper ];
binPath = lib.makeBinPath [ nix-prefetch-git nix-prefetch-hg ];
binPath = lib.makeBinPath [ git nix-prefetch-git mercurial nix-prefetch-hg ];

goDeps = ./deps.nix;

Expand Down

0 comments on commit 383275f

Please sign in to comment.