8 inherit (stdenv.hostPlatform) system;
9 throwSystem = throw "Unsupported system: ${system}";
12 x86_64-darwin = "darwin";
13 x86_64-linux = "linux";
14 }.${system} or throwSystem;
17 x86_64-darwin = "sha256-OIyEu3Hsobui9s5+T9nC10SxMw0MhgmTA4SN9Ridyzo=";
18 x86_64-linux = "sha256-SxBjRd95hoh2zwX6IDnkZnTWVduQafPHvnWw8qTuM78=";
19 }.${system} or throwSystem;
21 stdenv.mkDerivation rec {
22 pname = "flywheel-cli";
26 url = "https://storage.googleapis.com/flywheel-dist/cli/${version}/fw-${os}_amd64-${version}.zip";
30 nativeBuildInputs = [ unzip ];
38 install -Dt $out/bin ./${os}_amd64/fw
43 description = "Library and command line interface for interacting with a Flywheel site";
45 homepage = "https://gitlab.com/flywheel-io/public/python-cli";
46 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
47 license = licenses.mit;
48 maintainers = with maintainers; [ rbreslow ];
49 platforms = [ "x86_64-darwin" "x86_64-linux" ];