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

35 lines
825 B
Nix
Raw Normal View History

2018-06-01 22:02:24 +01:00
{ stdenv, fetchFromGitHub, buildGoPackage
2018-09-11 12:47:16 +01:00
, makeWrapper, nix-prefetch-scripts }:
2018-06-01 22:02:24 +01:00
buildGoPackage rec {
2019-04-10 21:29:30 +01:00
pname = "dep2nix";
version = "unstable-2019-04-02";
2018-06-01 22:02:24 +01:00
goPackagePath = "github.com/nixcloud/dep2nix";
src = fetchFromGitHub {
owner = "nixcloud";
2019-04-10 21:29:30 +01:00
repo = pname;
rev = "830684f920333b8ff0946d6b807e8be642eec3ef";
sha256 = "17sjxhzhmz4893x3x054anp4xvqd1px15nv3fj2m7i6r0vbgpm0j";
2018-06-01 22:02:24 +01:00
};
nativeBuildInputs = [
makeWrapper
];
postFixup = ''
wrapProgram $bin/bin/dep2nix \
2018-09-11 12:47:16 +01:00
--prefix PATH : ${nix-prefetch-scripts}/bin
2018-06-01 22:02:24 +01:00
'';
2018-09-11 12:56:14 +01:00
goDeps = ./deps.nix;
2018-06-01 22:02:24 +01: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";
2018-06-01 22:02:24 +01:00
maintainers = [ maintainers.mic92 ];
};
}