10 system = stdenv.hostPlatform.system;
13 x86_64-linux = "linux-amd64";
14 aarch64-linux = "linux-aarch64";
15 x86_64-darwin = "macos-amd64";
16 aarch64-darwin = "macos-aarch64";
17 }.${system} or (throw "Unsupported system: ${system}");
20 x86_64-linux = "sha256-Fp1h1X5UFOHLqgaAcXXl3oSioCMVLJLaOURHd3uu8sA=";
21 aarch64-linux = "sha256-F6/h98qZvzImuxPOMYr1cGWBjr1qWGvoYztvZzw2GRg=";
22 x86_64-darwin = "sha256-WegiHPHi9Qw4PPTEB2a9AdIgMlyOzzSpTRdJH43IEjM=";
23 aarch64-darwin = "sha256-BJER3Fp4AItqtLNYh6pH/tNB98H3iTARr3fKyTXGcP8=";
24 }.${system} or (throw "Unsupported system: ${system}");
26 in stdenv.mkDerivation rec {
27 pname = "fermyon-spin";
31 url = "https://github.com/fermyon/spin/releases/download/v${version}/spin-v${version}-${platform}.tar.gz";
36 nativeBuildInputs = lib.optionals stdenv.isLinux [
55 description = "Framework for building, deploying, and running fast, secure, and composable cloud microservices with WebAssembly.";
56 homepage = "https://github.com/fermyon/spin";
57 license = with licenses; [ asl20 ];
59 maintainers = with maintainers; [ mglolenstine ];
60 platforms = platforms.linux ++ platforms.darwin;