python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / dep2nix / default.nix
blob5d98ecd572962f1dfe3c9e51ebc8f32356f8c2c2
1 { lib, fetchFromGitHub, buildGoPackage
2 , makeWrapper, nix-prefetch-scripts }:
4 buildGoPackage rec {
5   pname = "dep2nix";
6   version = "unstable-2019-04-02";
8   goPackagePath = "github.com/nixcloud/dep2nix";
10   src = fetchFromGitHub {
11     owner = "nixcloud";
12     repo = pname;
13     rev = "830684f920333b8ff0946d6b807e8be642eec3ef";
14     sha256 = "17sjxhzhmz4893x3x054anp4xvqd1px15nv3fj2m7i6r0vbgpm0j";
15   };
17   nativeBuildInputs = [
18     makeWrapper
19   ];
21   postFixup = ''
22     wrapProgram $out/bin/dep2nix \
23       --prefix PATH : ${nix-prefetch-scripts}/bin
24   '';
26   goDeps = ./deps.nix;
28   meta = with lib; {
29     description = "Convert `Gopkg.lock` files from golang dep into `deps.nix`";
30     license = licenses.bsd3;
31     homepage = "https://github.com/nixcloud/dep2nix";
32     maintainers = [ maintainers.mic92 ];
33   };