From 30acfc3b45834d3cf12bf4802955491608457ff1 Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Mon, 6 Jun 2016 02:46:06 +0200 Subject: [PATCH] ipfs: extracted from goPackages --- pkgs/applications/networking/ipfs/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/networking/ipfs/default.nix diff --git a/pkgs/applications/networking/ipfs/default.nix b/pkgs/applications/networking/ipfs/default.nix new file mode 100644 index 000000000000..694166cc2428 --- /dev/null +++ b/pkgs/applications/networking/ipfs/default.nix @@ -0,0 +1,21 @@ +{ stdenv, lib, buildGoPackage, consul-ui, fetchFromGitHub }: + +buildGoPackage rec { + name = "ipfs-${version}"; + version = "i20160112--${stdenv.lib.strings.substring 0 7 rev}"; + rev = "7070b4d878baad57dcc8da80080dd293aa46cabd"; + + goPackagePath = "github.com/ipfs/go-ipfs"; + + src = fetchFromGitHub { + owner = "ipfs"; + repo = "go-ipfs"; + inherit rev; + sha256 = "1b7aimnbz287fy7p27v3qdxnz514r5142v3jihqxanbk9g384gcd"; + }; + + meta = with stdenv.lib; { + description = "A global, versioned, peer-to-peer filesystem"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f856d938e593..9545ce0eb85b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2063,7 +2063,7 @@ in iperf3 = callPackage ../tools/networking/iperf/3.nix { }; iperf = self.iperf3; - ipfs = self.goPackages.ipfs.bin // { outputs = [ "bin" ]; }; + ipfs = callPackage ../applications/networking/ipfs { }; ipmitool = callPackage ../tools/system/ipmitool { static = false;