]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - pkgs/crypto/sia/default.nix
Update Ludivine’s website
[perso/Immae/Config/Nix.git] / pkgs / crypto / sia / default.nix
1 { stdenv, fetchzip, autoPatchelfHook }:
2 stdenv.mkDerivation rec {
3 version = "v1.4.3";
4 name = "Sia-${version}";
5 src = fetchzip {
6 url = "https://sia.tech/static/releases/${name}-linux-amd64.zip";
7 sha256 = "1i67zjzk4cwfzb1dxaxc1m41fa44sz1d0mf6dmlyg6pm4cyqizki";
8 };
9 phases = "installPhase fixupPhase";
10 nativeBuildInputs = [
11 autoPatchelfHook
12 ];
13 installPhase = ''
14 mkdir -p $out/share/doc
15 mkdir -p $out/bin
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
20 '';
21 }