Merge pull request #131061 from Luflosi/update/ipfs
ipfs: 0.9.0 -> 0.9.1
This commit is contained in:
commit
aa099ab529
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ipfs";
|
pname = "ipfs";
|
||||||
version = "0.9.0";
|
version = "0.9.1";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
# go-ipfs makes changes to it's source tarball that don't match the git source.
|
# go-ipfs makes changes to it's source tarball that don't match the git source.
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/ipfs/go-ipfs/releases/download/${rev}/go-ipfs-source.tar.gz";
|
url = "https://github.com/ipfs/go-ipfs/releases/download/${rev}/go-ipfs-source.tar.gz";
|
||||||
sha256 = "sha256:1fyffnw1d860w7gwm6ijbgrh68297z5bmvww8yqfshm3xgvcs6bf";
|
sha256 = "sha256-RliyIEtNgwzbLVwl6T38VIbhc12CZMBc3LZ6T/llaHc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# tarball contains multiple files/directories
|
# tarball contains multiple files/directories
|
||||||
|
@ -29,10 +29,13 @@ buildGoModule rec {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
|
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
|
||||||
|
install --mode=444 -D misc/systemd/ipfs-hardened.service $out/etc/systemd/system/ipfs-hardened.service
|
||||||
install --mode=444 -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
|
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
|
install --mode=444 -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
|
||||||
substituteInPlace $out/etc/systemd/system/ipfs.service \
|
substituteInPlace $out/etc/systemd/system/ipfs.service \
|
||||||
--replace /usr/bin/ipfs $out/bin/ipfs
|
--replace /usr/bin/ipfs $out/bin/ipfs
|
||||||
|
substituteInPlace $out/etc/systemd/system/ipfs-hardened.service \
|
||||||
|
--replace /usr/bin/ipfs $out/bin/ipfs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue