mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 08:01:50 +00:00
ipfs: switch to vendored tarball
This commit is contained in:
parent
cdb8539006
commit
e6907df061
|
@ -1,29 +1,30 @@
|
||||||
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
{ stdenv, buildGoModule, fetchurl, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ipfs";
|
pname = "ipfs";
|
||||||
version = "0.5.1";
|
version = "0.5.1";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
# go-ipfs makes changes to it's source tarball that don't match the git source.
|
||||||
owner = "ipfs";
|
src = fetchurl {
|
||||||
repo = "go-ipfs";
|
url = "https://github.com/ipfs/go-ipfs/releases/download/${rev}/go-ipfs-source.tar.gz";
|
||||||
inherit rev;
|
sha256 = "0lpilycjbc1g9adp4d5kryfprixj18hg3235fnivakmv7fy2akkm";
|
||||||
sha256 = "11l55hlbixv1i25d3n216pkrwgcgac99fa88lyy3dailvminqxw7";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
# tarball contains multiple files/directories
|
||||||
rm -rf test/dependencies
|
postUnpack = ''
|
||||||
patchShebangs plugin/loader/preload.sh
|
mkdir ipfs-src
|
||||||
|
mv * ipfs-src || true
|
||||||
|
cd ipfs-src
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
sourceRoot = ".";
|
||||||
make install
|
|
||||||
'';
|
subPackages = [ "cmd/ipfs" ];
|
||||||
|
|
||||||
passthru.tests.ipfs = nixosTests.ipfs;
|
passthru.tests.ipfs = nixosTests.ipfs;
|
||||||
|
|
||||||
modSha256 = "13mpva3r6r2amw08g0bdggbxn933jjimngkvzgq1q5dksp4mivfk";
|
vendorSha256 = null;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A global, versioned, peer-to-peer filesystem";
|
description = "A global, versioned, peer-to-peer filesystem";
|
||||||
|
|
Loading…
Reference in a new issue