Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d987f5d07d10
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 85a7b75faaf8
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Jun 1, 2018

  1. dep2nix: init at 0.0.1 (#41352)

    Mic92 authored and xeji committed Jun 1, 2018
    Copy the full SHA
    85a7b75 View commit details
Showing with 181 additions and 0 deletions.
  1. +34 −0 pkgs/development/tools/dep2nix/default.nix
  2. +145 −0 pkgs/development/tools/dep2nix/deps.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
34 changes: 34 additions & 0 deletions pkgs/development/tools/dep2nix/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, buildGoPackage
, makeWrapper, nix-prefetch-git }:

buildGoPackage rec {
name = "dep2nix-${version}";
version = "0.0.1";

goPackagePath = "github.com/nixcloud/dep2nix";

src = fetchFromGitHub {
owner = "nixcloud";
repo = "dep2nix";
rev = version;
sha256 = "05b06wgcy88fb5ccqwq3mfhrhcblr1akpxgsf44kgbdwf5nzz87g";
};

nativeBuildInputs = [
makeWrapper
];

postFixup = ''
wrapProgram $bin/bin/dep2nix \
--prefix PATH : ${nix-prefetch-git}/bin
'';

goDeps = ./deps.nix;

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 ];
};
}
145 changes: 145 additions & 0 deletions pkgs/development/tools/dep2nix/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -13870,6 +13870,8 @@ with pkgs;

dep = callPackage ../development/tools/dep { };

dep2nix = callPackage ../development/tools/dep2nix { };

easyjson = callPackage ../development/tools/easyjson { };

go-bindata = callPackage ../development/tools/go-bindata { };