Skip to content

Commit

Permalink
added nix-prefetch-git and nix-prefetch-hg as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
qknight committed Sep 9, 2018
1 parent 74cc454 commit 2dfae9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ buildGoPackage rec {
goPackagePath = "github.com/nixcloud/dep2nix";

src = ./.;

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

goDeps = ./deps.nix;

postInstall = ''
wrapProgram $bin/bin/dep2nix --prefix PATH ':' ${binPath}
'';

meta = with stdenv.lib; {
description = "Convert `Gopkg.lock` files from golang dep into `deps.nix`";
license = licenses.bsd3;
homepage = https://github.com/nixcloud.io/dep2nix;
};

}

0 comments on commit 2dfae9e

Please sign in to comment.