diff --git a/pkgs/by-name/fl/flywheel-cli/package.nix b/pkgs/by-name/fl/flywheel-cli/package.nix index b134fa032be8..aab993c1f79b 100644 --- a/pkgs/by-name/fl/flywheel-cli/package.nix +++ b/pkgs/by-name/fl/flywheel-cli/package.nix @@ -5,29 +5,13 @@ unzip, }: -let - inherit (stdenv.hostPlatform) system; - throwSystem = throw "Unsupported system: ${system}"; - - os = - { - x86_64-linux = "linux"; - } - .${system} or throwSystem; - - sha256 = - { - x86_64-linux = "sha256-SxBjRd95hoh2zwX6IDnkZnTWVduQafPHvnWw8qTuM78="; - } - .${system} or throwSystem; -in stdenv.mkDerivation (finalAttrs: { pname = "flywheel-cli"; version = "16.2.0"; src = fetchurl { - url = "https://storage.googleapis.com/flywheel-dist/cli/${finalAttrs.version}/fw-${os}_amd64-${finalAttrs.version}.zip"; - inherit sha256; + url = "https://storage.googleapis.com/flywheel-dist/cli/${finalAttrs.version}/fw-linux_amd64-${finalAttrs.version}.zip"; + hash = "sha256-SxBjRd95hoh2zwX6IDnkZnTWVduQafPHvnWw8qTuM78="; }; nativeBuildInputs = [ unzip ]; @@ -38,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: { installPhase = '' runHook preInstall - install -Dt $out/bin ./${os}_amd64/fw + install -Dt $out/bin ./linux_amd64/fw runHook postInstall '';