Merge pull request #129001 from obsidiansystems/ipfs_latest-for-stable
[21.05] ipfs: Add 0.9.0 in addition
This commit is contained in:
commit
4a448d3240
45
pkgs/applications/networking/ipfs/0.9.nix
Normal file
45
pkgs/applications/networking/ipfs/0.9.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ lib, buildGoModule, fetchurl, nixosTests }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "ipfs";
|
||||||
|
version = "0.9.0";
|
||||||
|
rev = "v${version}";
|
||||||
|
|
||||||
|
# go-ipfs makes changes to it's source tarball that don't match the git source.
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/ipfs/go-ipfs/releases/download/${rev}/go-ipfs-source.tar.gz";
|
||||||
|
sha256 = "sha256:1fyffnw1d860w7gwm6ijbgrh68297z5bmvww8yqfshm3xgvcs6bf";
|
||||||
|
};
|
||||||
|
|
||||||
|
# tarball contains multiple files/directories
|
||||||
|
postUnpack = ''
|
||||||
|
mkdir ipfs-src
|
||||||
|
shopt -s extglob
|
||||||
|
mv !(ipfs-src) ipfs-src || true
|
||||||
|
cd ipfs-src
|
||||||
|
'';
|
||||||
|
|
||||||
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
subPackages = [ "cmd/ipfs" ];
|
||||||
|
|
||||||
|
passthru.tests.ipfs = nixosTests.ipfs;
|
||||||
|
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
|
||||||
|
install --mode=444 -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
|
||||||
|
install --mode=444 -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
|
||||||
|
substituteInPlace $out/etc/systemd/system/ipfs.service \
|
||||||
|
--replace /usr/bin/ipfs $out/bin/ipfs
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A global, versioned, peer-to-peer filesystem";
|
||||||
|
homepage = "https://ipfs.io/";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ fpletz ];
|
||||||
|
};
|
||||||
|
}
|
@ -5802,7 +5802,11 @@ in
|
|||||||
iperf3 = callPackage ../tools/networking/iperf/3.nix { };
|
iperf3 = callPackage ../tools/networking/iperf/3.nix { };
|
||||||
iperf = iperf3;
|
iperf = iperf3;
|
||||||
|
|
||||||
ipfs = callPackage ../applications/networking/ipfs { };
|
ipfs = ipfs_0_8;
|
||||||
|
ipfs_latest = ipfs_0_9;
|
||||||
|
ipfs_0_8 = callPackage ../applications/networking/ipfs/0.8.nix { };
|
||||||
|
ipfs_0_9 = callPackage ../applications/networking/ipfs/0.9.nix { };
|
||||||
|
|
||||||
ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { };
|
ipfs-migrator = callPackage ../applications/networking/ipfs-migrator { };
|
||||||
ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { };
|
ipfs-cluster = callPackage ../applications/networking/ipfs-cluster { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user