diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-29 13:33:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 13:33:54 +0200 |
commit | 1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c (patch) | |
tree | 9004ae01940147884ea2ff77ffe272ae5f52aff9 /pkgs/applications/science | |
parent | 750f51df996aecd3f7e83ca5500b016823290a2d (diff) | |
parent | 603e9d7b6483e43fd7d1742875d278bd7c3dff87 (diff) | |
download | nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.tar nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.tar.gz nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.tar.bz2 nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.tar.lz nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.tar.xz nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.tar.zst nixlib-1f6bdf4d93e84ec18e7e3a99bdf86575ae2c318c.zip |
Merge pull request #165458 from rbreslow/add-flywheel-cli
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" ]; + }; +} |