aboutsummaryrefslogtreecommitdiff
path: root/pkgs/crypto/sia/default.nix
blob: 45908afbc235525ea5104b6c8853e63974785ee9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
  version = "v1.3.7";
  name = "Sia-${version}";
  src = fetchzip {
    url = "https://sia.tech/static/releases/${name}-linux-amd64.zip";
    sha256 = "1ljzwrlkx4hc16r8siiyakn039afipp95dyr83c8yfq3r3bfasqd";
  };
  phases = "installPhase";
  installPhase = ''
    mkdir -p $out/share/doc
    mkdir -p $out/bin
    mkdir -p $out/share/sia
    cp -a $src/doc $out/share/doc/sia
    cp -a $src/LICENSE $src/README.md $out/share/sia
    cp -a $src/{siac,siad} $out/bin
    cp -a $src/{siac,siad}.sig $out/share/sia/
    '';
}