diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-10-29 05:19:41 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-10-29 05:19:41 +0200 |
commit | f9c65a97f869dad464379213d147cb3fece9c91a (patch) | |
tree | 4a69764426af1f8ee4efe7d4c2161ae519103c5d /pkgs/applications/networking/ipfs | |
parent | 2d934fdffb66ec60b9cd05d6e67a219e8db319e1 (diff) |
ipfs: use fetchgx
Diffstat (limited to 'pkgs/applications/networking/ipfs')
-rw-r--r-- | pkgs/applications/networking/ipfs/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/applications/networking/ipfs/default.nix b/pkgs/applications/networking/ipfs/default.nix index 7f598378d75ea..0d018c9588f6e 100644 --- a/pkgs/applications/networking/ipfs/default.nix +++ b/pkgs/applications/networking/ipfs/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildGoPackage, fetchFromGitHub, gx, gx-go }: +{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }: buildGoPackage rec { name = "ipfs-${version}"; @@ -7,6 +7,13 @@ buildGoPackage rec { goPackagePath = "github.com/ipfs/go-ipfs"; + extraSrcPaths = [ + (fetchgx { + inherit name src; + sha256 = "0mm1rs2mbs3rmxfcji5yal9ai3v1w75kk05bfyhgzmcjvi6lwpyb"; + }) + ]; + src = fetchFromGitHub { owner = "ipfs"; repo = "go-ipfs"; @@ -14,15 +21,11 @@ buildGoPackage rec { sha256 = "06iq7fmq7p0854aqrnmd0f0jvnxy9958wvw7ibn754fdfii9l84l"; }; - buildInputs = [ gx gx-go ]; - - # Extra build step for gx dependecies - preBuild = '' - (cd "go/src/${goPackagePath}"; gx install) - ''; - meta = with stdenv.lib; { description = "A global, versioned, peer-to-peer filesystem"; + homepage = https://ipfs.io/; license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ fpletz ]; }; } |