diff options
Diffstat (limited to 'pkgs/crypto/sia')
-rw-r--r-- | pkgs/crypto/sia/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/crypto/sia/default.nix b/pkgs/crypto/sia/default.nix new file mode 100644 index 0000000..45908af --- /dev/null +++ b/pkgs/crypto/sia/default.nix | |||
@@ -0,0 +1,19 @@ | |||
1 | { stdenv, fetchzip }: | ||
2 | stdenv.mkDerivation rec { | ||
3 | version = "v1.3.7"; | ||
4 | name = "Sia-${version}"; | ||
5 | src = fetchzip { | ||
6 | url = "https://sia.tech/static/releases/${name}-linux-amd64.zip"; | ||
7 | sha256 = "1ljzwrlkx4hc16r8siiyakn039afipp95dyr83c8yfq3r3bfasqd"; | ||
8 | }; | ||
9 | phases = "installPhase"; | ||
10 | installPhase = '' | ||
11 | mkdir -p $out/share/doc | ||
12 | mkdir -p $out/bin | ||
13 | mkdir -p $out/share/sia | ||
14 | cp -a $src/doc $out/share/doc/sia | ||
15 | cp -a $src/LICENSE $src/README.md $out/share/sia | ||
16 | cp -a $src/{siac,siad} $out/bin | ||
17 | cp -a $src/{siac,siad}.sig $out/share/sia/ | ||
18 | ''; | ||
19 | } | ||