From 562f8313e0a6acaa5d99f689150cd71d04707605 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 22 Oct 2017 21:46:40 -0400 Subject: [PATCH] ipget: init at 0.2.5 --- .../applications/networking/ipget/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/networking/ipget/default.nix diff --git a/pkgs/applications/networking/ipget/default.nix b/pkgs/applications/networking/ipget/default.nix new file mode 100644 index 000000000000..23c9d7df8120 --- /dev/null +++ b/pkgs/applications/networking/ipget/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }: + +buildGoPackage rec { + name = "ipget-${version}"; + version = "0.2.5"; + rev = "v${version}"; + + goPackagePath = "github.com/ipfs/ipget"; + + extraSrcPaths = [ + (fetchgx { + inherit name src; + sha256 = "1d4w8zl5mcppn3d4bl7qdkiqlf8gi3z2a62nygx17bqpa3da8cf3"; + }) + ]; + + goDeps = ../../../tools/package-management/gx/deps.nix; + + src = fetchFromGitHub { + owner = "ipfs"; + repo = "ipget"; + inherit rev; + sha256 = "0a8yxqhl469ipiznrgkp3yi1xz3xzcbpx60wabqppq8hccrdiybk"; + }; + + meta = with stdenv.lib; { + description = "Retrieve files over IPFS and save them locally"; + homepage = https://ipfs.io/; + license = licenses.mit; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c38ee66735e7..7aec468907ac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2717,6 +2717,8 @@ with pkgs; ipfs = callPackage ../applications/networking/ipfs { }; ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { }; + ipget = callPackage ../applications/networking/ipget { }; + ipmitool = callPackage ../tools/system/ipmitool { static = false; };