nixpkgs/pkgs/development/tools/dep2nix/default.nix

35 lines
823 B
Nix
Raw Normal View History

2018-06-01 21:02:24 +00:00
{ stdenv, fetchFromGitHub, buildGoPackage
2018-09-11 11:47:16 +00:00
, makeWrapper, nix-prefetch-scripts }:
2018-06-01 21:02:24 +00:00
buildGoPackage rec {
2019-04-10 20:29:30 +00:00
pname = "dep2nix";
version = "unstable-2019-04-02";
2018-06-01 21:02:24 +00:00
goPackagePath = "github.com/nixcloud/dep2nix";
src = fetchFromGitHub {
owner = "nixcloud";
2019-04-10 20:29:30 +00:00
repo = pname;
rev = "830684f920333b8ff0946d6b807e8be642eec3ef";
sha256 = "17sjxhzhmz4893x3x054anp4xvqd1px15nv3fj2m7i6r0vbgpm0j";
2018-06-01 21:02:24 +00:00
};
nativeBuildInputs = [
makeWrapper
];
postFixup = ''
wrapProgram $bin/bin/dep2nix \
2018-09-11 11:47:16 +00:00
--prefix PATH : ${nix-prefetch-scripts}/bin
2018-06-01 21:02:24 +00:00
'';
2018-09-11 11:56:14 +00:00
goDeps = ./deps.nix;
2018-06-01 21:02:24 +00:00
meta = with stdenv.lib; {
description = "Convert `Gopkg.lock` files from golang dep into `deps.nix`";
license = licenses.bsd3;
homepage = https://github.com/nixcloud/dep2nix;
maintainers = [ maintainers.mic92 ];
};
}