diff options
author | Rocky Breslow <1774125+rbreslow@users.noreply.github.com> | 2022-03-23 10:41:58 -0400 |
---|---|---|
committer | Rocky Breslow <1774125+rbreslow@users.noreply.github.com> | 2022-03-28 15:54:39 -0400 |
commit | 603e9d7b6483e43fd7d1742875d278bd7c3dff87 (patch) | |
tree | 5c1dc40624b31f1e913f262285e0cd6b93a12171 /pkgs/applications/science | |
parent | 557e8963e8c7970e280bfbaa9d7e8cae79f98420 (diff) | |
download | nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.tar nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.tar.gz nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.tar.bz2 nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.tar.lz nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.tar.xz nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.tar.zst nixlib-603e9d7b6483e43fd7d1742875d278bd7c3dff87.zip |
flywheel-cli: init at 16.2.0
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/biology/flywheel-cli/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/flywheel-cli/default.nix b/pkgs/applications/science/biology/flywheel-cli/default.nix new file mode 100644 index 000000000000..7db8b0066263 --- /dev/null +++ b/pkgs/applications/science/biology/flywheel-cli/default.nix @@ -0,0 +1,49 @@ +{ lib +, stdenv +, fetchurl +, unzip +}: + +let + inherit (stdenv.targetPlatform) system; + throwSystem = throw "Unsupported system: ${system}"; + + os = { + x86_64-darwin = "darwin"; + x86_64-linux = "linux"; + }.${system} or throwSystem; + + sha256 = { + x86_64-darwin = "sha256-OIyEu3Hsobui9s5+T9nC10SxMw0MhgmTA4SN9Ridyzo="; + x86_64-linux = "sha256-SxBjRd95hoh2zwX6IDnkZnTWVduQafPHvnWw8qTuM78="; + }.${system} or throwSystem; +in +stdenv.mkDerivation rec { + pname = "flywheel-cli"; + version = "16.2.0"; + + src = fetchurl { + url = "https://storage.googleapis.com/flywheel-dist/cli/${version}/fw-${os}_amd64-${version}.zip"; + inherit sha256; + }; + + nativeBuildInputs = [ unzip ]; + + unpackPhase = '' + unzip ${src} + ''; + + installPhase = '' + runHook preInstall + install -Dt $out/bin ./${os}_amd64/fw + runHook postInstall + ''; + + meta = with lib; { + description = "Library and command line interface for interacting with a Flywheel site"; + homepage = "https://gitlab.com/flywheel-io/public/python-cli"; + license = licenses.mit; + maintainers = with maintainers; [ rbreslow ]; + platforms = [ "x86_64-darwin" "x86_64-linux" ]; + }; +} |