1 { stdenv, fetchzip, autoPatchelfHook }:
2 stdenv.mkDerivation rec {
4 name = "Sia-${version}";
6 url = "https://sia.tech/static/releases/${name}-linux-amd64.zip";
7 sha256 = "1i67zjzk4cwfzb1dxaxc1m41fa44sz1d0mf6dmlyg6pm4cyqizki";
9 phases = "installPhase fixupPhase";
14 mkdir -p $out/share/doc
16 mkdir -p $out/share/sia
17 cp -a $src/doc $out/share/doc/sia
18 cp -a $src/LICENSE $src/README.md $out/share/sia
19 cp -a $src/{siac,siad} $out/bin