Skip to content

Commit

Permalink
Revert "Add smithy-cli for macOS and Linux"
Browse files Browse the repository at this point in the history
This reverts commit 7b8075c.
  • Loading branch information
aldur committed Oct 10, 2024
1 parent 7b8075c commit c3548cc
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
inherit system overlays;
};
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;

smithy-cli = pkgs.stdenv.mkDerivation rec {
smithy-system-hash = {
"aarch64-darwin" = [ "darwin-aarch64" "sha256-s/y8turEQfvGwJ2xz70SwAIlg1fk4miOPZ5SapO6tJU=" ];
"x86_64-darwin" = [ "darwin-x86_64" "sha256-iTJ4PbFfxG+sU2B4Viu5fG0K44zqcU/I3Y7sTlFPAuQ=" ];
"aarch64-linux" = [ "linux-aarch64" "sha256-3SSmT1t5ctgVa3lXnjGRDb2OJ3j272RTUm1aQ1Itjlo=" ];
"x86_64-linux" = [ "linux-x86_64" "sha256-TleL3pvFg/LemPFktzUDVI1YYzh78yKtHwuc0l33x1I=" ];
}.${system};

pname = "smithy-cli";
version = "1.51.0";
base_url = "https://github.com/smithy-lang/smithy/releases/download/";
src = pkgs.fetchzip {
url = "${base_url}/${version}/smithy-cli-${builtins.elemAt smithy-system-hash 0}.zip";
hash = builtins.elemAt smithy-system-hash 1;
};
buildPhase = ''
mkdir $out
mv * $out
'';
};
in
with pkgs;
{
Expand All @@ -51,7 +30,6 @@

buildInputs = [
toolchain
smithy-cli

cargo-lambda
gnumake
Expand Down

0 comments on commit c3548cc

Please sign in to comment.